Chapter 2. The Art of Naming and Commenting
There are only two hard things in Computer Science: cache invalidation and naming things.
Phil Karlton
I’ve recently gained new appreciation of this classic line from the 1990s. It seems, even during the crazed frenzy of the dot-com boom, they knew about the dual puppet masters of the software engineering marionette, the system and the users!
To many of my colleagues, naming provokes a sense of low-key awe: like, how dare something so seemingly trivial be so interesting? To others, it’s a tedious topic strewn with painful memories of long, fence-painting arguments.
Comments attract similar mixed reactions. The perfect comment can work magic to a busy reader, but they are harder to maintain and users sometimes don’t read them, making it hard to get motivated to write useful ones. They can also be intimidating to writers commenting in a second language.
Whatever your stances, if you have ...
Get The Product-Minded Engineer now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.