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.

source
Sort:hotnewtop