My Account Log in

1 option

Java design patterns : a hands-on experience with real-world examples / Vaskaran Sarcar.

O'Reilly Online Learning: Academic/Public Library Edition Available online

View online
Format:
Book
Author/Creator:
Sarcar, Vaskaran, author.
Language:
English
Subjects (All):
Java (Computer program language).
Software patterns.
Physical Description:
1 online resource (678 pages)
Edition:
Third edition.
Place of Publication:
Berkeley, California : Apress, [2022]
System Details:
Mode of access: World Wide Web.
Summary:
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.
Contents:
Intro
Table of Contents
About the Author
About the Technical Reviewers
Acknowledgments
Introduction
Part I: Foundation
Chapter 1: Understanding SOLID Principles
Single Responsibility Principle
Initial Program
Demonstration 1
Output
Analysis
Better Program
Demonstration 2
Open/Closed Principle
Demonstration 3
Demonstration 4
Liskov Substitution Principle
Demonstration 5
Demonstration 6
Interface Segregation Principle
Demonstration 7
Demonstration 8
Dependency Inversion Principle
Demonstration 9
Demonstration 10
Summary
Chapter 2: Simple Factory Pattern
Definition
Concept
Real-Life Example
Computer World Example
Implementation
Class Diagram
Package Explorer View
Demonstration
Q&amp
A Session
Final Comment
Part II: The Gang of Four (GoF) Design Patterns
Chapter 3: Factory Method Pattern
GoF Definition
Modified Implementation
Chapter 4: Abstract Factory Pattern
The Client Code Variations
Chapter 5: Prototype Pattern
GoF Definition.
Concept
Further Improvements
Shallow Copy vs. Deep Copy
Output From Shallow Copy Implementation
Output From Deep Copy Implementation
A Session Continued
Chapter 6: Builder Pattern
Alternative Implementation
Chapter 7: Singleton Pattern
Alternative Implementations
Demonstration 2: Eager Initialization
Demonstration 3: Bill Pugh's Solution
Demonstration 4: Enum Singleton
Chapter 8: Proxy Pattern
Chapter 9: Decorator Pattern
Using Subclassing
Using Object Composition
Chapter 10: Adapter Pattern
Real-Life Example.
Computer World Example
Types of Adapters
Object Adapters
Class Adapters
Chapter 11: Facade Pattern
Real-World Example
Chapter 12: Flyweight Pattern
Chapter 13: Composite Pattern
Chapter 14: Bridge Pattern
Additional Implementation
Chapter 15: Template Method Pattern
Chapter 16: Observer Pattern
Chapter 17: Chain of Responsibility Pattern
Package Explorer View.
Demonstration
Chapter 18: Iterator Pattern
Additional Comments
Chapter 19: Command Pattern
Chapter 20: Memento Pattern
Chapter 21: Strategy Pattern
Chapter 22: State Pattern
Chapter 23: Mediator Pattern
Chapter 24: Visitor Pattern
Class Diagram.
Package Explorer View
Using Visitor Pattern and Composite Pattern Together
Step 1
Step 2
Step 3
Step 4
Step 5
Chapter 25: Interpreter Pattern
Part III: Additional Design Patterns
Chapter 26: Null Object Pattern
A Faulty Program
An Unwanted Input
The Potential Fix
Chapter 27: MVC Pattern
Key Points to Remember
Variation 1
Variation 2
Variation 3
Contents in Model Folder
// Employee.java
// Model.java
// EmployeeModel.java
Contents in View Folder
// View.java
// ConsoleView.java
Contents in Controller Folder
// Controller.java
// EmployeeController.java
Client Code
// Client.java
Modified Output
Part IV: The Final Talks on Design Patterns
Chapter 28: Criticisms of Design Patterns
Chapter 29: Anti-Patterns
Overview
Brief History of Anti-Patterns
Examples of Anti-Patterns
Types of Anti-Patterns
Chapter 30: FAQ
Appendix A: A Brief Overview of GoF Design Patterns
Appendix B: The Road Ahead.
A Personal Appeal to You.
Notes:
Includes index.
Includes bibliographical references and index.
Description based on print version record.
ISBN:
9781484279717
1484279719
OCLC:
1319856579

The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.

Find

Home Release notes

My Account

Shelf Request an item Bookmarks Fines and fees Settings

Guides

Using the Find catalog Using Articles+ Using your account