re: Stop trying to be so DRY, instead Write Everything Twice (WET) VIEW POST

FULL DISCUSSION
 

When making your code too DRY, it gets burned. :)

You should balance between DRY and WET. I have seen some developers trying to make their code extremely DRY by compressing all the logic, after the process, no anyone can understand the logic. It usually makes the code unreadable. It also usually ends up adding more parameters to the method and make the logic unpredictable and untestable with vary combination of inputs.

code of conduct - report abuse