This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin 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
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

Posts: 12992
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?

Lasagna is spaghetti flvored cake. Just like this tiny ad:
Programmatically Create PDF Using Free Spire.PDF with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!