Skip to content

Instantly share code, notes, and snippets.

View arvindpdmn's full-sized avatar

Arvind Padmanabhan arvindpdmn

View GitHub Profile
@arvindpdmn
arvindpdmn / JS.Done.Right.md
Last active February 16, 2023 20:05
JavaScript Done Right! (Basics, Functions, Inheritance, Async)

JavaScript Done Right!
Devopedia, Sept 2018

0. Introduction

JavaScript is one of the top programming languages today. It can also be confusing for developers coming from C, Java or PHP backgrounds. Worse still are the numerous frameworks (such as Angular and React) that make it difficult to decide what to learn and how to use the language.

In this short talk/demo, we'll look at the best practices in JavaScript programming. We'll explain using simple examples. This is for beginners and intermediate JS programmers. You must be familiar with JS syntax. We'll not cover DOM access, jQuery, Node.js or JS frameworks.

The recommendations here assume that you use a transpiler such as Babel so that code can work on older browsers. Therefore we freely use syntax from recent ECMAScript standards.

@arvindpdmn
arvindpdmn / JS.Done.Right.2.md
Last active August 4, 2023 00:44
JavaScript Done Right! (DOM, Events, Best Practices)

JavaScript Done Right!
Devopedia, Oct 2018

0. Introduction

In this meetup, we'll talk about DOM access and manipulation. This can be done in plain JavaScript using the new APIs introduced in ES6. It can also be done using jQuery. We will look at both approaches. We leave it to developers to choose what suits them.

As a study reference, look at the following cheat sheets:

Regular Expressions
Devopedia, May 2019

0. Introduction

Read the basics of Regular Expressions on Devopedia site.

The rest of this document shows examples of regex for the purpose of learning. We follow PCRE (PHP) flavour. You may use Regex101 to try out these examples online.

For the purpose of this tutorial, we use the following format:

  • Search: input --> /regex/modifier --> result
@arvindpdmn
arvindpdmn / SixHats.svg
Created December 2, 2019 10:16
Mindmap of Six Thinking Hats by Edward de Bono
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.