Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>When it comes to DI, there's a lot of conflicting use of terminology out there. The term <strong>Poor Man's DI</strong> is no exception. To some people, it means one thing and to others it means something different.</p> <p>One of the things I wanted to do with the book was to supply a <em>consistent</em> pattern language for DI. When it came to all of those terms with conflicting use, I had two options: Come up with a completely new term, or pick the most prevalent use (according to my subjective judgment).</p> <p>In general, I've preferred to re-use existing terminology instead of making up a completely new (and thus alien) pattern language. That means that in certain cases (such as Poor Man's DI), you may have a different notion of what the name is than the definition given in the book. That often happens with patterns books.</p> <p>At least I find it reassuring that the book seems to have done its job of explaining exactly both Poor Man's DI and Bastard Injection, because the interpretation given in the O.P. is spot on.</p> <p>Regarding the real benefit of a DI Container I will refer you to this answer: <a href="https://stackoverflow.com/questions/5667801/arguments-against-inversion-of-control-containers/5668093#5668093">Arguments against Inversion of Control containers</a></p> <hr> <p><em>P.S. 2018-04-13:</em> I'd like to point out that I've years ago come to acknowledge that the term <em>Poor Man's DI</em> does a poor (sic!) job of communicating the essence of the principle, so for years, now, I've <a href="http://blog.ploeh.dk/2014/06/10/pure-di" rel="nofollow noreferrer">instead called it Pure DI</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload