-
-
Notifications
You must be signed in to change notification settings - Fork 654
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
[Sept Sprint] New exercise teaching type-conversion
#1645
Comments
See https://github.com/exercism/go/blob/ed630183cccef21791ca21da0ecaafc5b52f9118/exercises/concept/cars-assemble/.docs/introduction.md#type-conversion for the original type conversion introduction text. |
This is blocked on #1638. Until then we cannot add an exercise that requires the |
I would be happy to take this one, but I am having trouble coming up with a good story for this one. I looked at the canonical stories list (https://exercism.org/docs/building/tracks/stories), but nothing jumped out at me. The best I could come up with is you have some kind of sorting room which has to handle anything that is put in there. Some things have predefined results (eg. "This is a number" or "This is a string"), but a few things need to be unpacked and have their contents inspected (eg. "This is a box containing a number 4"). Anything unexpected will be marked "Return to sender". If no one has a better story I can get rolling with that. I'll probably start with a PR just to fix the actual concept documentation for |
type-conversion
I think that story could work fine. Maybe you could make it Santa themed and have the boxes be presents or something like that? |
I was already pretty far into the implementation by the time I saw your comment there Erik so I am probably just moving forward with the sorting room idea rather than trying to refactor it to be about Santa. For the record, here is what the intro looks like so far: Jen is working in the sorting room in a large factory. The sorting room needs to process anything that comes into it by categorizing it with a label. She needs a program to help her with the sorting. Most primitive values should get straight-forward labels. For numbers, she wants strings saying There are a few Anything unexpected should say Seems to work well enough and gives me enough space to get the ideas across. I am sure there will be more discussion over in the pull request itself. |
tbh I think a neutral theme is better than something related to a christian holiday that does not exist in some cultures |
True. The sorting room is perfectly fine. |
Woot, got that one out the door! |
Sweet! |
This is part of our September Spring to get the Go Track in shape. Please read the Overview issue for more details. This exercise is claimed by @jmrunkle.
Before building this exercise (or exercises), please read up on the documentation.
We need an exercise for the
type-casting
andtype-assertions
concepts. Since there is sometimes confusion around those two things, it makes sense to teach both in the same exercise to demonstrate how they are related.If it makes sense, this exercise could also teach about the
type-switch
concept.The exercise should teach:
This exercise will have at least
interfaces
as a prerequisite.Remaining work:
sorting-room
: fill outtype-conversion
concept documentation #1702sorting-room
: fill outtype-assertion
concept documentation #1703sorting-room
: teach about type-switch syntax #1704The text was updated successfully, but these errors were encountered: