4 ms·
In my last project every class had a corresponding abstract class, and then we used DI to use the real class. Good to be rid of it.
by tormeh 1y ago
In my last project every class had a corresponding abstract class, and then we used DI to use the real class. Good to be rid of it.
- mike_hearn 1y agoThat sort of knee-jerk over-application of a technique will ruin any codebase in any language, unfortunately. It tends to reflect a lack of confidence by the developers. They aren't entirely sure how to get best results so fall back on religious devotion to 'best practices' even when it's inappropriate, in the hope that they can point the finger later if there are problems.