Ask HN: How do you memorize syntax and common API for a new language?

2 points by jehlakj ↗ HN
I'm sure a lot of people here will recommend doing a lot of side projects, but is there a more boring yet effective way? Similar to flash cards instead of writing for vocabulary. The biggest contextual block from coding with an unfamiliar language is the syntax and basic API.

If I could draw an analogy, it would be trying to learn a language in a foreign country without any fundamental understanding. I find it much easier to absorb new materials when I have a basic set of common phrases memorized beforehand.

2 comments

[ 3.1 ms ] story [ 12.6 ms ] thread
For the past seven years, whenever I learn something new, I put it into my set of Anki (https://apps.ankiweb.net/) cards. Details tied to a job are tied to that particular job; when I leave, I delete those cards. Almost everything else stays.

Anki may have been designed for learning languages, but it's a great system for learning anything.

I know sexp; I don't need to learn new syntax. I only need to learn new API.