Comment on Opinions on how to deal with duplicate code.
hightrix@lemmy.world 1 year ago
I’ve never heard of WET, but that is exactly the process I preach to my team. Refactor only once the same code block is used 3+ times as that tends to define a method that is a utility and not business logic specific.
This method has worked well in the past.
Kwartel@programming.dev 1 year ago
To expand on that: dry should only be considered for business logic anyway. Wet for everything else sounds great!