4 ms·
Taxonomies seem to be just as problematic in biology as in object-oriented programming. :)
by denisw 8y ago
Taxonomies seem to be just as problematic in biology as in object-oriented programming. :)
- too-soon-ago 8y agoimpl Lactation for Spider
- IgorPartola 8y agoWorse. In OOP you can at least mostly see where the thing comes from. In biology, evolution doesn’t readily provide the source code. It’d be like trying to name a class that inherits from a chain of obfuscated machine code snippets, some of which you can no longer see.
- TeMPOraL 8y agoTreating taxonomies as anything other than flexible convenience modeling is dumb, as experience with OOP teaches well :).
- kbutler 8y agoIt needs to be a "tagsonomy" - associate similar traits rather than a strict hierarchy...
- soyyo 8y agoWell, in this case, you just need to make a GiveMilkBehaviour interface and make a class for all the possible ways of giving milk. Now all animal classes that give milk implement that interface, use composition to include the proper way of giving milk, and the interface is implemented by delegation to that component. No need for that pesky Mammal superclass
- gus_massa 8y agoIt's not real milk. It's a nutritious fluid that is slightly somewhat similar to milk.