Issue 01 · May 2026

Name things for the next engineer

The first issue: the smallest habit with the biggest effect.

From Mushfiq Alam Sami <mushfiq9912@gmail.com>

Hey, welcome to the first issue of Notes on craft.

I wanted to start with the smallest habit I know that changes how code reads. It costs nothing and you can start in the next five minutes.

Tip of the issue

Say what it is, not what it holds

Names like data, item, temp and handle tell the next engineer nothing. They make you read the whole function to find out what it does.

A good name carries the intent. The reader should know what a variable means before they see where it comes from.

// Before
const data = await get(id)
const handle = () => setOpen(!open)

// After
const invoice = await fetchInvoice(invoiceId)
const toggleMenu = () => setMenuOpen(!menuOpen)

If you cannot name it clearly, that is often a sign the function is doing two jobs.

Small challenge

Rename five things

Open the last file you edited and find five vague names. Rename each one so that someone new to the project could guess what it does. Read the file again and notice how much faster it goes.

Hint: your editor's rename shortcut updates every usage for you.

Worth your time

Project idea

A naming linter

Write a small script that scans a codebase for names like data, temp and thing, and prints where they appear most. It is a good excuse to learn how to read a syntax tree.

That's it. Reply with what you built, or what broke. I read every one.

Mushfiq

Got something in mind?

mushfiq9912@gmail.com

Dhaka, Bangladesh