I was searching for a bug the other day and came upon the C construct: if (!strcmp(buf, “blah blah”) == ‘0’ ... and I died a little on the inside. Right after I puked in my mouth a bit but before all of my dog’s hair fell out.
2
1
3
0
0
@bsdunix4ever Apart from the obvious of course, I've got two points to add: a) Just imagine what was broken before someone figured this was a better solution. b) Going over legacy code is insane sometimes. I found recently "Remove if 2012 is a long time ago" cmt within a global login system.
@bsdunix4ever wait…comparing to a '0' char? The odd negation in there? which part pushed you over the edge?