Java Design Patterns: A Hands-On Experience with Real-World Examples, Third Edition
- 6h 8m
- Vaskaran Sarcar
- Apress
- 2022
Use the step-by-step approach of this book to learn and implement design patterns in real-world applications. It focuses on classical design patterns with Java 17 and Eclipse (2021-09). In addition to Gang of Four (GoF) design patterns, the book covers popular and alternative design patterns and includes criticisms of design patterns in a chapter on anti-patterns.
The book is divided into four parts. Part one covers the SOLID design principles and the Simple Factory pattern. Part two covers the 23 (GoF) design patterns, including the creational patterns, structural patterns, and behavioral patterns. Part three covers alternative design patterns, including the Null Object pattern, and the model-view-controller (MVC) pattern. Part four covers criticisms of design patterns with a quick overview of anti-patterns. It also includes a chapter on FAQs on design patterns.
Each pattern is explained with real-world examples and the pros and cons of each of the design patterns are discussed. The book concludes with FAQs that can help you prepare for a job interview.
What You Will Learn:
- Know the SOLID design principles in depth
- Implement the 23 design patterns from the GoF
- Apply the Null Object pattern, Simple Factory pattern, and the MVC pattern
- Know the criticism of design patterns
- Understand the anti-patterns
- Verify your understanding through Q&A sessions
- Select an alternative to these patterns by comparing their pros and cons
About the Author
Vaskaran Sarcar obtained his Master of Engineering degree in software engineering from Jadavpur University, Kolkata (India), and an MCA from Vidyasagar University, Midnapore (India). He has more than 12 years of experience in education and the IT industry. He devoted his early years (2005-2007) to teaching at various engineering colleges, and later he joined HP India PPS R&D Hub Bangalore. He worked there until August 2019. At the time of his retirement from HP, he was a Senior Software Engineer and Team Lead at HP. To follow his dream and passion, he is now an independent full-time author. He has written more than 10 books on Java and C# such as Design Patterns in C# (2nd edition), Getting Started with Advanced C#, Interactive C#, Interactive Object-Oriented Programming in Java (2nd edition), and Java Design Patterns (2nd edition).
In this Book
-
Introduction
-
Understanding SOLID Principles
-
Simple Factory Pattern
-
Factory Method Pattern
-
Abstract Factory Pattern
-
Prototype Pattern
-
Builder Pattern
-
Singleton Pattern
-
Proxy Pattern
-
Decorator Pattern
-
Adapter Pattern
-
Facade Pattern
-
Flyweight Pattern
-
Composite Pattern
-
Bridge Pattern
-
Template Method Pattern
-
Observer Pattern
-
Chain of Responsibility Pattern
-
Iterator Pattern
-
Command Pattern
-
Memento Pattern
-
Strategy Pattern
-
State Pattern
-
Mediator Pattern
-
Visitor Pattern
-
Interpreter Pattern
-
Null Object Pattern
-
MVC Pattern
-
Criticisms of Design Patterns
-
Anti-Patterns
-
FAQ