Re: Re: "I asked about dependency injection in C++ and people made fun of me"

"Nat Pryce" <[email protected]>
Newsgroups gmane.comp.programming.language-of-the-year
Message-ID <[email protected]>
On 11/04/2008, DanHinojosa <[email protected]> wrote:
>  The second post was simply as a subject"
>  Is it in the C++ culture to use Dependency Injection/Inversion of
>  Control?"  The body of the post was "Just that simple question....out
>  of curiosity."
>  The person who went ballistic read my first post and was familiar
>  (hopefully) with my background.

"Inversion of control" is a term that has been used in C++ programming
since the days of 16 bit Windows to refer to event driven, rather than
polled, I/O.  So to C++ programmers (or anyone who's programmed since
those days) it means something quite different from "Dependency
Injection" and was mis-applied to refer to "using constructors
properly and doing some auto-connection".  Asking whether it's in the
C++ culture to use event-driven I/O is an odd question -- it's an
orthogonal issue to the programming language -- and so I can see why
it would provoke some odd responses.

--Nat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.