> I'm guessing that you two are having a communication problem as it is highly unlikely that a "senior colleague" can't understand simple logic.
I've seen code written by a senior developer who writes
if some-predicate
// left blank.
else
// do something
end if
Because it's apparently too hard to work out how to invert logic. It's a pattern I've seen in our code base enough that I've started calling it 'if-meh-else'
I've seen code written by a senior developer who writes
Because it's apparently too hard to work out how to invert logic. It's a pattern I've seen in our code base enough that I've started calling it 'if-meh-else'