News for hackers. Stuff that matters.
Re:Scientists discover spider species that feeds its young milk by vbuwivbiu on Friday November 30, 2018 @09:21AM (#18569259)
that makes them mammals!
Re:Scientists discover spider species that feeds its young milk by Retric on Saturday December 01, 2018 @07:52AM (#18576559)
Several non mammals produce milk like substances for their young. https://en.wikipedia.org/wiki/Crop_milk includes antibodies, protean, and fat.
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

Re:Scientists discover spider species that feeds its young milk by TheSpiceIsLife on Saturday December 01, 2018 @01:10PM (#18577957)
Mammals are the vertebrates within the class Mammalia (/məˈmeɪliə/ from Latin mamma "breast"), a clade of endothermic amniotes distinguished from reptiles (including birds) by the possession of a neocortex (a region of the brain), hair, three middle ear bones, and mammary glands. Females of all mammal species nurse their young with milk, secreted from the mammary glands.

I think they come up short on a couple other requirements.

https://en.wikipedia.org/wiki/Mammal