All My Blog Posts

Access Control in Ruby
How access control functions in Ruby classes

Removing passwords / credentials from Git repo history
How to clean bad data from your git

JS Maps; the ugly step sibling of Objects
A guide on comparing Map vs Objects in Javascript

Returning a subarray group in JS
Returning an grouped array with a custom groupBy() method

The JS Sort() Function
An explanation of sort() and using it with a custom compare function.

Returning a Chunk Array in JS
How to return a chunked array from an array of a certain size.

Allow One Function Call
An example of a function that returns a result once and then returns undefined afterwards.

Timeout Cancellation
An explanation of setTimeout() and a use case when cancelling an action.

Function Composition Example
An example of function composition in JS

An example of JS Closures with inner & outer functions
An example of a JS closure returning a subsequent value when an inner function is invoked

Dot notation used within a JS function
An example of dot notation used in a JS function.

How Javascript Promises Work
An explanation how promises work in ES6

How Javascript Closures Work
A short explanation of how closures work

How Javascript Scopes Work
Short summary on scope and the JS compiler

Types of Javascript Scopes
A guide on the different types of Javascript Scopes