Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

4 Rules Book: DRY, WET, DAMP ...  RSS feed

Posts: 12748
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The book mentions some really great acronyms related to design that help enrich the conversations we have around it.

SOLID - Suggested by Michael Feathers to Uncle Bob. Allows us to say things like "This design is SOLID."

DRY - Don't Repeat Yourself: a great mnemonic acronym introduced in The Pragmatic Programmer. Allows us to say things like "Let's DRY this code up."

WET - Of course, the opposite of DRY: "We Enjoy Typing" or "Write Everything (at least) Twice". Allows us to say things like "This code is WET. Let's DRY it up."

However, DAMP (Descriptive and Meaningful Phrases), while a nice acronym that on the surface seems related to both DRY and WET (kinda dry but kinda wet, too) falls short of the perfection of DRY and WET. "Let's make this DAMP" doesn't carry the same pun-ch that "This code is WET, let's DRY it up" does. The idea of making something "damp" just isn't very appealing to me, especially since I tend to associate dampness with mugginess, mold, cold and colds, stinky sponges, and smelly feet, and that's just for starters.

I'd like to propose an alternative acronym (and if this sticks, you heard it first here at CodeRanch!): WIPE (With Intent Precisely Expressed)

This allows us to make perfectly pun-ny statements like:

"That code is totally WIPEd, man!" or if you prefer, simply "That code is totally WIPE!" (Just as people say "That is totally WHACK!" and "... DOPE!")
"This code isn't very clear. Let's WIPE it up a little."
"After we WIPEd up our code, we clearly saw that it still needed some DRYing up."

What say you, eh?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!