Posts

Reducing Katas

Prerequisites for this kata JavaScript fundamentals (variables, functions, arrays, the usual) An account on Codewars (its free and mildly addictive) Willingness to be humbled by a Kyu 6 reduce() …

Stone Soup Programming

Prerequisites for Stone Soup Programming A team (even a small one, two people counts) A willingness to share half baked ideas Zero ego about your code being “yours” The ability to say …

Shape Shifting Functions

I wanted to write a quick post about decorators, as I’ve been using them a lot recently and I think they’re a really useful tool to have in your belt. I spent quite a bit of time trying to …

How to Make Time

How much can you get done in a day? Sometimes it can feel that there’s just not enough hours in the day. Other times we don’t feel much like doing anything. And how many times have you …

Higher-Order Functions

Prerequisites for this one A grasp of basic functions in JavaScript Familiarity with arrays (they’re just fancy lists, dont overthink it) Some patience. reduce() will test you A rubber duck for …

Call, Bind and Apply

tl;dr call, bind and apply are 3 really important methods that are available on all Javascript functions out of the box. Each method does the same kind of thing, but the invocations are different. …

JavaScript 101: Immediately Invoked Functions

tl;dr Like it says on the tin, an immediately invoked function (IIFE) is a function that is executed as soon as it is defined. No waiting around, no messing about. Straight to business. Prerequisites …

Comparison and Logical Operators in Javascript

Prerequisites for following along A browser with a console (F12, go on, press it) Preferably some knowledge of variables from the previous articles A healthy distrust of == A llama (optional but …

Javascript 101: Hoisting

tl;dr “hoisting” is a default behaviour of Javscript, basically it means “variables and function declarations get hoisted to the top”. The concept of hoisting can throw off …

JavaScript 101: Implicit Type Coercion

tl;dr Javascript automatically converts some types into others behind your back. Like a well meaning friend who “fixes” your dating profile without telling you. Prerequisites …

JavaScript 101: Data Types

Prerequisites for this series Before going any further with JavaScript 101 you’ll want to make sure you have: A computer (revolutionary, I know) A text editor. VS Code, Vim, Notepad, a …

Passing By Value and Passing By Reference

tl;dr Javascript passes its’ primitive types by value, and its’ non-primitive types by reference. “Value” and “Reference” here are referring to a variables position in memory. …