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

"heusserm" <[email protected]>
Newsgroups gmane.comp.programming.language-of-the-year
Message-ID <[email protected]>
On Thu, Apr 10, 2008 at 8:32 AM, andy sipe <[email protected]> wrote:
>
> Doesn't this go both ways? Shouldn't everyone strive to be a bit
> more friendly. Just because someone has a longer tenure in the
> programming field doesn't mean they have a right to snub others.
> Hopefully they haven't stopped learning??? If I was short with
> everyone who had less experience than me I wouldn't get very far.
>

Yes, Andy, you are completely correct. I agree, the C++ guys
over-reacted and failed to "seek first to understand."

Nearly every human being does this.  We can either complain about it
(which makes us the passive victim) or rise above it.

I don't mean to imply that you are a passive victim.  My point is
simply that if you want to talk about something like DI with a
community that is hostile to it, you're choices are either:

1) Seek first to understand,
2) Stay out of the community,
3) Make a lot of enemies early

Of *COURSE* you should have a fourth option called "engage with the
community as a peer" - and it's clearly one that exists on pragprog
... but not everywhere.

So, again, my final advice: Seek first to under. $50 says that a
substantial portion of the mailing list will tell you about this cool
trick they know where you have the constructor take a pointer to a
baseclass object so that you can over-ride it for testing.  They just
don't call it DI ...


--heusser
xndev.blogspot.com
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.