Entries by Sequoia McDowell

Let’s Code It: Static Site Generator with Rx.js

Last post, we went over building a Static Site Generator (SSG) in Node.js. We used Promises for flow control, and that worked for reading each Markdown input file, transforming it into HTML, and writing that to disk, once per file. What if instead of running this build process once per input file, we want it […]

Let’s Code It: Static Site Generator

Traditionally, if you wanted to create a blog or website that you can update easily without having to directly edit HTML, you’d use a tool like WordPress. The basic flow for serving a website from a CMS like WordPress is as follows: Store content (e.g. “posts”) in a database Store display configuration (templates, CSS, etc.) […]

Interactive Debugging with Node.js

A “step-through debugger” (also called an “interactive debugger” or just “debugger”) is a powerful tool that can be very handy when your application isn’t behaving the way you expect. You can use it to pause your application’s code execution to: Inspect or alter application state. See the code execution path (“call stack”) that leads to […]

The Node.js Debug Module: Advanced Usage

In a previous post, I explained the debug module and how to use it for basic debugging.  I recently used it to help me understand complex interactions between events in Leaflet and Leaflet.Editable. Before going over that, however, I’m going to lay the groundwork with a couple organizational tips that makes debug easier to use. This post assumes you […]

Let’s Code It: The `debug` Module

I did some fun stuff with the debug module recently for a web map project. I needed to understand the interactions between events in Leaflet.js to figure out what events to attach to… but that’s the next post. Before I get to that, I want to go over the debug module itself.