Online course · Lesson 8 of 19
§5 Building blocks
27 slides, about 45 minutes. Part of the full course.
This lesson is part of the full course
Here is what it covers:
- Part 6: Building block view
- Building blocks
- Black box vs white box
- The hierarchy
- How to split into blocks
- Walkthrough: responsibilities to blocks
- How many blocks?
- Naming blocks
- Diagram checklist
- Build Level 1: steps
- Doubles-to-Go Level 1
- Block table
- Interfaces
- Example: Order Service API
- When to zoom to Level 2
- Example: Order Service white box
- Contracts
- Why contracts matter now
- Write a contract: steps
- Contract: PlaceOrder
- Contract: HandleWebhook
- Vote: which is an invariant?
- Invariants become tests
- §5 common mistakes
- Exercise 5a
- Exercise 5b
- Peer check: §5
Paste your access code to unlock it, or read how to get one.
Transcript and notes
Pause and recall
Close your eyes or look away, and say what you remember before you reveal each answer. Trying to remember is what makes it stick.