Loading lesson…
Level 1 · Apprentice0 XP
Organise by feature from request to database, and keep each slice independent.
Step 1 / 5
ProblemAdding a field to 'cancel order' touches the controller, DTO, service, mapper, repository, entity and test folders. Each layer holds bits of every feature.
← → step
Before this: Hexagonal, onion and clean compared
🛠️ 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.Refactor one layered feature into a vertical slice folder with endpoint, handler, request and a single slice test. Count files touched for a typical change before and after.