My beginner calculator app crashed every time I typed a decimal point, took me 3 days to spot why
Last Tuesday I was finishing the little calculator project from the free Codecademy course and every time I hit the period key, the whole thing froze and threw an error I didn't understand. I spent about 3 hours rereading my input code before I finally printed the raw value to the screen and saw it was coming back as text, not a number, so my math line choked. These days you can paste the error into a search box and get an answer in seconds, but back when I started tinkering with code in 2011 I would've been stuck flipping through a library book for a day. Fixed it by wrapping the input in a number function, felt like a genius for about 10 minutes. How do you all catch bugs like this, do you print stuff out or just stare at it until it clicks?