https://github.com/rhpvorderman/adventofcode2020
https://github.com/rhpvorderman/adventofcode2020
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/rhpvorderman/adventofcode2020
- Owner: rhpvorderman
- License: mit
- Created: 2020-12-10T07:24:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-10T10:15:49.000Z (over 4 years ago)
- Last Synced: 2025-01-17T08:44:01.276Z (4 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Advent of Code 2020: Problems solved with Python
These are my answers for the [Advent of Code 2020](
https://adventofcode.com/2020/) challenge. I use Python as my main programming
language for this exercise.# Overarching goal: show novice users some good Python code examples.
Having been programming in Python for a few years now, I have learned a lot
about how to write nice, readable and correctly working Python programs. I am
by no means a Python guru, just somebody who likes to share lessons learned.
If you see some solutions that can be improved, feel free to make a PR!## Goal: show off the stdlib
Python has many useful builtin features or functions that can be used to
solve problems as stated in "Advent of Code". I hope to highlight these
features by solving the problems and hope this encourages people to read the
Python documentation more when they are trying to tackle a problem.## Goal: provide functional programming examples
The programs follow the functional programming paradigm as much as possible.
The functions should return the same output when given the same arguments.
There is no internal "state" to take into account. This simplifies testing and
code maintenance.## Goal: provide examples for testing
All programs are tested using [pytest](https://docs.pytest.org/en/latest/).
This ensures that they work before the solution is submitted. It also shows
new users how to write a few simple tests.