New guy joins the dev team: Creating interfaces for legitimately every single class, not using things like extension methods due to being “hard to test” etc.

Is this considered best practice? For the small amount of code he writes, there seems to be interfaces coming out the wazoo. He doubles the file count while making it tedious to read.

In addition, there are methods that would make perfect extensions that we could use throughout the project, but it’s refused and instead, made a normal function with of course a complimentary interface.

I ask because he has been a developer for much longer than I, so it’s conflicting to me. For me interfaces are a powerful tool for ensuring convention is upheld and required code is always implemented for each concrete class or used as a contract, but now our project is packed full of meaningless interfaces for the sake slightly easier unit testing.

Opinions?

submitted by /u/GameCollaboration
[link] [comments]

Leave a Reply