Coming up on this discussion - https://softwareengineering.stackexchange.com/a/271585/53263
Because I'm trying to avoid this problem - Are answers being posted as comments?
My answer is reproduced here, less the OP's original quote:
Wow! We do not work on the same code bases.
Inversion of Control frameworks - like Guice or Spring - essentially strive to make this half of your problem, a pillar of design. Many arguments in constructors is totally fine.
Seriously, a typical constructor in my code base might have 20+ arguments. No apologies.
I have delete votes for this. I feel this is wrong because:
- people should be allowed to answer questions...
- incompletely because they have something substantive to say but don't have the desire for whatever reason to write something extensive...
- letting others write better answers to flesh out the response if possible...
- because an incomplete answer such as mine may be extremely helpful to the OP and future visitors...
- and answer as an answer since the comment muck is not appropriate for what is, in fact, an answer.
I'm disappointed I have delete votes and downvotes for what seems to be incompleteness alone, and want to see what meta thinks.