Spent 6 hours on a missing semicolon in my "simple" calculator app, so is debugging by hand better or is a debugger cheating? | Coding For Beginners - nhfree.com
Spent 6 hours on a missing semicolon in my "simple" calculator app, so is debugging by hand better or is a debugger cheating?
Last Saturday I sat in my kitchen in Boise with a 40 line calculator app that would not run, and the error message just said "unexpected token" on a line that looked fine to me. I tried print statements, retyped the whole function twice, and even started over from scratch before I saw it, one missing semicolon on line 12. Six hours for one character. Side A says new coders should live with that pain because you learn how code actually works and you get faster at spotting your own mistakes. Side B says use the debugger from day one, set a breakpoint, and stop wasting a Saturday on a typo. I'm torn because the pain did teach me to read my code closer, but six hours feels like too much rent to pay for that lesson. Where do you land on this, and if you're team debugger, what finally made it click for you?