Re: Interfaces and Unit testing

2011-02-18 Thread Erik Meer
Steven Schveighoffer Wrote: > On Fri, 18 Feb 2011 09:43:19 -0500, Erik Meer wrote: > > > Does using interfaces extensively have a performance drawback like using > > inheritance has? > > > > Why do I ask? I was thinking about adopting a coding practice where I > > define explicit interfaces

Re: Interfaces and Unit testing

2011-02-18 Thread Jesse Phillips
As mentioned by Steven there are other ways to this without Interfaces. Templates are one very nice way and you may also find: AutoImplements BlackHole WhiteHole http://digitalmars.com/d/2.0/phobos/std_typecons.html#AutoImplement Useful. I thought there was also going to be something that would

Re: Interfaces and Unit testing

2011-02-18 Thread Steven Schveighoffer
On Fri, 18 Feb 2011 09:43:19 -0500, Erik Meer wrote: Does using interfaces extensively have a performance drawback like using inheritance has? Why do I ask? I was thinking about adopting a coding practice where I define explicit interfaces for all public aspects of my classes, and then c

Re: Interfaces and Unit testing

2011-02-18 Thread Kagamin
Erik Meer Wrote: > Does using interfaces extensively have a performance drawback like using > inheritance has? > > Why do I ask? I was thinking about adopting a coding practice where I define > explicit interfaces for all public aspects of my classes, and then couples > the interfaces closely

Interfaces and Unit testing

2011-02-18 Thread Erik Meer
Does using interfaces extensively have a performance drawback like using inheritance has? Why do I ask? I was thinking about adopting a coding practice where I define explicit interfaces for all public aspects of my classes, and then couples the interfaces closely to unit tests. Then, whenever