October 2000
Intermediate to advanced
288 pages
5h 45m
English
Whenever code is duplicated, get rid of it. Make a method of it, make an object to do it, do something. Get rid of it.
Where there is duplicated code, there is usually an idea lurking: first I'll convert this one, then I'll convert that one. That idea needs to be expressed.
Where there is duplicated code, there is always an opportunity to make the program smaller. Do it.
Where there is duplicated code, there is always an opportunity for one of the duplicates to get fixed and the other one to be forgotten. Remove this opportunity.
Where there is duplicated code, there is more code to read before you understand the program. Make the job easier.
Hmm … there's duplication above. I should have said:
When there is ...
Read now
Unlock full access