How the Node.js Event Loop Polls

August 21, 2019

Say we are a Node.js client, and we've made a request to some server. What happens as we're waiting for that response? How does the event…

Information Theory with Monica from Friends

August 09, 2019

I put Netflix on while I wrote this. Can't remember what show I was watching though... 🤔 Information theory sits comfortably in between…

Asynchronous I/O

July 26, 2019

This is more a record of notes for my own understanding. I'm not contributing anything novel here, although a lot of the cited sources are…

Never miss a post

Get the latest posts in your inbox. No spam, ever.


Eenie Meenie Miney Mo

July 10, 2019

Let's write a function that let's us take an n-sized subset of some iterator. Cycling Imagine you have an array, and you want to cycle…

Is "new" still considered harmful? Reflections on classes in JavaScript

July 08, 2019

Here are some random thoughts / notes about a way in which I don't like to code in JavaScript. Prototypal Inheritance Before we continue…

Modules in Node.js

June 24, 2019

I’ve found this to be a point of confusion for developers coming from other languages, so I thought I’d jot down some notes. Scope Every…

Data Structures and Database Indexes

June 21, 2019

A database index is an extra data structure in a storage engine w/ the goal of faster retrieval. It’s not the primary storing entity for the…

HTTP Persistent Connections

June 14, 2019

This was always a point of confusion for me, so I imagine there are others out there who could use some clarification on this too. Sockets A…

Git's DAG

June 03, 2019

Git is my personal favorite application of a directed acyclic graph. Git, while incredibly powerful, can be confusing because it is abstract…

Gradle is a DAG

May 29, 2019

Recently I wrote about directed acyclic graphs , and how you can derive topological orderings from them. Now let’s look at a more practical…

What is a topological ordering?

May 09, 2019

Now that we know the basics of directed acyclic graphs , we’re going to move to a more specialized data structure, one that is wholly…

What is a DAG?

May 06, 2019

A graph is a data structure, defined by its vertices and edges. Oftentimes you’ll see it defined as G = (V, E) . That just means, “G is the…

Dijkstra’s Algorithm in Kotlin

April 27, 2019

A while ago I wrote Dijkstra’s algorithm in Python, and I figured I’d convert it to Kotlin to test my Kotlin skills, since it’s a language I…

How similar is the execution of Java and JavaScript?

April 14, 2019

In this article, I will compare the execution of Java and JavaScript. I am intentionally avoiding a lot of details about memory, as that is…

Introduction to Monte Carlo Methods

July 25, 2015

I’m going to keep this tutorial light on math, because the goal is just to give a general understanding. Monte Carlo methods originated from…