Loading lesson…
Level 1 · Apprentice0 XP
Shape the file so the eye finds things fast. Then let a tool keep it that way.
Step 1 / 5
ProblemThe public function is at line 400. Its helper is at line 20. Variables are declared 80 lines before they are used. Half the review comments are about tabs and spaces.
← → step
Before this: Comments and error handling
🛠️ 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.Add a formatter and a linter to a project (ktlint or Spotless for Kotlin/Java, Prettier and ESLint for TypeScript). Make CI fail on a violation. Reformat the whole project in one separate commit.