Reply to post: Argh

'I bet Russian hackers weren't expecting their target to suck so epically hard as this'

kryptonaut

Argh

Why not just simply check for omega == null?

Because that is not what the function currently does. That is what the comment says it does, which is not the same thing.

What if alpha and omega are both null? What if alpha is "x" and omega is " " ?

If you simply replace the code with something that does what the comment says, or what the function name implies, you risk breaking things by changing functionality.

What if the code is performing correctly (despite being poorly written) and the comment and function name are actually the things that need to change?

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon