4 ms·
For me, project based learning is the best method for learning a new language. Basically, pick a language and build something with it. Doesn't matter what. Goin
by cweagans 5y ago
For me, project based learning is the best method for learning a new language. Basically, pick a language and build something with it. Doesn't matter what. Going this route helps you get a feel for the language, how you might actually go about building something in practice, etc., which is much more valuable information than some rando's thoughts about the language in a blog post.
Building a CHIP-8 emulator is a fun first project (and generally very approachable -- there's a C tutorial at https://austinmorlan.com/posts/chip8_emulator/ https://austinmorlan.com/posts/chip8_emulator/, which is helpful for understanding what approach you might take to get something working in another language). For Go specifically, I learned via https://interpreterbook.com/ https://interpreterbook.com/ (and the sequel, https://compilerbook.com/ https://compilerbook.com/).
IMO, stay away from Rosetta Code unless you're really, really stuck. You don't want to e.g. write Python in a Javascript-y way. You should learn the Python way as much as possible.
- duped 5y agoTwo easy projects that I think are a good intro to any language are a tiny LISP parser/interpreter and an echo or chat server. They'll get you up to speed on internal libraries, project setup, building and testing (all the boring stuff you need to know) and then are complex enough that you can learn the core syntax and semantics with opportunities to flex the neater parts of a language.