CodeSOD: A Poorly Pruned Branch
The Daily WTF
MAY 14, 2024
$path ) { //do stuff } else { //do other stuff } After another team member made a commit, however, the code turned into this: if ( 1 == 2 ) { //do stuff } else { //do other stuff } Now, generally , when I see 1 == 2 type expressions, I just assume that this is a templated, generated bit of code. But no, we did none of that.
Let's personalize your content