8
Spent 2 hours debugging a missing semicolon... in a Python file
Yeah so I was working on this little calculator project for like 3 days straight and kept getting syntax errors. I was staring at line 47 convinced I had a typo somewhere. My buddy comes over, looks at my screen for 5 seconds and goes 'dude you're putting semicolons at the end of every line, this is Python not Java.' I felt so dumb but at least I learned the hard way. Anyone else mix up language rules when switching between coding languages?
2 comments
Log in to join the discussion
Log In2 Comments
piperwhite12d ago
Man that semicolon thing is brutal. I used to do the same when I was jumping between JavaScript and Python for different projects. What finally clicked for me was keeping a little cheat sheet taped to my monitor with the basic syntax differences like no semicolons in Python, no curly braces, that kind of stuff. Took a few weeks but eventually my brain just autoswitched when I opened a file. Did you find any other weird habits crossing over between languages?
0
faithwalker12d ago
The cheat sheet idea is exactly what saved me too.
10