The Visitor Design Pattern: Add Operations Without Modifying Classes
Master the Visitor Pattern in Java. Learn how to add new operations to object structures using double dispatch.
25 articles with this tag
Master the Visitor Pattern in Java. Learn how to add new operations to object structures using double dispatch.
Master microservices architecture patterns. Learn service discovery, circuit breakers, saga pattern, API gateway, and build resilient distributed systems.
Master the Template Method Pattern in Java. Learn how to define the skeleton of an algorithm in a superclass but let subclasses override specific steps.
Master the Strategy Pattern in Java. Learn how to replace complex if-else logic with interchangeable algorithms and follow the Open/Closed Principle.
Master the State Pattern in Java. Learn how to let an object alter its behavior when its internal state changes, replacing massive switch statements.
Master the Observer Pattern in Java. Learn how to implement event-driven architectures and decouple data sources from listeners.
Master the Memento Pattern in Java. Learn how to capture and restore an object's internal state for undo/redo functionality.
Master the Mediator Pattern in Java. Learn how to reduce coupling by having objects communicate through a mediator instead of directly.
Master the Iterator Pattern in Java. Learn how to access elements of a collection sequentially without exposing its underlying representation.
Master the Interpreter Pattern in Java. Learn how to define grammar and evaluate expressions for custom languages and DSLs.
Master the Command Pattern in Java. Learn how to encapsulate requests as objects to enable Undo/Redo, queuing, and macro commands.
Master the Chain of Responsibility Pattern in Java. Learn how to pass requests along a chain of handlers until one of them handles it.
Master the Proxy Pattern in Java. Learn how to control access to objects, implement lazy loading, and add security layers.
Master the Flyweight Pattern in Java. Learn how to support thousands of objects efficiently by sharing common state.
Master the Facade Pattern in Java. Learn how to hide system complexity behind a simple interface and making your libraries easier to use.
Master the Decorator Pattern in Java. Learn how to add features to objects dynamically without inheritance explosions. The ultimate 'Wrapper' pattern.
Master the Composite Pattern in Java. Learn how to treat individual objects and compositions uniformly using recursive tree structures.
Master the Bridge Pattern in Java. Learn how to avoid class explosion by separating abstraction and implementation hierarchies.
Master the Adapter Design Pattern in Java. Learn how to integrate legacy code and 3rd-party libraries using the 'Travel Adapter' concept.
Master the Prototype Pattern in Java. Learn how to clone objects efficiently instead of creating expensive instances from scratch.
Master the Builder Pattern in Java. Learn how to construct complex objects step-by-step, avoid telescoping constructors, and write readable code.
Master the Abstract Factory Pattern in Java. Learn how to create families of related objects without specifying their concrete classes.
Master the Factory Method Pattern in Java. Learn how to loosen coupling in your code by letting subclasses decide which objects to instantiate.
Advanced singleton implementations including Double-Checked Locking with volatile and the Bill Pugh pattern using static inner classes.
Deep dive into the Singleton design pattern in Java. Learn different implementation approaches including eager initialization and lazy loading.