Part 1 of 7 · 1 min read
Why this page comes last in Level 0
In this module you will
- Name classes, methods and variables so that the code reads like the requirements.
- Keep methods short and single-purpose.
- Choose between a class, a record, an enum and an interface.
- Decide what to code in full and what to leave as a signature.
- Avoid the Java habits that make answers hard to read.
The method of module 4 gives a design. This page covers how to write it down in Java so that an interviewer can read it quickly. The ideas come from standard books on design patterns, clean code and Java, retold in the track's own words. The code was compiled and run before it was written here. Numbers marked "made up" only show the idea.