Incredible, real code I just ran into:
// FIXME: Explain this.
if (duration > 0)
duration += 5;
The code is 13 years old and the comment is 7 years old. No one ever explained it.

Alastar Gabriel (but you can call me anything). I'm an ex-professional software developer, now I make weird art and music :p I will give you bug facts unprompted
Twitch, Ko-fi, Neocities, Mastodon
We can be friends but I have to warn you, I am a little awkward and kind of hard to get ahold of :p
ENG/日本語 OK
Incredible, real code I just ran into:
// FIXME: Explain this.
if (duration > 0)
duration += 5;
The code is 13 years old and the comment is 7 years old. No one ever explained it.
my favorite thing about being a programmer is all the weird and concerning comments I've found in code that are super old. I found one once that said "THIS MUST BE FIXED". It was like 5 years old and the code hadn't been changed since then.
the best way to protect your weird magic code - that works, you know through blood, sweat and tears that it works - from being refactored into brokenness is by adding exactly that kind of comment. // TODO figure out all use cases for this or something. better than "this is not a place of honour"