Don't Repeat Yourself Flashcards
1
Q
What is the principle of Dont Repeat Yourself
A
One should replace code repetition with code abstraction.
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.