Loading lesson…
Level 1 · Apprentice0 XP
How Gradle scripts, Ktor routes and HTML builders read like a language.
Step 1 / 5
ProblemBuilding an email requires email.setSubject(...), body.addParagraph(...), body.addLink(...), with temporary variables. The structure of the email is hidden.
← → step
Before this: Delegation with by
🛠️ 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.Build a small DSL for defining HTTP routes in tests: route("/orders") { get { ... }; post { ... } }. Add @DslMarker and check that inner blocks cannot call outer methods by accident.