Crazy Pixels

Ever since I first laid eyes on Conway’s Game of Life, I’ve been in love with the idea of cellular automatons: small, distinct units that follow some simple, fundamental rules to create beautiful, complex, and strange patterns working together. This prototype was originally inspired by an article I read about cellular automatons, or rather, a video of […]

Encapsulate Your Scope When Looping With Asynchronous Functions

When using for loops in JavaScript, sometimes you can encounter some unexpected behaviour. First, a simple for loop– No tricks: As anyone would expect, this will print out 0, 1, 2, 3, 4 to the console. Now, what if we are operating asynchronously? Next, let’s essentially do the same thing, except with a 1 second […]