Posts
1150
Comments
891
Trackbacks
1
DRY is for Martini

I liked the quotation from this post:

“code duplication is OVER *FUCKING* RATED. DRY is for Martini. Yes, I'm exaggerating”

I was thinking about this because I found myself recently bemoaning my terrible code, where I was doing the exact same thing in two different places, and getting bitten when fixing the code in one place and not the other.

Except the entire point is that it only happened to be the exact same thing, at that time.  When it needed to change in only the one place, and not the other, I remembered that sometimes DRY means doing the same thing in two places, because you might need to do a slightly different thing in one calling method versus the other down the road.

But that’s a longer story.

posted on Monday, May 20, 2013 12:01 AM Print
Comments
No comments posted yet.

Post Comment

Title *
Name *
Email
Url
Comment *  
Please add 7 and 8 and type the answer here: