Memento Pattern — FixIt Pro Series #17
Saving and restoring job card state without exposing internals. Learn how the Memento pattern enables undo, snapshots, and state rollback, in C# and TypeScript.
Writing
Professional insights on software architecture, DevOps, and full-stack development, drawn from real systems built for enterprise clients across banking, compliance, and public sector.
Saving and restoring job card state without exposing internals. Learn how the Memento pattern enables undo, snapshots, and state rollback, in C# and TypeScript.
Homeowners, Handymen, and the Scheduler all need to talk to each other, but none of them should know about each other directly. Learn how the Mediator pattern centralises communication through a DispatchCenter in C# and TypeScript.
Traversing a handyman's job card queue without exposing the internal list structure. Learn the Iterator pattern and why you've been using it every time you write a for...of loop, in C# and TypeScript.
Assign, Pause, Cancel, Complete; encapsulating job actions as undoable command objects. Queue them, replay them, undo them. Learn the Command pattern in C# and TypeScript.
A job approval chain: Handyman → Supervisor → Manager, based on cost threshold. Learn how the Chain of Responsibility pattern passes requests along a chain until one handler deals with it, in C# and TypeScript.
A handyman shouldn't access electrical job cards without certification. Learn how the Proxy pattern adds access control, logging, and lazy loading without changing the original class in C# and TypeScript.
FixIt Pro manages thousands of job cards. Learn how the Flyweight pattern shares common metadata across instances to drastically reduce memory usage in C# and TypeScript.
Scheduling, assigning, notifying, and billing, FixIt Pro's dispatch process involves five subsystems. Learn how the Facade pattern hides that complexity behind a single clean interface, in C# and TypeScript.
Adding urgency, insurance, and warranty to a job card at runtime, without modifying the original class or creating a subclass for every combination. Learn the Decorator pattern in C# and TypeScript.