A blog about source code and what happens when you dive into the guts of programming frameworks and libraries.


January 17, 2018

Reflections on reading source code

It has been a few months since I started digging into source code, and what a fun and fulfilling journey it has been. Here are some of the things I have learnt. >


November 27, 2017

How I Use Mithril: Patrik Johnson

How I Use Mithril is an interview series in which developers talk about how they use Mithril.js and how they structure their development workflow >


October 19, 2017

How I Use Mithril: Pat Cavit

How I Use Mithril is an interview series in which developers talk about how they use Mithril.js and how they structure their development workflow >


October 18, 2017

Peeking under the hood: express.js

Peeking under the hood is a series in which I look at the dependencies of popular tools and list what they do as well as anything else I find interesting. It is not intended to be a deep dive or explanation about how everything works. Inspiration for this series came from this blog. Most of the module descriptions are taken from the README file. >


October 6, 2017

How I Use Mithril: Rasmus Porsager

How I Use Mithril is an interview series in which developers talk about how they use Mithril.js and how they structure their development workflow >


September 1, 2017

How I Use Mithril: Barney Carroll

How I Use Mithril is an interview series in which developers talk about how they use Mithril.js and how they structure their development workflow >


July 27, 2017

Mithril.js: What are vnodes?

In my first explainer of Mithril’s source code, I broke down how the hyperscript function worked. It’s main task is the creation of virtual DOM nodes (vnodes), the objects which represent DOM elements or parts of the DOM. So how are these objects created? >


July 26, 2017

Mithril.js: What do the docs recommend?

Before reading a library or framework’s source code, it’s advisable to go through the documentation. Thankfully, Mithril’s size means reading through the main APIs is not that arduous a task. When reading the docs, you will often find notes from the author(s) recommending different ways of using the available features. This is useful when you read the source because you can more easily understand why certain bits of code exist. I’ve noted below five recommendations I came across during my latest round of reading the Mithril docs. I found more than five but I’ll go through the rest at a later time. The example code below each recommendation has been taken from the docs. >


July 24, 2017

Mithril.js: Understanding the hyperscript function

Earlier this year at work we re-wrote an internal framework we used to create SPA e-learning courses. After briefly trying out React, Angular 2, Ember and Vue, we settled on Mithril. If I were to compare it to the frameworks we tried out, I would say it’s more like React but with a simpler, smaller codebase. By the way, if you like geeking out on code articles, the articles from Mithril’s old site have some real nuggets of gold. A few months after the re-write was done, I dug into Mithril’s codebase to gain a deeper understanding and this is what I found… >


July 23, 2017

What has been written about reading source code?

Learning how to read source code has become a hobby of mine lately (and a sometimes painful one at that). In the course of my reading I have come across a number of blogs and articles on the subject which have been helpful, so I created this article to keep track of them. >