12
Debugged my first real function after 3 weeks of staring at the screen
Was working on a simple calculator project for class and kept getting NaN errors. I had a typo in my variable name that was messing up the subtraction part. Fixed it at 2am and the whole thing ran perfectly. Has anyone else had a bug that took way too long just because of a missing letter?
2 comments
Log in to join the discussion
Log In2 Comments
harperb467d agoMost Upvoted
Three weeks debugging a variable name typo, I once spent two days hunting down a missing semicolon in a loop and felt like an absolute genius when I spotted it.
3
hannah3855d ago
Dude, a missing letter got me for like a week and a half once. I was building this basic todo list app and the add button just wouldn't push new items to the array. Turns out I wrote "pussh" instead of "push" and my brain just refused to see it because it looked close enough. I get that 2am fix feeling though, its like a weight just lifts off your chest. Hang in there, we've all been there with the dumb typos.
3