Re: Other developers don't like dependency injection

2011-10-27 Thread Peter Gfader
#1
I am a fan of DI and agree about the hard way of selling it.
My reasoning for DI is tests.
*Tests help us to prevent regression, clarify requirements with clients
(BDD) and act as documentation. In order to write some tests we need to
inject a dummy. How do we inject a dummy? -- DI*

#2
I am not a big fan of IoC containers either.
I have similar experiences as Justin documented here (although the setup of
dependencies can become messy without IoCC)
http://codelikebozo.com/breaking-up-with-ioc


   .peter.gfader. (current mood = happy)
   http://blog.gfader.com


On Thu, Oct 27, 2011 at 10:05 AM, djones...@gmail.com wrote:

 ** I don't buy the cheaper maintence costs argument, the 5 projects that
 I am supporting all use spring for DI.
 I spend half of my time trying to figure out how the damn thing is
 configured.

 Although a code based injector without xml config files at least alows you
 to debug the code and see what is missing.

 I like DI, but it sure doesn't save time.

 Davy

 When all you have is a hammer, every problem looks like a nail. I feel
 much the same way about xml
 --
 *From: * mike smith meski...@gmail.com
 *Sender: * ozdotnet-boun...@ozdotnet.com
 *Date: *Thu, 27 Oct 2011 16:46:45 +1100
 *To: *ozDotNetozdotnet@ozdotnet.com
 *ReplyTo: * ozDotNet ozdotnet@ozdotnet.com
 *Subject: *Re: Other developers don't like dependency injection

 On Thu, Oct 27, 2011 at 3:00 PM, Nathan Schultz milish...@gmail.comwrote:

 I'd probably sell it differently.

 Instead of saying you don't know where the objects come from, say that
 objects come from a centrally configured location (since in practice the
 objects are usually defined in configuration, or in bootstrap code).

 And sell cheaper maintenance costs (modular design, easy to refactor,
 easy to replace components, easier to extend, fewer system wide bugs, helps
 with a cleaner implementation, less spaghetti code, etc).

 To get it past some of the old hats here I temporarily changed
 terminology. Dependency Injection (let alone IoC) would draw blank looks,
 but say plug-in system, and they've all rolled one before and are
 comfortable with the concept.



 Also, it sounds like those baddies, DLL Injection  SQL Injection.  Make
 it sound different, and you could get a better reaction.


 --
 Meski

http://courteous.ly/aAOZcv

 Going to Starbucks for coffee is like going to prison for sex. Sure,
 you'll get it, but it's going to be rough - Adam Hills




-- 

.peter.gfader.
Current mood = happy!

Check this before you go live
http://blog.gfader.com/2011/07/website-check-list-part-1-aspnet-4.html


Re: Other developers don't like dependency injection

2011-10-27 Thread DotNet Dude
As others have said try selling it differently...but don't expect
miracles because that's what's needed with some developers. I've run
into a few. If there is true benefit to DI in your project(s) then
push for it but don't get too upset if you don't get your way.

I'm curious though, how is unit testing happening without at least
some DI? Or are only parts of the system being unit tested and the
rest ignored?


On Thu, Oct 27, 2011 at 2:15 PM, Michael Ridland rid...@gmail.com wrote:

 So I've been working with this client for a few years now, all the other
 developers aren't alt.net type. They're older and just love their RAD, User
 Controls, coming from a dephi background.
 It took me a while but finally I got them doing unit testing, but still not
 as much as I would like.
 Today I also tried to convince them(the development manager) to
 use dependency injection but he said it was over complicating things and
 it's confusing because you didn't know where the object came from. I argued
 for decoupling and that objects shouldn't need to know
 where dependences came from or how they were instantiated, objects should
 only worry about their unit of work.
 Am I wrong?



RE: Sharepoint 2010 - Is it safe to delete doc library templates?

2011-10-27 Thread Mark Thompson
I _think_ you should be OK. I just did a similar thing with a SharePoint
List, creating a template from an existing list, using the template to
create a new list, then deleting the template.  The list I created from the
template still works OK. This was with SharePoint 2007, but I would expect
2010 would be the same (not taking any responsibility if it doesn't though!
J )

 

Mark.

 

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com]
On Behalf Of Winston Pang
Sent: Thursday, 27 October 2011 11:29 AM
To: ozDotNet
Subject: Sharepoint 2010 - Is it safe to delete doc library templates?

 

Hey everyone,

 

 

Quick question, if you have a doc library template, and you've created some
doc library instances based off this template, is it safe to remove this
template once you're done with it?

 

Thanks.

 

-Winston



Vmware

2011-10-27 Thread Tom Gao
Hi All,

 

My home machine is a 4 core 8 thread i7-960. I have allowed Vmware to take
all 4 cores. However even when all CPU cores for the VM are loaded at 93% on
all cores the host machine's CPU is only loaded at 60%. Does anyone know of
any ways to make the Host PC take on more load ?

 

Thanks,

Tom



RE: Vmware

2011-10-27 Thread Williams, Thomas
Hi Tom - I'd take a look at the power plans that the host and guest are running.

Thomas

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Tom Gao
Sent: Friday, 28 October 2011 6:57 AM
To: 'ozDotNet'
Subject: Vmware

Hi All,

My home machine is a 4 core 8 thread i7-960. I have allowed Vmware to take all 
4 cores. However even when all CPU cores for the VM are loaded at 93% on all 
cores the host machine's CPU is only loaded at 60%. Does anyone know of any 
ways to make the Host PC take on more load ?

Thanks,
Tom


Peninsula Health - Metropolitan Health Service of the Year 2007  2009