-
-
Notifications
You must be signed in to change notification settings - Fork 618
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 concept exercise conditionals #1037
Add concept exercise conditionals #1037
Conversation
Exciting stuff! Once you undraft this and fix the conflicts and still run into prettier, you can add a comment
The same goes for integrity issues. If the precheck fails and complains that the files are not in sync, you can use
|
Okaaaaay. It wasn't supposed to trigger it, but 🤷🏽 . Luckily everything was already up to date, so nothing happened 🌠 |
Open questions
NoteI removed the details about loose equality from the comparison page because as discussed in Slack, a student does not need to know them to write good JS code. |
I moved it so you could decide :) I'll respond to the rest later 🤗 |
I would even suggest that it's okay if we don't explicitly teach the ternary operator. Its use is often not necessarily more idiomatic, but a stylistic choice. I feel very (positively) strongly about using it, but I know that various style guides discourage or even ban it altogether. Does that mean we should skip it? No, but it does mean its not a worthy concept to put our time in right now ;). I think it's a good idea to leave it out of this exercise and revisit it some time in the future when we've covered the other bases.
Eh. Yes. I agree with you, but we have made the choice that the "basics of x" / "x 101" / "introduction to x" is named "x", and not "x-something". I think this is a great exercise to teach people how to do the majority of conditionals, and thus I think conditionals is aptly named. In fact, any exercise that potentially expects a ternary or switch can probably be solved by someone who has only done this exercise. My vote would be
I like this. Let's keep it.
I often would write early returns. We can definitely have the Analyzer check for lack of
If you'd like something like this (you can suggest the copy), can you add it to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few typos, and one change request: the tests themselves. Otherwise this is perfect.
Feel free to apply which you like, and then self squash merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some little suggestion(s).
@SleeplessByte
I fixed all the things mentioned in the review but I don't have rights to merge myself. |
🎆🔥🚒🧯 |
Addresses #989