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.
12 articles with this tag
Master the Visitor Pattern in Java. Learn how to add new operations to object structures using double dispatch.
Master the Observer Pattern in Java. Learn how to implement event-driven architectures and decouple data sources from listeners.
Master the Mediator Pattern in Java. Learn how to reduce coupling by having objects communicate through a mediator instead of directly.
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 Decorator Pattern in Java. Learn how to add features to objects dynamically without inheritance explosions. The ultimate 'Wrapper' pattern.
Master the Bridge Pattern in Java. Learn how to avoid class explosion by separating abstraction and implementation hierarchies.
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 Factory Method Pattern in Java. Learn how to loosen coupling in your code by letting subclasses decide which objects to instantiate.
Learn when and why to use final classes in Java. Understand the design principle of prohibiting inheritance for better code safety.
Deep dive into the Singleton design pattern in Java. Learn different implementation approaches including eager initialization and lazy loading.