An Android application which demonstrates source code of GoF design patterns from the next sources:
- The book "Head First Design Patterns" by E.Freeman, E.Freeman, K.Sierra, B.Bates © O'Reilly 2004
- The course "Design Patterns in Java" by Bryan Hansen, Jose Paumard © Pluralsight 2016
- The course "Gof Patterns Java from Makedonsky" by Alex Makedonsky © Udemy 2019
This demo presents Gof Design Patterns for all three sources, which are named as "Head First", "Pluralsight" and "Udemy".
Every pattern source code has two versions, one uses pattern, another one not.
Code with pattern is placed in "sol" package. Code that does not use pattern is in "pre" package.
- UML class diagram for pattern;
- UML class diagram for code implementation that use pattern (package "sol");
- UML class diagram for code implementation that does not use pattern (package "pre").
Notes. Not all patterns have "pre" version, but the number of such exceptions is small.
These are screens of application. Every button is self explained.
-
to show the result of code that uses pattern, click on "Pattern" button;
-
to show the result of code w/o pattern, click on "No Pattern" button.
The screen of patterns is scrollable, use scrolling to show buttons that are not visible. The output text window in pattern screen is scrollable. Use scrolling to show the results. Use "Back" button to return to previous screen.
There are three main groups of Gang of Four Design Patterns Creational, Structural and Behavioral.
- Chain of responsibility
- Command
- Interpreter
- Iterator
- Mediator
- Memento
- Observer
- State
- Strategy
- Template Method
- Visitor
- "Head First Design Patterns" by E.Freeman, E.Freeman, K.Sierra, B.Bates © O'Reilly 2004
- "Design Patterns: Elements of Reusable Object-Oriented Software (Addison-Wesley Professional Computing Series) " by E.Gamma, R.Helm, R.Johnson, J.Vissides © 1995 by Addison-Wesley
Published 21.06.2020.