3 ms·
I'm a longtime Rubyist who's dabbling in Python a fair bit nowadays due to the growth of the ecosystem and the libraries available. I find Python enjoyable to w
by petercooper 5y ago
I'm a longtime Rubyist who's dabbling in Python a fair bit nowadays due to the growth of the ecosystem and the libraries available. I find Python enjoyable to work with but the thing it makes me love more about Ruby is how in most cases you think about objects and the capabilities of those objects, whereas in Python it feels like a crapshoot (I'm sure it's not, it's just how it feels as a dabbler) as to whether you pass objects into a function (e.g. `len`), use methods on objects, or whether to even think of OOP at all :-)
Now, that's not entirely a negative, I quite like Python's freewheeling "do whatever works and feels best for you" ways, but that feels somewhat contrary to the Zen of Python's "There should be one-- and preferably only one --obvious way to do it." (!)
- vikingerik 5y agoThose last aren't mutually exclusive. The idea is that there should be one obvious way, such that you'll find that what works and feels best is that way. The idea is that you will simply want to comply, not to demand that you do.
- mixmastamyk 5y agohttps://news.ycombinator.com/item?id=29202044 https://news.ycombinator.com/item?id=29202044