3 ms·
Can I quote zach's 15 year old comment on Python vs Ruby? Maybe it will have some relevant insights: > Ruby has clever syntax. Python has pure syntax. > Ruby
by Buttons840 3y ago
Can I quote zach's 15 year old comment on Python vs Ruby? Maybe it will have some relevant insights:
> Ruby has clever syntax. Python has pure syntax.
> Ruby has method aliases. Python does not allow a string to capitalize itself.
> Ruby uses Ruby methods within Ruby classes to extend Ruby. Python has decorators so you can write functions that return functions that return functions to create a new function.
> Ruby has strict object-oriented encapsulation. Python is laid-back about objects, because you probably know what's going on inside them anyway.
> Ruby lets you leave off parentheses so you don't miss objects having attributes too much. Python will let you mix tabs and spaces for indentation, but passive-aggressively mess up your scoping as punishment.
> Ruby has seven kinds of closures. Python has one, in the unlikely case a list comprehension won't do.
> Ruby's C implementation is a mess of support for language-level flexibility. Python's C implementation is so clean you get the unsettling thought that you could probably write Python using C macros.
> Ruby supports metaprogramming for cases when programmers find it more descriptive. Python supports metaprogramming for cases when programmers find it necessary.
> Ruby is expressive. Python is direct.
> Ruby is English. Python is Esperanto.
> Ruby is verse. Python is prose.
> Ruby is beautiful. Python is useful.
> I like Python, but coming to it after using Ruby for seven years, well, I think it's like dog people and cat people. You can like having one species around, but you're always thinking -- why they can't be more like the other?
-- This is one of my favorite HN comments of all time: https://news.ycombinator.com/item?id=682364 https://news.ycombinator.com/item?id=682364
- stephenitis 3y agoI wish I could favorite comments. Thanks for sharing this one.
- Buttons840 3y agoClick the time on a comment ("1 hour ago", "60 days ago", etc), that will focus you on the single comment and give you the option to mark it a favorite. You can access your favorites through your HN profile.