#Programming best-practice:
If I have the chance to prepare for edge cases at two places, should I do so at both? In security we would call this defense-in-depth, but functionality-wise I have the feeling that this introduces redundancy and I may catch bugs earlier if I only did the handling at the "right" place.
What do you think?
Does the equation change, if we talk about distinct components (e.g.: code&template, different microservices)?