What does WET mean?
It stands for 'Write Everything Twice' or 'We Enjoy Typing'.
WET Principle
The WET principle, translating to 'Write Everything Twice' or 'We Enjoy Typing', represents an approach opposite to the DRY (Don't Repeat Yourself) principle by sarcastically allowing or even encouraging code repetition.
Write Everything Twice
WET is a humorous acronym suggesting writing or repeating code more than necessary, often seen as a way to emphasize simplicity or avoid the complexity of abstraction.
Lack of Abstraction
WET code may lack proper abstraction, leading to redundant and harder to maintain code due to excessive repetition of similar structures or logic.
Unpredictable Changes
Changes in WET code can be less predictable and uniform, as related elements may not change in a uniform manner, increasing the risk of errors and inconsistencies.
Testing Challenges
WET code can present challenges for testing, as there may be more code paths to cover due to duplication, increasing the effort and complexity to ensure software quality.
Want to learn more?
If you're curious to learn more about WET, reach out to me on X. I love sharing ideas, answering questions, and discussing curiosities about these topics, so don't hesitate to stop by. See you around!
What is an antipattern?
An "antipattern" refers to a common problem or bad practice that hinders th...
What is a junior?
A junior developer typically has 0 to 3 years of experience, with some know...
What are Continuous Integration (CI) and Continuous Deployment (CD)?
CI involves the frequent integration of code changes into a shared reposito...