Loading lesson…
Level 1 · Apprentice0 XP
Fewer, clearer inputs make a function easy to call and hard to call wrong.
Step 1 / 5
ProblemcreateUser("Sara", "sara@x.com", true, false, 3, null). What does true mean? What is 3? Every call site is a puzzle, and swapping two values compiles fine.
← → step
Before this: Names and small functions
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Find a function with a boolean parameter. Split it into two well-named functions and update the callers. Then find one with four or more parameters and introduce a parameter object.