Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
385 views
in Technique[技术] by (71.8m points)

software quality - Who first created the WET Principle?

Context

On my searches, online I found that the WET principle: "Write Everything Twice" seems to be inseparable from the DRY principle: "Don't Repeat Yourself".

However, while the DRY principle has a very clear definition and is well documented, the WET principle has widely varying interpretations across the web, and I was unable to find the original source to confirm which interpretation is the correct one.

According to some, WET is the exact opposite of DRY and it is exclusively used to describe the bad coding practice of not using DRY. They also say the acronym might stand for "We Enjoy Typing" or "Waste Everyone's Time", to cite a few:

However, my first contact with WET was in a positive light i.e. as a criticism of the mindless application of the DRY principle, and I was also able to find articles using or defending this definition:

In these articles, WET programming would imply delaying abstracting until you make sure you'll need it i.e. abstract only after the third time you've repeated yourself. Quoting Conlin Durbin:

You can ask yourself "Haven't I written this before?" two times, but never three.

And both interpretations make sense.

Question

So the question is: Does anyone know who formulated the WET acronym originally and what he actually meant?

question from:https://stackoverflow.com/questions/65908886/who-first-created-the-wet-principle

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...