I don't think that I could have expressed the essential sentiment better than @geinst:
(emphasis mine)
Quote:
I think the best and most performant code is the code that the programmers can the most easily read, understand and work with.
Computers are quite beastly these days, and [...] you should be fine just writing legible stuff, even if you're using old versions of compilers and whatnot from back then. [...]
|
At the end of the day,
"you are writing for the programmers who will follow you." Remembering that those programmers might have utterly no idea just who you are or were. (They won't be able to glean any insights from the grass atop your grave ...) Therefore,
"clarity is the key."
Personally, if I encountered source-code such as
"if (mode && (mode...", I would have preferred
"even more clarity." I would have preferred that the "OP = Original Programmer"
first, explicitly, have disposed of the case where "&mode" might have possibly referred to "nothing."
In my opinion, the case where
"mode refers to nothing" is
distinct from the case where "[mode refers to
something and ...] mode does not equal newmode."
"TMTOWTSI ... There's More Than One Way To Say It.™"