|
|
|
|
|
by nh23423fefe
1208 days ago
|
|
> i can't even think of a valid reason to use objects once you get past the cat/dog/animal example Because you have internalized the braindamage you claim others have. If you think "an object in code corresponds to an object in the real world" then you are victim of the object=noun method=verb braindamage. An object is just a tuple. A method is just a procedure with an implicit param. OO is a way to factor code into pieces and to name and reuse those pieces. inheritance is for liskov substitution. |
|