William Pritzker
Sep 3, 2018 · 1 min read

Syntax Errors — and Dealing with them

In my second month of learning to code I have found the single biggest obstacle to continued success to be syntax errors. Rather that focusing on big concepts, the majority of my time in the text editor has been spent scouring for a missed comma or quotation mark that threw everything off. This is all the more frustrating as a beginner. Not only am I looking for the instant gratification of a successful code, I do not yet have the experience to know my fundamentals are sound. These are the strategies I have used to help:

1: Review error messages — Typically the error message will point out the line in which the code needs to be corrected in this instance. However, often the error message disguises the actual issue. In this case…

2: Use color codes — Colors in text editors exist only to help prevent typing errors. Use them!

3: Retype what has changed in the code — Hopefully, this will only be a few lines but often I identify a missing comma or spelling error that I had previously not caught.

4: Tell your rubber ducky what your code is trying to accomplish — You may find that the error isn’t in fact from syntax.

WPritzker

Bits of my learning

William Pritzker

Written by

WPritzker

WPritzker

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade