How frno10/advent-of-code-2020 works
Main Components
a. Core Application Structure:
• An "Interface Layer" showing IDay.cs
• A "Day Implementation" container showing the pattern of individual day solutions
• A "Logging System" component for the Serilog implementation
• A "Utility Services" section for supporting components
b. Data Flow Components:
• Input data handlers (for .txt files)
• Output/logging streams
• Command-line argument processor
Relationship Representation
a. Primary Components (Use rectangles):
• ┌─────────────────┐
• Program Runner │
• ┘
• Day*.cs classes to IDay interface
• How input files (.txt) connect to their respective day implementations
• Demonstrate logging flow from components to Logger
Detailed Component Breakdown
Create sections for:
a. Core Runtime:
• Command-line argument processor
• Day resolver (IntToNameConverter)
• Feature switch handler (newFeatureSwitchSettings.json)
b. Challenge Implementation:
• IDay interface
• Day-XX implementations
• Associated data files
c. Logging Infrastructure:
• Logger component
• Log level configuration
• Output streams
Specific Implementation Details
Key relationships:
• Program.cs → IDay (interface implementation)
• IDay → Day[N].cs (concrete implementations)
• Day[N].cs → Day[N]Data.txt (data consumption)
• All components → Logger.cs (logging flow)