After this lesson you will
- Verify that :domain is pure with the build file and git grep
- Use empty(), require and classifying errors once at the boundary
- Recognize when not to add a layer, and weigh trade-offs like error messages in the domain
Duration25 min
DifficultyIntermediate
Best Practices And Anti-Patterns
Best Practices And Anti-Patterns in the Mobile Action Pro course.
- 01Lesson Goal
- 02Part 1: A Truly Pure Domain, And Provably So
- 03Part 2: Non-Null Models With empty()
- 04Part 3: Invariants With require()
- 05Part 4: Classify Errors Once, At The Boundary
- 06Part 5: An Explicit Composition Root
- 07Part 6: Don't Add Layers You Don't Need
- 08Practice Exercise
- 09Code Reading Path
- 10Signs To Avoid
- 11References
- 12Key Points
Topics: kotlin, 06-clean-architecture
12 sections left in this lessonUnlock all of Mobile Action ProLesson Goal, Part 1: A Truly Pure Domain, And Provably So, … — plus 114 lessons in this course, source code and checklists.
Unlock Mobile Action ProOne-time payment — lifetime access — 7-day money-back. Already purchased? Sign in