DocumentCode :
973272
Title :
OO in one sentence: keep it DRY, shy, and tell the other guy
Author :
Hunt, A. ; Thomas, David
Author_Institution :
Andy Hunt and Dave Thomas are partners The Pragmatic Programmers and authors of the Jolt Productivity Award-winning The Pragmatic Starter Kit book series. Contact them via www.PragmaticProgrammer.com.
Volume :
21
Issue :
3
fYear :
2004
Firstpage :
101
Lastpage :
103
Abstract :
Some people feel that "getting" object-oriented programming is a difficult, time-consuming process. Many of the cornerstones of OO programming benefit other programming paradigms as well. Even if we are writing shell scripts or batch files, we can use these techniques to great advantage. There are many aspects to writing good code, but most of these hinge on a single underlying quality: flexibility. Flexibility means that you can change the code easily, adapt it to new and revised circumstances, and use it in contexts other than those originally intended. Most of the important lessons to be learned about object technology - how to avoid many common mistakes and keep code flexible - can be summed up into one sentence: keep it DRY (don\´t repeat yourself), shy, and tell the other guy. We describe what that means and how we can apply these lessons to all good code, not just OO code.
Keywords :
object-oriented programming; software quality; concurrent code; object-oriented programming; Computer bugs; Databases; Documentation; Engines; Knowledge representation; Libraries; Middleware; Programming profession; Runtime; Writing;
fLanguage :
English
Journal_Title :
Software, IEEE
Publisher :
ieee
ISSN :
0740-7459
Type :
jour
DOI :
10.1109/MS.2004.1293081
Filename :
1293081
Link To Document :
بازگشت