Overly Long Variable Name Could Have Been a Comment

7 todsacerdoti 3 7/2/2025, 4:58:15 PM jonathan-frere.com ↗

Comments (3)

julik · 9h ago
From the desk opposite: This function name could have been an actual word (looking at you, Plan-9 inspired systems with a pervasive shortage of characters).
scblock · 17h ago
This would be more interesting with a few examples of overly long variables and a revised approach with a comment. Ideally realistic ones.
MrJohz · 13h ago
As the author, I agree! I did originally have space for an example near the start, but I ended up taking it out because I couldn't think of a good example that wasn't deeply contrived, and I'm currently on parental leave so I can't easily check the codebases I work on regularly for examples that I've run into there.

I probably wouldn't have thought to include the "after" example as well, though, so thanks for that feedback. In my next post I'll try and include more examples.