INTRODUCTION TO PATTERNS Flashcards

1
Q

Design patterns are

A

typical solutions to commonly occurring
problems in software design. They are like pre-made blueprints that you can customize to solve a recurring design problem in your code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

The
pattern is not a specific piece of code, but a

A

general concept
for solving a particular problem. You can follow the pattern details and implement a solution that suits the realities of your
own program.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

While an algorithm always defines a clear set of actions that
can achieve some goal, a pattern is a

A

more high-level description of a solution. The code of the same pattern applied to two different programs may be different.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The most basic and low-level patterns are often called

A

idioms.
They usually apply only to a single programming language.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The most universal and high-level patterns are

A

architectural
patterns. Developers can implement these patterns in virtually any language. Unlike other patterns, they can be used to
design the architecture of an entire application.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

all patterns can be categorized by their intent, or
purpose.

A
  1. Creational patterns
  2. Structural patterns
  3. Behavioral patterns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The concept of patterns was first described by

A

Christopher
Alexander in A Pattern Language: Towns, Buildings, Construc-
tion1.Thebookdescribesa“language”fordesigningtheurban
environment. The units of this language are patterns. They
may describe how high windows should be, how many levels
a building should have, how large green areas in a neighbor-
hood are supposed to be, and so on.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly