4 ms·
Rust this year! We should have a daily HN post to share our solutions for open code reviews :)
by exdsq 5y ago
Rust this year! We should have a daily HN post to share our solutions for open code reviews :)
- Jtsummers 5y agoThey have a daily mega thread for solutions over on Reddit: https://www.reddit.com/r/adventofcode/ https://www.reddit.com/r/adventofcode/ https://www.reddit.com/r/adventofcode/comments/r66vow/2021_day_1_solutions/ https://www.reddit.com/r/adventofcode/comments/r66vow/2021_d... It's interesting to see the various solutions, especially when you realize, "Oh, duh, I did more work than necessary." and can go back and improve your own with the new knowledge.
- exdsq 5y agoMy Rust implementation was horrible! First time I'd written Rust. It's fun to see peoples far better Rust solutions or, amazingly, the most recent solution that was in Powershell!
- Jtsummers 5y agoMine was delightfully mediocre. No actual blunders, but several missteps that I removed later (like calling enumerate and then in the next step using map to remove the index...). I've written some Rust in the past but it's been long enough I only remember the basic language syntax, not the libraries.
- jodrellblank 5y agoRust looks like a very popular choice this year: https://aocweb.yulrizka.com/?year=2021&day=1&language=Rust https://aocweb.yulrizka.com/?year=2021&day=1&language=Rust