Digital Media Web Blogs > Web

Design Principles and Code Ownership


Related link: http://www.artima.com/intv/principles.html

"You can almost do this as an exercise. Look at some program and see if there's some duplication. Then, without really thinking about what it is you're trying to achieve, just pigheadedly try to remove that duplication. Time and time again, I've found that by simply removing duplication I accidentally stumble onto a really nice elegant pattern. It's quite remarkable how often that is the case. I often find that a nice design can come from just being really anal about getting rid of duplicated code," says Martin Fowler in this Artima.com interview.


What do you think of Martin's comments?

Categories





AddThis Social Bookmark Button



Comments (1)
Read More Entries by Bill Venners.

1 Comments

anonymous2 said:

Very true.
Very very true! I've seen the same thing happen again and again, in *many* projects, across languages (at least across C, C++, Perl and Java). I've also followed the exact same "pigheaded" approach to removing code redundancy and I've found that it works *all* the time.

I remember there is a mention of this in the "Pattern Oriented Software Architecture" book..

-Mahadevan R (mdevan_news_mail@rediffmail.com)

Topics of Interest

Related Books

Recommended for You

Archives


 
 


Or, visit our complete archive.  

Stay Connected