Re:The Joy of Coding: Observable
by pjc50 on Thursday January 30, 2020 @04:59AM
(#22190216)
As far as I can tell "Elegant" means "I like it, and believe that my aesthetic preferences are a universal law of humanity"
[ Parent
| on HN ]
Nah, there's a property of elegance that appears similar in mechanical engineering, typography, maths, poetry and a bunch of other places. I don't know exactly what it is, but I think it maps closely to "the minimum number of moving parts necessary to complete the task"
Somewhat similar, I always thought of elegance as the minimum complexity required. However, truly elegant solutions are sometimes counter-intuitive or 'hidden' beneath a few layers of detail, but once understood feel "obvious." That "oh man that's smooth" feeling is often the first step for me to think of something as elegant, and separates 'good solutions' from truly elegant ones.
Re:The Joy of Coding: Observable
by Indifference123 on Thursday January 30, 2020 @06:38AM
(#22190673)
I'd say that elegant is a tight implementation to language fit. When you can express an implementation purely in terms of idiomatic language constructs in an obvious simply understandable way, that is elegant.