19

When you debug for 2 hours. Due to a logic error. You go through every line. It all makes sense. You find a semicolon after an if statement... Shouldn't the compiler have caught that?

Comments
  • 0
    What compiler are you using?
  • 1
    In C#, PHP and Javascript the following is perfectly valid syntax:

    if (false) ;
    new Apocalypse().Begin();
  • 1
    @kwilliams Still, a good linter would pick that up as "probably a mistake"
  • 1
    I'd say commit more often. I find these things only happen to me when I go rouge for too long.
Add Comment