upvote
I've seen so many software bugs in my career where when you traced execution, you'd find the code crashing in a block with the comment //this can never happen
reply
That’s not a bad thing though — what that means is that the original dev believed this could never happen and probably therefore could not decide exactly what the right way to handle the error is.
reply
Whether they were wrong is a matter of perspective.

I think they were against over engineering because they were constantly firefighting bugs and didn’t have time to thoughtfully review.

reply