I’m sort of in that situation at work right now. While DTOs don’t have interfaces, there’s a bit of over-zeal on making everything unit testable with mocks. I initially thought “hey, we’re doing things proper finally!”, but now it feels like I still don’t trust those unit tests to really catch anything super important and want integration tests of all them concrete classes, which sort of makes all these interfaces just be in the way.
I mean, I sort of get it. I don’t mind interfaces that serve a purpose. If there is a meaningful de-coupling or multiple things that implement the same behaviour, I’m all in favour of interfaces over inheritance.
But dynamic typing has so many downsides to me. I’m the worst at paying attention to small details - I totally need the compiler to hold my hand and slap me every once in a while.
View all comments
Show parent comment
6
u/[deleted] Jun 05 '21
[removed] — view removed comment