Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
7 Cards in this Set
- Front
- Back
Name 5 commonly used design patterns.
|
Null Object, Factory, Observer, Decorator and Strategy.
|
|
Explain the Model View Controller pattern.
|
Model View Controller (MVC) pattern creates applications that separate the different aspects of the application (input logic, business logic, and UI logic), while providing a loose coupling between these elements. In this way, they can be tested separately and the loose coupling facilitates the support of several different UI's.
|
|
Explain the Null Object pattern.
|
Provide an object as a surrogate for the lack of an object of a given type. The Null Object Pattern provides intelligent do nothing behavior, hiding the details from its collaborators.
|
|
Explain the Factory pattern.
|
The factory pattern creates objects without exposing the instantiation logic to the client.
It also provides a means of referring to the newly created object through a common interface. |
|
Explain the Observer pattern.
|
Simply put, the Observer pattern is a pub-sub arrangement. A number of Observing objects subscribe to information produced by a publishing object.
|
|
Explain the Decorator pattern.
|
This pattern provides a means for extending a class's functionality at runtime. This is done usually by wrapping the class so that the method in question can be over-ridden by a method that calls the super class method as well as some other method.
|
|
Explain the Strategy pattern.
|
Define a family of algorithms, encapsulate each one, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
|