Decorating (your Javascript) for Fun and Profit

Sometimes you need to get “meta”. What if you could tell a variable that any time it changes, it should automatically report that change to a log file, without you having to write code to do it? What about identifying a function should be called by a web server whenever a particular URL pattern is […]

Advanced JavaScript ES2015 Template Strings with Tagged Templates

If you’ve paid any attention to the discussions about ES2015/ES6 that have been going on over the past couple years, you should already know about template literal strings:

This in itself is an extremely useful tool that can simplify how we work with strings dramatically, but there is a little-known feature that came along […]

A Simple Primer in JavaScript Recursion

Recursion is a concept that is not unique to JavaScript. It is used in all programming languages. Though it is an important part of Javascript that sometimes gets muddled or overtly complex. Recursion is simply when a function calls itself. A function that calls itself is comparable to a loop. Both of these methods are […]

Using JavaScript ASync Functions

Async stands for asynchronous and it is (aptly) the opposite of synchronous programming. To get a better grasp on Async functions, you need to first fully understand synchronous code. Simply put, synchronous code means “many statements in a sequence”. Each statement is executed one after the other. This also means that a statement has to […]

Finding the Most Frequent String in a JavaScript Array

In the following tutorial, I’ll show you how to write a function that takes an array of strings and returns the most frequent string(s) in that array. First I’ll go through the basic concepts and setup, we’ll test it to make sure it works, then I’ll explore a few ways in which you can handle […]

ES6 Modules: Use Cases and Examples

Modules are an important part of any programming language. All prior JavaScript versions have lacked this feature. But that did not stop the community from creating their own modularized code. ECMAScript 2015 (ES6) has finally introduced modules as a fully realized function into JavaScript. Modules are now fully naturalized citizens of the JavaScript programming language. […]


Dissecting the React Lifecycle and Related Methods

React has proven to be wildly popular by Javascript developers, providing a foundation for building highly “reactive” components that are performant, efficient and generally scale well. However, React can prove a little intimidating to get into, in part because the documentation can be cryptic, and in part because the toolset itself works largely by automating […]

How to Make Circular/Curved Text with JavaScript

Creating circular text, or text on an curved path, in webpages may seem like somewhat of a intimidating task. There isn’t really a straightforward way to achieve it with standard HTML and CSS. There is a JavaScript plugin or two out there with some pretty decent results, but using plugins means extra dependency and load time associated tacked on to your project. […]

Carved In Stone: Immutables in JavaScript

Immutability – the idea that you should never work with “live” data, is slowly transforming the way that programmers work with objects, data and streams. From reducing hidden variables in functions to making database programming simpler to reducing the chance for difficult to find bugs to make its way into your code, immutability is becoming […]