Topic / Design Patterns
Design Patterns
Understand the problem a pattern solves, see how its parts collaborate, and decide when the added structure is useful.
5 articles available
9 min read
Strategy: separate pickup ordering from session rules
Compare oldest-first and deadline-first preparation in KitDesk, then trace the context-policy contract and its fairness trade-offs.
9 min read
Adapter: translate a cabinet SDK without leaking its contract
Connect KitDesk's reservation source to an incompatible cabinet SDK with explicit phase, timestamp, identity and error rules.
9 min read
Factory Method: let export workflows create their encoders
Export KitDesk's selected pickups as text or CSV through concrete creator subclasses, with explicit snapshot, artifact and product-lifetime contracts.
9 min read
Observer: update a pickup board with explicit notification rules
Let KitDesk's ready panel and badge react independently, then examine listener failures, snapshot delivery and cleanup.
9 min read
Decorator: compose manifest options without a subclass explosion
Wrap KitDesk exports with independent annotation decorators, inspect return order, and compare the object graph with a simple options function.
Learning paths in this topic
Learning path · 3 proposed modules
System design in practice
A proposed route from tracing one request to reasoning about boundaries, failures, and change. Start with a system you can explain.
2 articles available
Learning path · 1 proposed modules
Design patterns in the KitDesk pickup workflow
Five class and component collaborations in one local application, taught through problems, forces, contracts and trade-offs.
5 articles available