19
PSA: I spent 4 months debugging a typo in a CSS class name
Finally noticed I wrote 'calender' instead of 'calendar' in 12 different files across my project. Has anyone else wasted hours on a single letter mistake like this?
3 comments
Log in to join the discussion
Log In3 Comments
valc911mo agoMost Upvoted
I spent 4 months debugging a typo" sounds rough but honestly, that kind of thing is on you for not catching it sooner. Typo hunting is just part of the job, especially with something as minor as a class name. A good find-and-replace or a quick code review would've saved all that time.
7
jamieb801mo agoMost Upvoted
Oh man have you ever seen a typo that just... hides? A buddy of mine spent like 2 months trying to figure out why his app was crashing on one specific device. Turns out he'd typed "retrun" instead of "return" in a function name. The thing is, he'd used it everywhere else right, so the typo was only in like 3 spots. But because he was new to the codebase he kept thinking it was a logic bug. We sat together for an hour one night and I spotted it in like 10 seconds. He felt so dumb but honestly those are the ones that get you.
3
paulw531mo ago
jamieb80 hit the nail on the head with that one. I spent three days once chasing a bug where my dropdown menu just wouldn't close on click. Found out I wrote "click" instead of "click" in one event listener. Felt like a total idiot but hey, happens to the best of us.
4