DEV Community

Discussion on: Why Java interfaces aren't terrible (just strict)

Collapse
 
simonhaisz profile image
simonhaisz

My comment wasn't about what the guy in the other article was trying to do. It was about how this interface has dozens methods. It should have either implemented 4-5 other more focused interfaces or, preferably in my opinion, used composition to own those 4-5 interfaces.

If felt with too many of the God classes and I know how they come about. Wether it's a DB or a session is the core of the context of the application so it ends up growing like Katamari.