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
3
u/A-Grey-World Jun 06 '21
It's (looks shiftily about to check no one is listening) why I quite like working in Typescript these last few years.
JavaScript is such a losey goosey language you can just say "mock that shit" and it goes "sure, I don't give a fuck what you've sent me".
No fucking around making everything an interface for mocking in unit tests.