Projects: use next challenge's seed as a solution
See original GitHub issueIs your feature request related to a problem? Please describe.
The new project based curriculum typically uses the solution to challenge n
as the seed for challenge n + 1
. As such, there’s a lot of code duplication.
Describe the solution you’d like
The ability to reference another challenge and import it’s seed as a solution. Perhaps using the following template:
## Solution
<section id='solution'>
<div id='challenge-solution' seed-id='id-of-the-next-challenge'>
</div>
</section>
As yet I’ve not put much time into working out how feasible this is, I just noticed @scissorsneedfoodtoo’s comment https://github.com/freeCodeCamp/freeCodeCamp/pull/36873#issuecomment-538846699 and thought it was worth discussing.
Edit: I mixed up the seed and the solution, fixed now.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Improving Seeds to Meet Future Challenges - State of the Planet
Scientists and agronomists are racing to develop seeds that are higher yielding, more nutritious, and drought and climate resilient to meet ...
Read more >Seeding Solutions - Foundation for Food & Agriculture Research
Seeding Solutions is our annual competitive grant program that funds audacious research supporting each of our Challenge Areas. Grants range between $300000 ...
Read more >Four Recommendations for Strengthening Seed Systems
1. Develop Varieties That Smallholder Farmers Want ... A crop variety's performance influences how much land, other inputs, and labor farmers can justify...
Read more >Seed production challenges & solutions - Cropin
Learn all about the use of intelligent ag-tech to ensure seed production has suitable conditions, ideal site selection and is cost ...
Read more >4 Seeds - Locations - Space Apps Challenge | 2021
This solution doesn't just benefit space travel to Mars and beyond, but also the future of our agriculture. Making compact designs while also...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m closing this since, when a solution is missing, challenge n automatically uses challenge n + 1’s seed as it’s solution.
@ojeytonwilliams, using the
meta.json
file to query the next file for the solution section sounds like a good idea. Even when we start to support multiple files/directories, we’ll still essentially be testing one file at a time.