1
Spent 2 hours debugging a missing semicolon in JavaScript last week
I was building a simple calculator app for a class project and kept getting this weird error. After an hour of staring at the code I realized I forgot a semicolon before a function call. Has anyone else had a tiny syntax error eat up hours of learning time?
2 comments
Log in to join the discussion
Log In2 Comments
simonl8616d ago
I once spent a whole evening hunting down a bug in a simple loop. Turned out I used a comma instead of a semicolon in the for loop header. My code looked like a toddler wrote it. It's always the tiny stuff that gets you. Made me feel like a real genius staring at the screen. You ever catch yourself whispering "come on, work" at your own code?
6
hugow3016d ago
Dude I spent three hours last week hunting down a bug where my button click just would not work. Turns out I had a comma after my function definition instead of before it. JavaScript just sat there being like nah I aint running this. I literally talked to my laptop like it was a disobedient pet. Come on you little gremlin just do the math. Worst part was my roommate walked in and caught me arguing with a variable name. Real peak programming moment right there.
3