-
-
Notifications
You must be signed in to change notification settings - Fork 542
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
Make up a new exercise equivalent to old hello-world #548
Comments
To rename the former Re falsiness: Falsiness is not specific to JS, it's a concept known to ruby and elixir as well, maybe the interpretation of some values might differ between languages. For ruby and elixir re overly complex conditionals Wait? Six ways? which ones? re guard clauses/statements I'm not sure if this is necessary. For Besides of these 3 items, I'd go for another one that could be valuable for this exercise, the default value for a missing argument of a function if it is an available feature of a language. It should be a track driven idiom through the tracks though, as I've heard idioms are different across languages. e.g.:
|
Yes, absolutely. My main point is that I think that this exercise fills a useful niche. The lessons it makes possible will be different in the various tracks, I was mainly pointing out that there are lessons. |
Agreed. Dealing with optional/null values is an important skill and perfectly suited to its own exercise I think. |
Ok, so how about the following? slug: Template: People, in the next year we need to X. It is what it is. Some examples of X:
We can have any default that we care to, of course. For inspiration, google "catch phrase generator" or "buzzword generator". |
I like it! Tongue-in cheek and all. |
Wait, is this entire issue about "reintermediate bleeding-edge Programs"? (From the buzzword generator, already handy). The proposal for business-buzzwords sounds like a "Mad Libs" type engine. |
@rpottsoh pointed out that we have an open issue #290 that is no longer relevant to the old hello world. It may be relevant here.
I think that it could be a Mad Libs type engine, but I'd like to have it be a very straight-forward replacement to Hello World. If we want to use buzzwords as a mad libs exercise, then we should come up with something else for this one. How about: Title: Two Fer Template: "One for X, one for me." |
Sorry I have to ask, but what's a "mad libs" exercise? |
I like the two-fer idea, straight forward, and flexible simplicity. |
Pick a noun, another noun, a color, a verb, a living thing. But pick those without looking at the story that follows... One day there was a ___ that was ___. It was a ___ and ___ ___. The result can be pretty hilarious/silly/fun. Often a party game with quite a few people... but can be played with kids on long road trips. |
The discussion seems to have wound down on this one. It sounds like |
I've extracted the TODOs from this into new issues. |
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
This is meant to be right after hello-world introducing users to basic programming constructs as well as TDD which will be used in all later exercises. Discussion regarding this is [here](exercism#548). Closes exercism#757.
For those languages where the old hello world wasn't too complex, it would be nice to have an additional exercise that can fill the space between the new hello-world and other simple exercises.
There are a couple things that this exercise can help people discover if they get feedback on it, though one of them depends on the language.
falsiness (maybe JavaScript specific)
We see a lot of
if (input == "")
which means that we can suggest that people look into the concept of falsiness to find simplifications.overly complex conditionals
There are at least six or seven ways that people make their conditionals more complicated than necessary, or make them contain a lot of duplication.
The second point leads nicely up to the Leap problem.
bonus: guard clauses
Sometimes they'll also do
if (x) { return y } else { return z }
, which means that we can talk about minimizing indentation and leaving off the else if theif
is returning.Anyway: I think that it would be useful to have a new exercise that implements a similar thing as the old hello world:
The text was updated successfully, but these errors were encountered: