In The Third Cup: After Everything Has a Name, DEV author xulingfeng stages a café conversation about what names let people remember. A customer can follow the variables on his laptop because he is writing the code now. He wonders how much he will remember when he opens it again months later.
The meaning a name can carry
In the story, the café owner writes regulars' names alongside drinks they usually order. The names work because the owner has seen the orders recur and can connect each label to a person. The menu starts a conversation when a visitor sees the names without knowing that history. A maintainer can have the same experience with an identifier that made sense to its original author.
The author ties the scene to a personal reading of Chapter 42 of the Tao Te Ching. The conversation uses the act of naming to explain how people recognize things and share what they know. The café owner also acknowledges how easily a label can leave out properties of the thing it describes.
Read the assignments before choosing a rename
Consider a hypothetical checkout function that stores unpaid invoices as data, then uses result for the list left after removing cancelled invoices. If the rest of the function sends reminders, invoicesEligibleForReminder might convey the filtering step. That name depends on whether the code also checks the other conditions for sending a reminder. Calling the list uncancelledInvoices would make a narrower claim that a reader could verify against the filter.
This gives reviewers a concrete question to ask when they see a rename. Which property of the value does the new name promise, and which line makes it true? The answer may be in an assignment beside the name, or the promise may depend on code farther away. What is an identifier you have had to trace through a codebase before you could decide whether its name was accurate?