Junior Devs Writing Comments

Junior Devs Writing Comments
code-comments-memes, junior-developers-memes, redundancy-memes, clean-code-memes, documentation-memes | ProgrammerHumor.io

The code comment redundancy epidemic has reached street signs! Just like that sign helpfully pointing out "THIS IS A STOP SIGN" under an actual stop sign, junior devs have a special talent for writing comments that state the painfully obvious:

// This function adds two numbers
function add(a, b) {
  return a + b; // Returns the sum
}

Senior devs scrolling through that code base are experiencing physical pain right now. Remember folks: good comments explain why, not what. Unless you're documenting an API, in which case... carry on with your obvious statements!

More Like This