Comments (5)
I only discovered AoC this year, so I am doing a lot of catch up. I'm rather impatient so I have started doing 2015 while I wait for the next days problem to be released.
I liked your idea with the framework but was annoyed at having to copy paste stuff between the solutions and not being able to run all days at once so I made the improvement on my end.
> dotnet run -c Release --project .\AdventOfCode\ -- --help
AdventOfCode 1.0.0
Copyright (C) 2021 AdventOfCode
-y, --year Year selection (default is highest year)
--all Enables running all days for year or all years if no year is specified
--help Display this help screen.
--version Display version information.
value pos. 0 Specify days to run (ie: 1 2 3)
I'm using CommandLineParser for args and added -y ####
as to let me focus on year.
from aochelper.
Fair enough, I'll leave this issue open to track the feature suggestion so that people can 👍🏼 if they agree, but not planning to implement it straight away for the reasons mentioned above.
from aochelper.
https://github.com/h2oboi89/AdventOfCode
Here is link to my code for your reference should you choose to implement this.
from aochelper.
Thanks for the suggestion @h2oboi89.
Out of curiosity, do you find that more useful than having N projects, one per year?
Apart for simplicity in terms of AoCHelper implementation, the main advantage I find to maintaining one project per year is being able to use different versions of .NET/Libraries: if next year .NET 7 is released with breaking changes and AoCHelper 2.x is released with breaking changes, I wouldn't like having to update all my previous years just to use a new version of .NET/AoCHelper in 2022.
An example of a AoCHelper breaking change between v0.x and v1.x was the signature of the solver methods: ValueTask<string>
instead of string
, which in case of keeping all the previous years in the same project, would have required changes in all the Day
files in the repo to accommodate the new version.
from aochelper.
Related Issues (17)
- Problems being solved backwards order HOT 4
- Exceptions that contain brackets break the console HOT 2
- Solves in reverse order HOT 4
- Double table rendering
- Clear Console happens regardless of flag HOT 3
- Solve problem by index
- [Enhancement] Allow for higher resolution timings HOT 6
- [Enhancement] Show a sum of all runtimes at the end HOT 1
- Solver without static context? HOT 12
- [Enhancement] Timing for day construction HOT 5
- SolverConfiguration.ClearConsole doesn't work properly HOT 1
- Config option to allow for multiple runs
- Unhandled exception: System.InvalidOperationException HOT 1
- Improve re-render/partially update table
- Part 1 Timer seemingly starting early HOT 5
- Possibility of testing small demo inputs HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aochelper.