Design Patterns for
Modern Engineering
High-performance, production-ready implementations of Agentic and Classic patterns. TypeScript, Python, C++, C# — verified and ready to ship.
Featured Patterns
6 verified patterns across 5 categories
Evaluator-Optimizer Agent
An iterative refinement loop where an 'Evaluator' provides granular feedback on an 'Optimizer’s' output until quality thresholds are met.
ReAct Agent
Interleaves chain-of-thought Reasoning with Action execution, enabling LLMs to dynamically plan, act, and observe in a loop.
Singleton
Ensures a class has only one instance and provides a global point of access to it.
Factory Method
Defines an interface for creating an object but lets subclasses decide which class to instantiate. Defers instantiation to subclasses.
Abstract Factory
Provides an interface for creating families of related objects without specifying their concrete classes.
Builder
Separates the construction of a complex object from its representation, allowing the same construction process to produce different results.
Latest Articles
Computer science explained simply
You've Already Used Design Patterns — You Just Didn't Know It
Design Patterns in the Real World: Examples from Popular Frameworks
You've been using design patterns every day without realizing it. Take a 'Pattern Safari' through React, Express, Django, Spring, Angular, and Redux to discover the GoF patterns hiding in plain sight inside the frameworks you already know.
Refactoring to Design Patterns: Recognizing When and How to Apply Them
Learn to spot code smells that signal when a design pattern will genuinely help — and when a simpler fix is the better call. A practical smell-to-pattern diagnostic guide with before-and-after walkthroughs.
SOLID Principles and Design Patterns: How They Work Together
Think of SOLID principles as the doctor's checklist and design patterns as the prescriptions. Learn the diagnostic link between the five SOLID principles and the GoF patterns that fix their violations — with a running codebase example that starts broken and progressively heals.
TypeScript vs Python: How Language Features Shape Design Pattern Implementations
Design patterns are like recipes — but the kitchen you cook in changes which tools you reach for. See how the same GoF patterns look radically different when Python's dynamic powers meet TypeScript's static precision.
When to Use Design Patterns: A Practical Decision Guide
Design patterns fail when you reach for them at the wrong moment. Learn a diagnostic approach to pattern selection — start from the pain you feel in your code, not from the pattern catalog. Includes a decision flowchart, a 'Do You Actually Need a Pattern?' checklist, and before/after pseudo code for the 10 most common patterns.