Closed sanderploegsma closed 11 months ago
Also I would propose to rename the concept to if-statements
or if-else-statements
, since "Conditionals If" just reads awkward on the syllabus: https://exercism.org/tracks/java/concepts/conditionals-if
This can help make your code more readable, maintainable, and less prone to bugs.
The
conditionals-if
concept currently introduces too many concepts at once: if/else statements and switch statements. The latter is already covered in theswitch-statement
concept (which is unlocked afterconditionals-if
) and should probably not be introduced earlier.The corresponding concept exercise
blackjack
has the same problem: it is designed to have students use aswitch
statement for the first task. Although it's possible for students to solve it without aswitch
statement it quickly becomes tedious to write 14if
statements in one method. I can imagine it would turn students off, to be honest.We should therefore revise the concept and corresponding concept exercise to focus only on introducing the
if
/else
statements. Especially the exercise needs a big overhaul (it did anyway, see #2311).