Thank you for posting this! I've been intrigued by Nim for a while, and this seems like an ideal kickoff point.
Does anyone with Nim experience have any thoughts on the content? Things to be aware of, things to focus on, etc?
pietroppeter•9mo ago
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).
digdugdirk•9mo ago
Does anyone with Nim experience have any thoughts on the content? Things to be aware of, things to focus on, etc?
pietroppeter•9mo ago
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.