I sometimes like to think of good code as short stories. Badly factored code is like a novelization of a story. Too long with too many side quests and you only find out at the end that the butler didn’t do it. Whether that pleases or infuriates is a gamble.
Excessively terse code that requires broad life experiences to unpack? It’s interpreted by every observer to mean something different. Like a haiku, or even a song, the story being told is unclear. Beautiful, moving, but unclear.
I much prefer short stories. A little flavor text, but no time for more than two clever ideas at once.
I love this response and wish every disagreement could start with this perspective.
its so many things and so complicated.
Its all those things and none of those things.
Code is code. Humans are the ones with the obsession of abstracting and categorizing things to make ourselves feel better. In reality, none of those things actually exist
Epic poems like The Iliad or Baghavad Ghita or the bible are not immaculately retold from scratch but depend heavily on repetition and context cues.
Code is the same.
Although that person was actually mostly right about me; that project is the only real success I've had in my line except getting married and staying married. (And quite frankly, that's just because my wife seems to like me more than I deserve.)
And I will certainly do the same in my current project.
Some of the most delightful moments I've had are when someone emails me with questions that indicate they've read my code, such as mentioning specific comments or asking about something in that dissection manual.
I consider it a badge of honor if people think my code is good enough to study.
[1]: https://git.gavinhoward.com/gavin/bc/src/commit/75cf2e3358b5...