Design Pattern and Principles Flashcards
Who said this?
“Design is not just how it
looks and feels like.
Design is how it works”
Steve Jobs
is the creation of experience
Design
Design is the ______ of the said creation and how well it’s organized
process
Design is the _____ i.e. the things we see hear, and feel
result
There is a definite meaning for design(T or F)
F (there is no)
Design is a plan for arranging _____ in such a way as best to accomplish a particular purpose.
elements
are typical solutions to commonly occurring problems in software design
Design petterns
Design patterns are like ____ _____that you can customize to solve a recurring design problem in your code
pre-made blueprint
Design Pattern is a specific piece of code, not a general concept for solving particular problems(T or F)
F (is not specific piece of code but a general concept)
Design Pattern and Algorithm are interchangeble(T or F)
F( Algo = cooking recipe; DP = Blueprint)
(Algo= define set of actions; DP= high-level desc of solution)
Sections that are usually present in patterm descriptions
Intent
Motivation
Structure
Code Exampe
_____ of the pattern briefly describes both the problem and the solution
Intent
____ further explains the problem and the solution the pattern makes possible
Motivation
_____ of classes shows each part of the pattern and how they are related
Structure
_____ ______ in one of the popular programming languages makes it easier to grasp the idea behind the pattern
Code example
The most basic and low-level patterns are often called _____
idioms
The most universal and high-level pattern are _____ ______. Devs can implement these patterns virtually in any language.
Architectural patterns
All patterns can be categorized by their ______ or ______
intent or purpose
3 main groups of pattern
Creational Pattern
Structural Pattern
Behavioral Pattern
provide object creation mechanisms that increase flexbility and reuse of existing code
Creational pattern
explain how to assemble objects and classes into larger structures, while keeping the structure flexible and efficient.
Structural pattern
take care of effective communication and the assignment of responsibilities between objects
Behavioral patterns
are typical solutions to common problems in object oriented design
Patterns
Who first described the concept of pattern
Christopher Alexander in his book A pattern Language