Recovering from a Software Engineering Mistake

Here’s a mistake that I made as a programmer and how I recovered. TIL like attack The first significant application I built by myself was Hashrocket’s Today I Learned. A feature of the site was a post “like” button, which you could click to show that you liked a post. You could even click it when not logged in! The site then kept track of posts you’ve liked. If you’ve ever tried to build a feature like this, you know that it’s hard to control unauthenticated user activity. ...

September 29, 2026

Writing Math.max in JavaScript

For a recent talk I examined some JavaScript implementations in Node, and ended up reading the source code for Math.max, which does this: Math.max(100, 1); // 100 Here’s the code: extern macro Float64Max(float64, float64): float64; transitioning javascript builtin MathMax( js-implicit context: NativeContext)(...arguments): Number { let result: float64 = MINUS_V8_INFINITY; const argCount = arguments.length; for (let i: intptr = 0; i < argCount; i++) { const doubleValue = TruncateTaggedToFloat64(arguments[i]); result = Float64Max(result, doubleValue); } return Convert<Number>(result); } To better understand this function, I decided to write my own implementation in JavaScript: ...

September 27, 2026

On "Invisible" Software Engineers

My comment on The best engineers I know are almost invisible online – LinkedIn “I’ve seen a decent amount of both. Great engineers who are also prolific content creators, great engineers who are silent, and middling engineers in both categories. Although, it’s hard to maintain the Dunning-Kruger effect when you’re regularly sharing engineering ideas online.” The author continues to argue that invisible engineers should consider building an online presence to survive in today’s job market. I agree. ...

September 23, 2026

JavaScripting on main()

I had ChatGPT write a JavaScript for me, and was surprised to see this arrangement: function main() { // Do work... } try { main(); } catch (error) { console.error(error); process.exitCode = 1; } I would not have written this file this way; instead, I’d have put a try/catch in the file directly and probably forgotten the exit code. This lets my script return nonzero on any error and be chained with other scripts. And it encapsulates the work in main(), a C-like flourish I admire.

September 23, 2026

Enable Markdown Syntax Highlighting in Fenced Code Blocks

I use Vim for presenting technical talks in markdown. But code blocks in markdown don’t get syntax highlighting in Vim. Let’s change that! Set this: :let g:markdown_fenced_languages = ['typescript'] Now, when I create a TypeScript fenced code block (three backticks + typescript), the type-safe code inside get highlighted, right inside my markdown. See help syntax for more.

September 21, 2026

What blog posts influenced your thinking the most?

What blog posts have influenced my thinking the most? Here are three. This is a response to this post. Thanks to Simon Willison and Josh Branchaud for the inspiration to write this. Learn in Public, Shawn Wang. As a self-taught programmer, I needed feedback. Getting permission to fail publicly has allowed me to harness the entire internet in my growth. The Trap of the Premature Senior, Charity Majors. Titles in software do not directly map to competency. The way you get truly great is by doing your time on multiple teams. ...

September 15, 2026

How To Get an Interview When You Don't Know Anybody

Perhaps you’ve heard that career adage: “It’s not what you know, it’s who you know.” I’ve found this to be true: most of my software engineering opportunities came from a referral inside the company. But what if you don’t know anybody? I’ll start by challenging the premise: you probably know somebody. An acquaintance who works at a company with programmers. A local business owner with a website. A cousin in tech. Think hard! When I do this, I usually discover someone I can lean on. ...

September 14, 2026

Simplified Technical English in my Writing

This week a colleague taught me about Simplified Technical English in the context of agentic software development. I’m fascinated by technical writing techniques, so I intend to explore this. To start, I took ten instruction-like sentences from this blog, and asked ChatGPT to convert them to STE. Here’s what it came up with. The original sentences: Updating dependencies is good. Now, look at the console. Considering this result, think about another action you might take. You can remove it, and you ought to understand the consequences. Here’s some detail on how it works. Change a giant conditional to true! Be fast at committing code. In the real world, no two teams are going to use their data tools in the exact same way. For the salvageable tests, take a minute and fix them. Fix the commands and clear out the mail. And the LLM-generated STE sentences: ...

September 10, 2026

toString can be set in JavaScript

A while ago, I wrote that you can use .toString() to reflect about user-defined functions in the JavaScript runtime. There’s a catch— this value can be set, making it not a reliable way to reflect the function. Create a confusing function: const one = () => '2'; Set it’s .toString to another function: one.toString = () => '1'; one.toString(); // '1' Now call the function: one(); // 2 .toString() was a lie!

September 9, 2026

Read Node's Process Versions

Node has a key process.versions that can tell us a lot about itself. Here’s one its many keys, telling me the V8 version of my Node with the -p / --print flag: node --print process.versions.v8 14.6.202.34-node.28 See node --print process for more.

September 9, 2026