A platform game needs checkpoints. Learn how Memento lets the game snapshot its own private state, why the save slots must never read it, and when snapshots beat commands.
November 27, 202610 minutes
Three classes decide whether a loan is overdue, and they disagree. Learn to spot a Data Class, move behavior to where the data lives, and know when a plain data carrier is fine.
November 26, 20269 minutes
Team and Player reach into each other, and a small change to the roster breaks Player. Learn to spot Inappropriate Intimacy and fix it, and when close classes are fine.
November 26, 20268 minutes
Twelve bikes, thirteen riders, and every field private. Learn what encapsulation really protects: the object's promise, and the decisions likely to change.
November 25, 202610 minutes