Cover image for Hands-On Design Patterns with Delphi : Build Applications Using Idiomatic, Extensible, and Concurrent Design Patterns in Delphi.
Hands-On Design Patterns with Delphi : Build Applications Using Idiomatic, Extensible, and Concurrent Design Patterns in Delphi.
ISBN:
9781789342437
Title:
Hands-On Design Patterns with Delphi : Build Applications Using Idiomatic, Extensible, and Concurrent Design Patterns in Delphi.
Author:
Gabrijelčič, Primoz.
Personal Author:
Publication Information:
Birmingham : Packt Publishing Ltd, 2019.
Physical Description:
1 online resource (462 pages)
General Note:
Section 6: Miscellaneous Patterns
Contents:
Cover; Title Page; Copyright and Credits; About Packt; Contributors; Table of Contents; Preface; Section 1: Design Pattern Essentials; Chapter 1: Introduction to patterns; Patterns in programming; Patterns are useful; Delphi idioms -- Creating and destroying an object; Gang of Four started it all; Don't inherit -- compose!; Pattern taxonomy; Creational patterns; Structural patterns; Behavioral patterns; Concurrency patterns; Criticism; Anti-patterns; Design principles; SOLID; Don't repeat yourself; KISS and YAGNI; Summary; Section 2: Creational Patterns

Chapter 2: Singleton, Dependency Injection, Lazy Initialization, and Object PoolSingleton; NewInstance; Lateral thinking; Dependency injection; From classes to interfaces; Using a factory method; Wrapping up; Lazy initialization; Using Spring; Object pool; Stock quote connection pool; Summary; Chapter 3: Factory Method, Abstract Factory, Prototype, and Builder; Factory method; Painter; Modernizing the factory method pattern; Abstract factory; Prototype; Cloning records; Cloning objects; Delphi idioms -- Assign and AssignTo; Serialization; Builder; Idioms -- Fluent interfaces; Summary

Section 3: Structural PatternsChapter 4: Composite, Flyweight, Marker Interface, and Bridge; Composite; Child management; Flyweight; String interning; A practical example; Delphi idioms -- comparers and hashers; Marker interface; Delphi idioms -- attributes; Markers and attributes; Bridge; Bridged painting; Summary; Chapter 5: Adapter, Proxy, Decorator, and Facade; Selecting an appropriate structural pattern; Adapter; Wrapping a class; Wrapping an interface; Implementing a queue with a list; Proxy; Delphi idioms -- replacing components in runtime; Smart pointers; Unit testing with mock objects

DecoratorDecorating streams; Delphi idioms -- helpers; Facade; Summary; Section 4: Behavioral Patterns; Chapter 6: Nullable Value, Template Method, Command, and State; Null object; Template method; Calculating the average value; Inversion of control; Command; Command-based editor; Creating commands; Commands; Invoker; Client; Macros; Cloning; State; Unquoting a string; Summary; Chapter 7: Iterator, Visitor, Observer, and Memento; Iterator; Delphi idioms -- iterating with for.in; Implementing custom enumerators; Using an iterator interface; Visitor; Observer; Observing with Spring; Memento
Local Note:
eBooks on EBSCOhost
Format:
Electronic Resources
Publication Date:
2019
Publication Information:
Birmingham : Packt Publishing Ltd, 2019.