question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Projects: use next challenge's seed as a solution

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
ojeytonwilliamscommented, Mar 23, 2021

I’m closing this since, when a solution is missing, challenge n automatically uses challenge n + 1’s seed as it’s solution.

0reactions
scissorsneedfoodtoocommented, Oct 9, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found