
Yes, when you write software in multiple languages (JavaScript/TypeScript, Swift, Python, Java, Dart), syntax minutiae will get you and more often than not at the worst time. I once presented in front of hundreds of developers at a conference and made a stupid mistake of forgetting a coma. Even my editor was warning me and I was in the flow of my presentation I didn't notice it.
So tips to help:
- Listen to your editor (if there is a warning look it up): most editors come with syntax check, auto-completion and recommendations
- Lint your code: this is the best way to catch syntax best practices
- Test your code: without tests you can't assess if it's working and when it doesn't tests show you where it is
- keep a library of docs for the languages and frameworks you use: I use dash on my Mac for that.