Don't Repeat Yourself Flashcards

1
Q

What is the principle of Dont Repeat Yourself

A

One should replace code repetition with code abstraction.

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

Why shouldnt we copy code

A

Error-prone, errors must be fixed in every copy

Inefficient, space must be allocated for every copy.

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