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 […]
About Sequoia McDowell
Sequoia is a software engineer-cum-educator with the distinction of having run Node.js trainings in every timezone in the Continental United States. He’s spoken at national programming & IT conferences on topics ranging from testing to build tools to encrypted communication. As a member of the Nodeschool community, Sequoia has extensive experience teaching people about Node.js both online and off.
Entries by Sequoia McDowell
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.) […]
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 […]
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 […]
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.