💾 Archived View for tris.fyi › flightlog › 2021-12-24-aoc-retrospective.gmi captured on 2023-11-04 at 11:36:31. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-03-01)

-=-=-=-=-=-=-

Advent of Code retrospective

This year, I participated in Eric Wastl's Advent of Code, as I have done in past years. I had a lot of fun and will definitely play again in the next event. This post is about lessons I learned this year and what I would like to differently next year.

Advent of Code

How I played

As usual, I wrote my solutions in Python with a custom answer download and submission framework. I'd like to clean this up and release the framework, but I don't really have the time or motivation right now.

Unlike past years, I tried to write some reusable utility functions throughout the event. I ended up with a few useful ones, but I usually didn't reuse them for more than one day. Utility functions are covered a bit more later.

As for how I performed during the event—I think I did really well! Just from December 1st to 23rd I managed to get 40 out of 50 stars, which is significantly better than I've done in previous years. I also placed 33rd on the global leaderboard. At the time of writing, there were over 210k people who got the first star in the event. Of course, not all of them were playing competitively, but I'm still very proud of how I performed this time around!

In past years, I've been competitive on the leaderboard, but burnt out around day 10 from the stress of trying to stay competitive. This year, I managed to hold on through Day 22 (although I didn't complete every puzzle). I think I burnt out this year just from not having enough energy to quickly complete 25 multipart programming puzzles in a row, instead of pressure to compete.

Thoughts on the puzzles

I think Eric did a great job with the difficulty curve this year, although the ramp-up on day 19 was a bit much for me. Days 22 and 23 also had very rough second parts compared to their first parts. I don't think these are a bad thing, it was just difficult to get used to when the first 18 days had a more consistent difficulty curve.

Plans for next year

I will definitely be playing Advent of Code next December if I am able to. I don't know if I'll play for global leaderboard placement though—it was very stressful, and "having" to solve problems quickly definitely negatively impacted my enjoyment of the event.

Next year, I'd like to try to focus on well-designed and tested solutions, instead of quick and dirty code. This would make it much easier to release my work and let me keep a healthy sleep schedule, too :)

If I play competitively again, I'll write a more comprehensive utility library well in advance. These themes came up during this event:

Plus, of course, the usual input parsing requirements. It would be nice to have a better way to parse inputs next year, but I'm not sure how this would look.

Final thoughts

I had a good time playing and solving the puzzles this year! Thanks to Eric and everyone else who made Advent of Code happen this year.

Thanks also to the folks in #adventofcode and #adventofcode-spoilers on Libera.Chat for talking about optimization with me and for pointing out how I made some of my algorithms accidentally take way longer than they should :)

Looking forward to next year!

Comments

Please email me at tris@tris.fyi if you have any comments on this article. If you'd like your comment published, please let me know and include how you'd like to be credited (name, and if you've written a gemlog in response to this, a URL to that), if at all.