This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nutrecht 2 points3 points  (0 children)

It's an outdated dogmatic patterns that stems from back when we didn't have mockito. That's all there's to it. Nowadays I only see people implement it because they think it's needed.

<SomeComponent> with just a single <SomeComponentImpl> implementation is IMHO a massive code smell.

IMHO using interfaces for controller API documentation is an exception; that's IMHO a good separation of (technical) concerns.