Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add prerequisites for practice exercises #1942

Merged
merged 5 commits into from
Oct 29, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,13 @@
"name": "Perfect Numbers",
"uuid": "c6691fd2-e10d-47df-acbf-3adeac5a2f89",
"practices": [],
"prerequisites": [],
"prerequisites": [
"numbers",
"arrays",
"conditionals",
"errors",
"for-loops"
],
Comment on lines +706 to +712
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"difficulty": 3,
"topics": ["arrays", "conditionals", "loops", "integers", "math"]
},
Expand All @@ -721,7 +727,7 @@
"name": "Luhn",
"uuid": "28872cc9-f1ef-487f-9a79-6bf7983148bf",
"practices": [],
"prerequisites": [],
"prerequisites": ["numbers", "conditionals", "array-transformations"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is my solution : https://exercism.org/tracks/javascript/exercises/luhn/solutions/TomPradat

I haven't added "array-analysis" despite the fact that I personally use Array#some as it does not seem necessary (as we can see in other community solutions)

"difficulty": 4,
"topics": ["conditionals", "loops", "integers", "strings"]
},
Expand All @@ -739,7 +745,7 @@
"name": "Grains",
"uuid": "d003975a-9045-4f03-9ad9-c15db584dc13",
"practices": [],
"prerequisites": [],
"prerequisites": ["conditionals", "errors", "numbers", "math"],
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is my solution : https://exercism.org/tracks/javascript/exercises/grains/solutions/TomPradat

I'm not sure about errors, I added it because you need to throw errors in the exercise. Though that's the case of many practice exercises, and the errors concept is very advanced in the hierarchy, what do you think ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the right choice because you must understand how errors work. We can re-evaluate later.

"difficulty": 5,
"topics": ["loops", "integers"]
},
Expand Down