On Thu, Mar 20, 2008 at 10:48 PM,  <[EMAIL PROTECTED]> wrote:
> Ever notice inheritance is that concept every programmer learns but rarely
>  uses?  How many times how you actually made an object (is-a) hierarchy more
>  than 1 level deep?  I'd guess most people use inheritance for mixins and
>  little more.
>

Lots, but then it's probably because I get to work on more vertically
integrated code. I use classes, and factories, and many common OO
design techniques, and think it's very helpful. I feel really bad when
I change my software or API, or a constant, and the LabView guys have
to go change a bunch of diagrams over and over.

>  Inheritance is just too weird and brittle to be much use in the real world.
>
>  Anyone's mileage vary?
>

I think usually at the prototyping and early development stage that's
true. I find that as a project grows, you start noticing a lot of
excess crap, and for me the first time I fix a bug by changing
something similar in several places, I know it's time to re-factor and
use some inheritance to clean things up. It usually results in MUCH
more compact, readable, and easily modifiable code.

-Tom

-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg

Reply via email to