Lesson

36 articles · all categories

Lesson articles

December 2021

Why null checks are bad

Every null or undefined check doubles the number of tests you need 😱

November 2021

How defensive coding leads to bloat

Defensive coding is an important lesson and over time and engineers it leads to massive bloat, if you're not careful.

March 2021

Your luck & opportunity surface area

Here's a comment that resonated yesterday and you might like. It's about how to maximize the opportunity in your work.

Different medium, different mindset

Ever wondered what it's like to make a physical book? It ain't as easy as shipping code lemme tell ya 😅

Variants – a quick tip for better React components

Reusable components like to grow boolean props for different situations and complexity soon blows up. Variant props are the perfect solution.

August 2020

Lessons from migrating a 14 year old blog with 1500 posts to Gatsby

After 4 years of putting it off, 1 year of tinkering, a month of work, and $1500 of hired help, my new blog is finally here 🎉 Here's what I learned.