My solutions for Advent of Code 2022. I completed all (minus half a day) in Python and started with doing some of them in Elixir. My intent is to solve more exercises in different languages, like Rust and Haskell, to see how their strengths change how you get to a solution.
I set some goals and guidelines for myself.
- Keep my knowledge about Python fresh
- Use recent additions, like pattern matching, where suitable
- Have fun!
- Prioritize readability over clever tricks (remember the Zen of Python!)
- Do not use external dependencies
- Use the strengths of the language (e.g. easy to use iterables, different paradigms, extensive standard library)
- Learn more about the language
- Don't be afraid to learn by example
- Use the strengths of the language: pattern matching, immutability of data. Avoid traditional loops.
- Have fun!
- Prioritize readability over clever tricks
- Do not use external dependencies