Hacker News new | ask | show | jobs
by forrestthewoods 1677 days ago
A++++ loved it. I wrote a pair of blog posts about it.

https://www.forrestthewoods.com/blog/learning-rust-via-adven... https://www.forrestthewoods.com/blog/solving-advent-of-code-...

To be clear, I don’t compete for the leaderboard or code golf. But I do try to write elegant code that’s performant.

AoC is a great way to learn a new language. I try to solve the puzzles entirely on my own. Then I check the Reddit solutions thread and Ctrl-F my language. It’s a great way to learn new tricks, libraries, or just idiomatic language style.

And using Rust for AoC turned me into a certified fan. Rust iterators are really great compared to C++. They’re like C# linq but better. The itertools crate is super helpful.