News for hackers. Stuff that matters.
Re:Scientists discover spider species that feeds its young milk by denisw on Saturday December 01, 2018 @08:03AM (#18576598)
Taxonomies seem to be just as problematic in biology as in object-oriented programming. :)
Re:Scientists discover spider species that feeds its young milk by IgorPartola on Saturday December 01, 2018 @09:00AM (#18576784)
Worse. 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.
Re:Scientists discover spider species that feeds its young milk by TeMPOraL on Saturday December 01, 2018 @09:28AM (#18576898)
Treating taxonomies as anything other than flexible convenience modeling is dumb, as experience with OOP teaches well :).
Re:Scientists discover spider species that feeds its young milk by kbutler on Saturday December 01, 2018 @12:12PM (#18577656)
It needs to be a "tagsonomy" - associate similar traits rather than a strict hierarchy...
Re:Scientists discover spider species that feeds its young milk by gus_massa on Saturday December 01, 2018 @05:06PM (#18579271)
It's not real milk. It's a nutritious fluid that is slightly somewhat similar to milk.
Re:Scientists discover spider species that feeds its young milk by too-soon-ago on Saturday December 01, 2018 @08:55AM (#18576771)
impl Lactation for Spider
Re:Scientists discover spider species that feeds its young milk by soyyo on Saturday December 01, 2018 @01:42PM (#18578136)
Well, 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