patterns
patterns copied to clipboard
Good practices to create code in Java, open to other languages. :zap:
Design patterns
The following patterns are described, for each pattern is shown the model and example with code; Each example has source code, functional model, structural model and the behavioral model is attached in inside the binary file of the model due the size of the model. You can click on the link to go to the model.
Projects Created using Design patterns
Design Patterns
- Basic patterns
- Abstract
- Interface
- Creational patterns (See general description)
- Abstract Factory
- Factory Method
- Singleton
- Object Pool
- Prototype
- Builder
- Collectional patterns (See general description)
- Composite
- Iterator
- FlyWeight
- Visitor
- Structural patterns (See general description)
- Adapter
- Bridge
- Chain of Responsibility
- Proxy
- Counting Proxy
- Virtual Proxy
- Decorator
- Facade
- Behavioural Patterns (See general description)
- Command
- Interpreter
- Mediator
- Memento
- Observer
- State
- Strategy
- Template
- Concurrency Patterns (See general description)
- Consistent Lock Order
- Critical Section
- Guarded Suspension
- Read-Write Lock
Notations
| Structure / Element | Code | Notation |
|---|---|---|
| Class |
|
|
| Interface |
|
|
| Abstract Class |
|
|
| Static Method |
|
|
| Condition If |
|
|
| Critical section |
|
|
| Try catch |
|
|
| Threads |
|
|
Acknowledgments
Partha Kuchana
Many of the examples shown are taken from the book of Partha Kuchana
Henry Diosa
Teacher at Universidad Distrital has contributed with his teachings and experience. linkedin