3 ms·
I still don’t understand how people claim Python is “elegant” given the number of files with four underscores in the name get sprinkled around repositories.
by jen20 3y ago
I still don’t understand how people claim Python is “elegant” given the number of files with four underscores in the name get sprinkled around repositories.
- zelphirkalt 3y agoElegance is in the eye of the beholder. If one hasn't seen more elegant languages, one might think of Python as elegant. It certainly can appear to be elegant, when comparing with some other languages.
- BurningFrog 3y agoI've worked in Python for 6 years, and I don't think I've even heard it called "elegant". To me, it's a dirty blue collar language that gets work done. I think Ruby is far ahead of Python in elegance. I often have to use 7 Python lines for what Ruby can do in 3. I'm open to being told I'm wrong :)
- Doxin 3y agoIMO pythons elegance lies in how you can poke at basically all the bits of the object model. Dunder methods are part of that. Everything is an object and you can poke anything on any object. It's by far not a perfect language, but you have to appreciate how far it goes to avoid special cases.