Clean Code Tip: DRY or not DRY?
You've probably heard about the DRY principle: Don't Repeat Yourself.
Does it really make sense? Not always.
When to DRY
Yes, you should not repeat yourself if there is some logic that you can reuse. Take this simple example:
public class PageExistin...
code4it.hashnode.dev4 min read