Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Generally, you provide only the dependencies that your class and/or method requires to perform its function and no more... Commented Jul 29, 2018 at 22:30
  • 1
    I think the last sentence may have been cause for voting to close this as off topic. I think this question (minus the request for links to other resources), is spot on for this community, however as the question stands it is too broad to answer. Can you provide a specific use case that might be giving you problems? Commented Jul 30, 2018 at 0:00
  • @GregBurghardt unfortunately I have no concrete case I'm analyzing the daily work. I have noticed that few are not clear when to use one or the other method. And I wanted a comparison with more experienced people. I have an example now I write it!! Commented Jul 30, 2018 at 6:28