Alusmustrid on üldised põhimõtted ja neid on üldiselt vaja teistes mustrites. Neil on kolm tüüpi:
- Liides
- Konteiner
- Delegation
- Model View Controller
- Dependency injection
- Fassaad
- Teenetemärkija
- Proksi
- Andmejuurdepääsu objekt
- Teisalda objekt
- Tehase meetod
- Abstract Factory
- Objektiplokk
- Singleton
- Iterator
- Vaatleja
- Sündmuse kuulaja
- Strateegia

Container pattern - queues, sets, lists, vectors and caches
Delegation Pattern

Dependency injection
There are 3 forms of dependency injection: setter-, constructor- and interface-based injection.
Use the dependency injection pattern when:
the coupling between components needs to be reduced
you are expecting to run controlled unit tests. With dependency injection, testing can begin very early in the development cycle
you want to save time in that you don't have to write boilerplate factory creation code over and over again
usage of the facade pattern in UML
http://best-practice-software-engineering.ifs.tuwien.ac.at/index.html
Kommentaare ei ole:
Postita kommentaar