How jonoricci/advent-of-code-python works
Main Components Structure
a) Create three main vertical layers:
• Helper Layer (Top)
• Year Solutions Layer (Middle)
• Infrastructure Layer (Bottom)
Component Details
a) Helper Layer (jono_aoc_helpers):
• Input Management (load_input.py, request_input.py)
• Logging System (logger.py)
• Argument Parser (arguments.py)
• Performance Monitoring (timing.py)
b) Year Solutions Layer:
• Each year container should show:
• Day solution modules
• Year-specific configuration
• Dependencies
• Use a template pattern indicator showing relationship to day_00_template
c) Infrastructure Layer:
• Virtual Environment Management
• Make automation
• Documentation system
Interactions and Flow
• Solution modules ↔ Helper module interactions
• Template inheritance patterns
• Configuration flow from year level to day solutions
• Input/Output data flow
┌─────────────────── Helper Layer ───────────────────┐
• jono_aoc_helpers │
• ┌─────────┐ ┌────────┐ ┌─────────┐ ┌─────────┐ │
• Input │ │Logger │ │Arguments│ │ Timing │ │
• ┘ └────────┘ └─────────┘ └─────────┘ │
• ┬─────────────────────────────┘
• ↓
┌─────────────── Year Solutions ──────────────────┐
• ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ ┌─────┐ │
• 2024 │ │2023 │ │2022 │ │2021 │ │2020 │ ... │
• ┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ └──┬──┘ │
• ┴───────┴───────┴───────┘ │
• ┬─────────────────────────────┘
• ↓
┌─────────────── Infrastructure ──────────────────┐
• ┌─────────┐ ┌────────────┐ ┌───────────────┐ │
• PyEnv │ │ Makefiles │ │ Documentation │ │
• ┘ └────────────┘ └───────────────┘ │
• ┘