Hands-On Design Patterns with Delphi : Build Applications Using Idiomatic, Extensible, and Concurrent Design Patterns in Delphi.
Section 5: Concurrency Patterns; Chapter 8: Locking patterns; Delphi idioms - parallel programming; Lock; Custom locking mechanism; Lock striping; Single bit locks; Delphi idioms - bitwise operators; Double-checked locking; Optimistic locking; Readers-writer lock; Comparing reader-writer implementat...
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing Ltd,
2019.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- 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