3 ms·
My problem is remembering the syntax of the language I'm in rather than other languages I've learned. To use your analogy; it gets tricky doing push-ups becaus
by marcus_holmes 6y ago
My problem is remembering the syntax of the language I'm in rather than other languages I've learned.
To use your analogy; it gets tricky doing push-ups because my body remembers doing crunches and my knees get in the way.
Better analogy: I'm learning German at the moment, but my brain keeps "helpfully" supplying the French word whenever I'm mentally grepping for German vocab.
Remembering that JS switches need a break statement but Go switches don't - or that JS If statements need the brackets but not the braces, and Go If statements don't need the brackets but do need the braces. This shit trips me up even after years of coding in just JS and Go.
- astura 6y agoYour IDE should take care of that for you. Disclaimer: I used to write code without internet access every day for years (was in a secured area where internet and phones are not allowed).
- marcus_holmes 6y agoYeah, it kinda does, in that when I save the file it tells me I made the mistake. But I still made the mistake.