5 ms·
> “Salt is just our first model substance to probe the fundamentals of nucleation events,” said University Professor Eiichi Nakamura. “Salt only crystallizes on
by dragontamer 6y ago
> “Salt is just our first model substance to probe the fundamentals of nucleation events,” said University Professor Eiichi Nakamura. “Salt only crystallizes one way. But other molecules, such as carbon, can crystallize in multiple ways, leading to graphite or diamond. This is called polymorphism and no one has seen the early stages of the nucleation that leads to it. I hope our study provides the first step in understanding the mechanism of polymorphism.”
I'm amused that Chemists / Physicists also have the word "Polymorphism" and that it means something completely different from the programming term.
- MereInterest 6y agoIn some ways, they are sort of related. In chemistry, you have different representations (diamond/graphite) of the same underlying thing (carbon). In programming, you have different representations (PointXY/PointRTheta) of the the same underlying concept (Point2D).
- jxramos 6y agoright, the roots of the word make it applicable to lots of stuff, poly or many, morph or structure/form.
- adrianmonk 6y agoArguably it's the strategy pattern. Graphite and Diamond are subclasses of CrystalizationStrategy.
- iainmerrick 6y agoThings could get messy real fast if you need to inherit from both Graphite and Diamond...
- chrisweekly 6y agoFavor composition over inheritance!
- frumiousirc 6y agoYes, the diamond inheritance pattern is a classic OO problem. :D
- LightMachine 6y agoThat isn't what polymorphism means, polymorphism would be more like Point<Float> and Point<Double> using the same Point definition.
- flobosg 6y agoIt’s also a term used in biology: https://en.wikipedia.org/wiki/Polymorphism#Biology https://en.wikipedia.org/wiki/Polymorphism#Biology
- skulk 6y agoMy second confrontation with the term "polymorph" was a Java tutorial, the first was Larn (https://larn.fandom.com/wiki/Spells https://larn.fandom.com/wiki/Spells)
- louthy 6y ago> I'm amused that Chemists / Physicists also have the word "Polymorphism" and that it means something completely different from the programming term. Seems like a good reason to stop using it [in programming], and the technique behind it.