Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I am a bit biased on the content ;), but note that this is a talk that is not focused on teaching the language but more on what does it mean to learn a second language, especially a niche one - like Nim - coming from Python. It does shows some code examples and highlights some features though. I like official documentation (tutorials) but Nim basics is another good resource.

When I first learned Nim I remember the thing I struggled the most with was the mutability of parameters when passing them. Another big thing I would say is letting go of python’s dict and embrace types. In place of dict I usually consider the following options: tuples (which are great and named), objects, tables (from stdlib, very similar to dicts but with homogenous types for keys and values) and JsonNode (as a final option if the others do not work).

Advent of code makes for a great practice ground.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: