Experienced engineer examines comments in a legacy codebase

yacgta@infosec.pub to Programmer Humor@programming.dev – 229 points –

As title

6

You have comments in your legacy codebases?? Luckyyyyy

// This enters the if branch if "myVar" == true
while otherVar == 42 {
    // do something
}

Lmao I've unfortunately seen stuff like this, where other parts of code that looked like just made up stuff had zero comments. Basically comments only where they weren't needed and lacking where they're needed