Advent of Code
For the past 10 years in December, Advent of Code takes place. It is a series of small programming puzzles released daily from December 1st to December 25th. The first days are usually trivially easy, but the difficulty ramps up quickly, until at the end it takes multiple hours to come up with a working solution and implement that.
I started participating in 2020. In a time before LLMs, I actually completed every puzzle on the day it was released in Python, which took me many hours for the later challenges. After a successful first time, in 2021, I wanted to use the event as an opportunity to learn a new language, so I attempted to solve all puzzles in Rust. This was considerably more difficult because now I had to deal with the difficulty of the challenges and the borrow checker. That year, I was in Sweden, and remember well how I sat in a bus on the way to Lappland for more than a day, solving two puzzles there. But that trip was also where the streak ended, and I only got to day 12, completing the rest of the puzzles in the spring of the following year.
In 2022, I had a similar experience, with a particularly busy December for me, I again tried to go with Rust, but only got to day 11. When I returned to the puzzles in September, this was when I first used LLMs for Advent of Code. For 2023 and 2024 I tried out new languages. In 2023, I tried using Clojure, but lost motivation and only got to day 10. In 2024, I used Go, once again quitting, this time at day 14.
This year something changed. The contest was reduced to 12 days, making it much more manageable to complete and the global leaderboard was removed. This was a reaction to LLMs being used to complete the challenges within seconds. I never had any intention to compete in the leaderboard, since it would have required waking up unreasonably early. Christmas time is usually busy as is, with the challenges adding onto that. So I decided to take it easy this year, and use Python again. As I use LLMs constantly now for all kinds of programming tasks, I decided to forego their usage entirely as a small exercise. Things got in the way again, but I completed all challenges by December 13th, so I was happy with that.
One thing that makes Advent of Code difficult is debugging implementations. There is usually one example input per puzzle, which may not cover all edge cases. Submitting a solution only tells you whether it is correct or not, but not what went wrong. So usually you have to come up with your own test cases. This year’s final puzzle subverted this principle, but I will not spoil it here.
It remains to be seen whether Advent of Code will return to the 25-day format next year. Nevertheless, I am sure to participate again. Advent of Code is a great way to practice programming, try out new techniques, and also learn from others by looking at their solutions after completing the puzzles oneself.