22
Deegriz
8y

Worst. 2 am on campus, js file for a web app project. It didn't work, no exceptions thrown, no errors. I call the assistant teacher. He calls the teacher. Teacher calls the head of department. Four of us staring at the screen for an hour, trying different browsers, environments etc
3 am, switch cases had semicolons rather than colons. Sleepy coding is the worst.

Comments
  • 2
    😄😄
  • 1
    Yeh. I don't think I can count on two hands, how many times I've thought "what the flying Fuq" when reading my code from a sleepless night :p
  • 0
    Use a linter for that. It will quickly catch syntax errors and consistencies.
  • 0
    @phoomparin Oh, I was using NetBeans at the time.
  • 0
    You sir could do with a good IDE or a linter
  • 1
    @CogInTheWheel This was 3 years ago, I happily write JavaScript in proper editors now. Also I take way more coffee
  • 0
    Reading everything out loud would help, at least did for me several times 😂
Add Comment