Patterns
If you want to achieve success in programming – learn patterns!
Contents
- 1. Generative patterns
-
- 1.1. The Abstract Factory pattern. Solving the problem of computer components
- 1.2. Builder
- 1.3. Factory Method. Implementation of the structure in C++
- 1.4. Prototype. Implementation of structure in C++
- 1.5. Singleton
- 1.5.1. Singleton pattern. Overview. Features of use. Implementation in C++
- 1.5.2. Using the Singleton pattern for classes that form an inheritance hierarchy. Implementation in C++, Java, C#
- 1.5.3. The Singleton pattern. Implementation in Java
- 1.5.4. The Singleton pattern. Features of implementation in C#
- 1.6. Features of Generative patterns. Comparison of Abstract Factory, Factory Method and Prototype patterns
-
- 2. Structural patterns
- 2.1. Adapter
- 2.1.1. Pattern Adapter. Review and research. Examples of implementation in C++
- 2.1.2. Java. Examples of implementation of pattern Adapter
- 2.1.3. C#. Examples of implementation of the Adapter pattern in C#
- 2.1.4. Solving a problem using the Adapter pattern in Java and C#. Laboratory work. Adaptation of three methods
- 2.2. Bridge pattern. Implementation of structure in C++
- 2.3. Composite pattern. Implementation of structure in C++
- 2.5. Facade pattern. Implementation of structure in C++
- 2.1. Adapter
- 3. Behavior patterns
- 3.1. Behavior patterns. Overview
- 3.2. Chain of Responsibility
- 3.3. Pattern Command
- 3.5. Iterator (Cursor)
- 3.5.1. General information. Methods of implementation. Structural scheme. Example on C++
- 3.5.2. The Iterator pattern. Features of implementation in C++ for polymorphic container and polymorphic iterator
- 3.5.3. External and internal iterator. Implementation in C++
- 3.5.4. The Iterator pattern. Implementation in C#
- 3.5.5. The Iterator pattern. Java implementation with support for polymorphic container and polymorphic iterator
- 3.8. State pattern. Structure. Implementation in C++
- 3.10. The Template Method pattern. Implementation in C++