Skip to content

Idea for new exercise #164

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

Closed
rmunn opened this issue Jul 21, 2016 · 2 comments
Closed

Idea for new exercise #164

rmunn opened this issue Jul 21, 2016 · 2 comments

Comments

@rmunn
Copy link
Contributor

rmunn commented Jul 21, 2016

There are already three exercises with the basic idea of "Here is some text with a repeating pattern; write a function to print out that text". So a fourth one may not be useful. However, if a fourth such exercise would be useful, this Code Golf challenge could be turned into such an exercise:

http://codegolf.stackexchange.com/questions/85746/polar-bear-polar-bear-what-do-you-hear

The one thing this exercise would contain that the others wouldn't is that the "a / an" distinction in English would be relevant, and you can't easily "cheat" by baking it into the stored data. So you need a helper function to turn "Polar Bear" into "a polar bear", but "Elephant" into "an elephant".

There's a Python answer to that Code Golf challenge where the original, non-golfed version is presented, so converting that to an F# exercise should be quite quick. I could also see this as an exercise for many other languages; is there a "master" exercism repo where new exercises are suggested? Or do different language tracks just copy exercises from each other?

@ErikSchierboom
Copy link
Member

There is indeed a repository that contains the complete list of exercises that can be implemented: https://github.com/exercism/x-common. I

There is some discussion in the Haskell track on merging similar exercises: exercism/haskell#192 (comment). One of the outcomes of that discussion was that the different number conversion exercises (binary, trinary, octal and hexadecimal) will be merged in a single exercise that involves converting numbers between different bases.

That discussion also mentioned the text generating exercises, which are very similar and might also be combined into a single exercise.

@ErikSchierboom
Copy link
Member

@rmunn I'll close this issue now, as the x-common repository is the right place.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants