By Topic

OO in one sentence: keep it DRY, shy, and tell the other guy

Sign In

Cookies must be enabled to login.After enabling cookies , please use refresh or reload or ctrl+f5 on the browser for the login options.

Formats Non-Member Member
$33 $13
Learn how you can qualify for the best price for this item!
Become an IEEE Member or Subscribe to
IEEE Xplore for exclusive pricing!
close button

puzzle piece

IEEE membership options for an individual and IEEE Xplore subscriptions for an organization offer the most affordable access to essential journal articles, conference papers, standards, eBooks, and eLearning courses.

Learn more about:

IEEE membership

IEEE Xplore subscriptions

2 Author(s)
A. Hunt ; 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 ; D. Thomas

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.

Published in:

IEEE Software  (Volume:21 ,  Issue: 3 )