Prerequisite: Finding a home for state, plus Python conditionals and exceptions. Each Python block runs independently.
A class can collect data, but that alone does not guarantee useful data. We will define a condition that should remain true, put checks at the points where state enters or changes, and examine where Python’s conventions and copying have limits.
- Describe the condition first
- Make supported changes visible
- Understand the boundary
- Keep a collection from leaking
- When two objects take part
Continue to Designing collaboration.