kolmapäev, 27. september 2017

27.09.17 | 2x Tarkvara arendusprotsess

Muster on määratud kui idee mis on kasutatud praktilises tekstis. Class on reaalse maailma objektide üldistus ja tema omadused. Objekt on classi esindaja. Igal objektil on oma omadused.

Alusmustrid on üldised põhimõtted ja neid on üldiselt vaja teistes mustrites. Neil on kolm tüüpi:
  • Liides
  • Konteiner
  • Delegation
Architectural patterns express a fundamental structural organization or schema for software systems.
  •  Model View Controller
  • Dependency injection
 Structural Design Patterns are concerned with how classes and objects are composed together to form larger structures
  • Fassaad
  • Teenetemärkija
  • Proksi
  • Andmejuurdepääsu objekt
  • Teisalda objekt
 Creational Design Patterns abstraktne instantiation protsess. Need aitavad muuta süsteemi sõltumatuks sellest, kuidas selle objektid on loodud, koosnevad ja esindatud.
  • Tehase meetod
  • Abstract Factory
  • Objektiplokk
  • Singleton
 Käitumusliku disaini mustrid puudutavad algoritme ja ülesannete jaotust objektide vahel.
  • Iterator
  • Vaatleja
  • Sündmuse kuulaja
  • Strateegia
 UML composite structure scheme

 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