DEV Community

Discussion on: Coding practices your future self will love you for

Collapse
 
gthomas2 profile image
gthomas2

I'm also strongly against the WET principle. Having good unit tests and code coverage is important. If you go with the WET principle you are making it harder to write tests for your code. If you go with DRY and then you later find a function doesn't meet your requirement, don't use that function and rewrite the code - simple!