-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 List.Extra package #48
Comments
What about including the permutation functions in a provided read-only file? |
Alternatively, we could have our own |
Hi @mpizenberg , I didn't know about the maintenance issues, I have never had any issues with the .extra packages, so assumed that they were pretty stable. I feel like it would be good to introduce students to them, I think most elm projects will use at least one of them. Creating an exercism specific package makes sense, although it does seem like some extra work. So maybe providing the permutations function in the Zebra Puzzle exercise is easier? |
what are the thoughts of other @exercism/elm maintainers on these 4 options?
|
Sorry for the slow response :)
That's where my vote goes. When I solved zebra-puzzle, part of the fun was to re-implement the permutation function, and if people don't want to do that, they can always copy/paste the function they want from source.
How will we know which function are required? There might be a clever solution using something else that we will keep someone from finding because we are pushing our way of thinking.
Sounds like a lot of maintaining work :p
Maybe. But again, I've solved all of Elm's exercises and only a couple of times did I wish to have access to these. And when I did, I copy/pasted the 10 lines I needed. |
Maybe we could mention that these packages exist in exercises where it might be relevant, so that students can copy paste from them if they want? And they would also then become aware of the packages, which is a useful part of learning Elm ... |
I fully agree with that. We can append instructions whenever needed. |
A concept exercice dedicated to help students discover relevant packages and resources is a good idea! This combine with relevant info at the exercice level is a good compromise IMO. I personally prefer that over adding the -extra packages to the whitelist |
Ok, so how about we create an issue for that concept exercise and add something to the instructions of the zebra puzzle exercise? And maybe record this decision somewhere. Not sure where, maybe we could start a decisions log, or use architectural decision records, or something like that? |
Yes, I'm also in favor of all this. I remember vaguely trying to add some architectural decisions either in the readme or in some guide to write concept exercise. Might be wrong. But crystalizing some of these decisions in one "track-architecture" document is a good idea |
Ok, I've created the issue for the new concept And the pull request for updating the zebra puzzle and updating the instructions |
Thanks @ceddlyburge ! |
The Zebra Puzzle exercise is commonly solved using permutations of a list, which is something that is already available in List.Extra.
However, this package isn't available to students, as the test runner doesn't support it, which means that they have to create the permutation code themselves, which isn't really part of the exercise, and is a fairly large additional burden.
Usage of List.Extra is quite common in Elm, and it has many other packages that are useful.
We may also want to add some of the other *.Extra packages as part of this issue
The text was updated successfully, but these errors were encountered: