The joy of recursion, immutable data, and pure functions: Generating mazes with JavaScript

August 29, 2025

Title slide with decorative flourishes reading "James Sinclair" at the top and "The Joy of Recursion, Immutable Data, and Pure Functions: Generating Mazes with JavaScript" in bold white text on a dark blue background.

Let’s start by addressing the elephant in the room. Why the heck am I talking about making mazes?Normally, I try to be practical when I’m writing or speaking. I want to give people tools they can use to make their coding lives better. So, I try to discuss things like creating DOM elements and processing JSON data. Because those things are practical. I would rather not waste people’s time on things they’re not going to use.

Source: The joy of recursion, immutable data, and pure functions: Generating mazes with JavaScript

James Sinclair gave this fantastic talk at our developer summit late last year. Here is an article version for those who prefer reading to watching.