Awesome
Advent of Code 2019 Solutions
Solutions to the 2019 edition of Advent of Code.
Running
Invoke python part1.py
(or part2.py
) from each individual day's folder.
Yeah, nothing fancy; I'm learning Python while doing AoC this year.
Lessons Learned
Here are the lessons learned for each day:
- You snooze, you loose.
- Working without unit tests feels uncomfortable.
- AoC is indeed perfect for learning language basics.
- Knowing modern language's base libraries is key.
- Programming is more reading than writing.
- Don't climb two learning curves at the same time.
- Devils live inside Details.
- Solutions make problems look easy.
- Mistakes propagate through serialized solutions.
- Trigonomotry is not like riding a bicycle.
- Know when precision is required. Then use it.
- Persistence is not futile.
- Magic: how much others can do with so little.
- Some languages have higher cognitive load than others.
- Investor's fallacy is a great source for technical debt.
- Brute. Force. Works.
- Personal biases hurt debugging.
- Generalize problem, solve it, specialize it back again.
- Code can be ugly and beautiful at the same time.
- Map hard problems to easy problems, then solve those.
- Know when you need help, when you want help, and when they coincide (or not).
- Crypto is hard.
- Async programming is hard.
- Nobody expects the game of life!
- Sleep is an essential ingredient in good programming.
Compendium Repositories
I've created a browser extension for Google Chrome and Mozilla Firefox. It is open source to spice up your private leaderboard page with graphs if you want to contribute!
Here's direct links to every year's solutions I have so far:
- Advent of Code 2015 solutions: not available yet!
- Advent of Code 2016 solutions: not available yet!
- Advent of Code 2017 solutions, in JavaScript
- Advent of Code 2018 solutions, in C#
- Advent of Code 2019 solutions, in Python
- Advent of Code 2020 solutions, in TypeScript
- Advent of Code 2021 solutions, in PHP
- Advent of Code 2022 solutions, in JavaScript
- Advent of Code 2023 solutions, in TypeScript