Of spaghetti code in one project/big methods to some projects/smaller methods
- no props for services using factories, use constructor injection to see what's necessary; but if service is resolvable eveywhere, props are better to not make constructor parameters list fat
- constructor parameters class is good when you often change dependencies list, but separate parameters are better for easier control and dependencies minimizing
- fewer state (props) and more parameters passing to see workflow!
- generally properties injection is better and all injected stuff should be stateless services OR dependencies constructor params should be taken from context
- no props for services using factories, use constructor injection to see what's necessary; but if service is resolvable eveywhere, props are better to not make constructor parameters list fat
- constructor parameters class is good when you often change dependencies list, but separate parameters are better for easier control and dependencies minimizing
- fewer state (props) and more parameters passing to see workflow!
- generally properties injection is better and all injected stuff should be stateless services OR dependencies constructor params should be taken from context
No comments:
Post a Comment