Book description
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.
The book 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
Table of contents
- Cover
- Front Matter
- Part I. Foundation
-
Part II. The Gang of Four (GoF) Design Patterns
- 3. Factory Method Pattern
- 4. Abstract Factory Pattern
- 5. Prototype Pattern
- 6. Builder Pattern
- 7. Singleton Pattern
- 8. Proxy Pattern
- 9. Decorator Pattern
- 10. Adapter Pattern
- 11. Facade Pattern
- 12. Flyweight Pattern
- 13. Composite Pattern
- 14. Bridge Pattern
- 15. Template Method Pattern
- 16. Observer Pattern
- 17. Chain of Responsibility Pattern
- 18. Iterator Pattern
- 19. Command Pattern
- 20. Memento Pattern
- 21. Strategy Pattern
- 22. State Pattern
- 23. Mediator Pattern
- 24. Visitor Pattern
- 25. Interpreter Pattern
- Part III. Additional Design Patterns
- Part IV. The Final Talks on Design Patterns
- Back Matter
Product information
- Title: Java Design Patterns: A Hands-On Experience with Real-World Examples
- Author(s):
- Release date: May 2022
- Publisher(s): Apress
- ISBN: 9781484279717
You might also like
book
Java Design Patterns: A Hands-On Experience with Real-World Examples
Get hands-on experience implementing 26 of the most common design patterns using Java and Eclipse. In …
book
Practical Design Patterns for Java Developers
Unravel the power of Java design patterns by learning where to apply them effectively to solve …
video
Design Patterns and SOLID Principles with Java
Write maintainable, extensible, and cloud-ready code in Java, using design patterns and SOLID principles About This …
book
Java Concurrency in Practice
"I was fortunate indeed to have worked with a fantastic team on the design and implementation …