You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I originally submitted this idea as exercism/fsharp#164, but it really belongs here.
There are alreadythreeexercises 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:
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'd need a helper function of some kind to turn "Polar Bear" into "a polar bear", but "Elephant" into "an elephant".
The Python 3 implementation of that Code Golf puzzle includes a non-golfed version, which could easily be turned into sample code in most languages. So it shouldn't take too much work to implement this exercise if someone wants to take it on.
It's also worth having a discussion on whether three (or four!) text-based exercises are too many, and whether they should be merged or any of them should be dropped (including this idea, of course). But I'll open a separate issue for that discussion.
The text was updated successfully, but these errors were encountered:
I originally submitted this idea as exercism/fsharp#164, but it really belongs here.
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'd need a helper function of some kind to turn "Polar Bear" into "a polar bear", but "Elephant" into "an elephant".
The Python 3 implementation of that Code Golf puzzle includes a non-golfed version, which could easily be turned into sample code in most languages. So it shouldn't take too much work to implement this exercise if someone wants to take it on.
It's also worth having a discussion on whether three (or four!) text-based exercises are too many, and whether they should be merged or any of them should be dropped (including this idea, of course). But I'll open a separate issue for that discussion.
The text was updated successfully, but these errors were encountered: