DEV Community 👩‍💻👨‍💻

Discussion on: We Should All Be Writing WET Code

eavichay profile image
Avichay Eyal

In the case you described, I fully agree. The concept of YAGNI should be always on top of developers' minds whenever they write code, but going WET by default doesn't solve bad thinking or premature abstractions.

nettab profile image
NettaB Author

My thinking is that if we can do stupid things, we're going to. So we need systems in place that help us avoid that. If my norm is WET, then for the third usage I have to sit down and think what is actually shared - I have a better chance of avoiding premature abstractions.