D - more power than (really) needed !
David Medlock
noone at nowhere.com
Mon Mar 13 18:15:30 PST 2006
Hasan Aljudy wrote:
> David Medlock wrote:
> <snip>
>> see:
>> http://okmij.org/ftp/Computation/Subtyping/#Problem
>>
>> -DavidM
>
> A nice example of not understanding OOP :)
>
> WOW .. I think I'm beginning to understand what Schock means when he
> says everyone out there thinks they are doing object oriented
> programming, but only very few of them really are.
>
> There's no "book" that you can follow literally to produce good code.
> It's a matter of trial and error. You try to subclass CSet from CBag,
> and disvocer that it doesn't work, or produce more problem than it
> solves, then don't whine about it, just implement CSet differently. It's
> not OOP's fault, nor is it inheritance's fault.
> If you try to open a door with a screw-driver and it doesn't work,
> should you blame the screw-driver, or blame yourself for not
> understanding how doors work?
Sorry, Hasan this is called 'moving the goalposts'.
-DavidM
More information about the Digitalmars-d
mailing list