Java Design Patterns: A Hands-On Experience with Real-World Examples

This document was uploaded by one of our users. The uploader already confirmed that they had the permission to publish it. If you are author/publisher or own the copyright of this documents, please report to us by using this DMCA report form.

Simply click on the Download Book button.

Yes, Book downloads on Ebookily are 100% Free.

Sometimes the book is free on Amazon As well, so go ahead and hit "Search on Amazon"

Get hands-on experience implementing 26 of the most common design patterns using Java and Eclipse. In addition to Gang of Four (GoF) design patterns, you will also learn about alternative design patterns, and understand the criticisms of design patterns with an overview of anti-patterns. For each pattern you will see at least one real-world scenario, a computer-world example, and a complete implementation including output.
This book has three parts. The first part covers 23 Gang of Four (GoF) design patterns. The second part includes three alternative design patterns. The third part presents criticisms of design patterns with an overview of anti-patterns. You will work through easy-to-follow examples to understand the concepts in depth and you will have a collection of programs to port over to your own projects.
A Q&A session is included in each chapter and covers the pros and cons of each pattern. The last chapter presents FAQs about the design patterns. The step-by-step approach of the book helps you apply your skills to learn other patterns on your own, and to be familiar with the latest version of Java and Eclipse.

What You'll Learn
• Work with each of the design patterns
• Implement design patterns in real-world applications
• Choose from alternative design patterns by comparing their pros and cons
• Use the Eclipse IDE to write code and generate output
• Read the in-depth Q&A session in each chapter with pros and cons for each design pattern

Who This Book Is For
Software developers, architects, and programmers

Author(s): Vaskaran Sarcar
Edition: 2
Publisher: Apress
Year: 2019 [2018]

Language: English
Pages: 502
City: New York
Tags: Programming;Design Patterns;Patterns;Java

Front Matter ....Pages i-xxxiii
Front Matter ....Pages 1-1
Singleton Pattern (Vaskaran Sarcar)....Pages 3-17
Prototype Pattern (Vaskaran Sarcar)....Pages 19-31
Builder Pattern (Vaskaran Sarcar)....Pages 33-54
Factory Method Pattern (Vaskaran Sarcar)....Pages 55-66
Abstract Factory Pattern (Vaskaran Sarcar)....Pages 67-85
Proxy Pattern (Vaskaran Sarcar)....Pages 87-102
Decorator Pattern (Vaskaran Sarcar)....Pages 103-116
Adapter Pattern (Vaskaran Sarcar)....Pages 117-134
Facade Pattern (Vaskaran Sarcar)....Pages 135-146
Flyweight Pattern (Vaskaran Sarcar)....Pages 147-163
Composite Pattern (Vaskaran Sarcar)....Pages 165-178
Bridge Pattern (Vaskaran Sarcar)....Pages 179-191
Visitor Pattern (Vaskaran Sarcar)....Pages 193-215
Observer Pattern (Vaskaran Sarcar)....Pages 217-231
Strategy (Policy) Pattern (Vaskaran Sarcar)....Pages 233-249
Template Method Pattern (Vaskaran Sarcar)....Pages 251-261
Command Pattern (Vaskaran Sarcar)....Pages 263-283
Iterator Pattern (Vaskaran Sarcar)....Pages 285-302
Memento Pattern (Vaskaran Sarcar)....Pages 303-327
State Pattern (Vaskaran Sarcar)....Pages 329-352
Mediator Pattern (Vaskaran Sarcar)....Pages 353-376
Chain-of-Responsibility Pattern (Vaskaran Sarcar)....Pages 377-387
Interpreter Pattern (Vaskaran Sarcar)....Pages 389-407
Front Matter ....Pages 409-409
Simple Factory Pattern (Vaskaran Sarcar)....Pages 411-420
Null Object Pattern (Vaskaran Sarcar)....Pages 421-436
MVC Pattern (Vaskaran Sarcar)....Pages 437-457
Front Matter ....Pages 459-459
Criticisms of Design Patterns (Vaskaran Sarcar)....Pages 461-466
AntiPatterns: Avoid the Common Mistakes (Vaskaran Sarcar)....Pages 467-474
FAQs (Vaskaran Sarcar)....Pages 475-480
Back Matter ....Pages 481-500