Design Patterns Flashcards

1
Q

Patterns

A

A general reusable solution to a commonly occurring problem within a given context in software design.

A template, not a finished design.

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

Benefits of using a pattern

A

Industry Standard Approach
Reusability
Easy to understand and debug
Saves time/cost

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

Idioms

A

an expression of a simple task, algorithm, or data structure that is not a built-in feature in the programming language being used,

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

VarArgs

A

You need to pass in many instances of the same object type to a method, but you don’t know at compile time how many instances there will be.

for(String s : str)

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

Creational Patterns

A

about class instantiation or object creation

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

Structural Patterns

A

organising different classes or objects to create bigger structures and provide new functionality

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

Behavioural Patterns

A

identifying common communication patterns between objects and identifying this pattern

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