News for hackers. Stuff that matters.
Re:Ruby 3.0 by oezi on Friday December 25, 2020 @07:58AM (#25536202)
I would say that Python is quirky for having functions at all and as a Rubyist it is confusing why some things are functions in Python when they could be methods. This leads to a much simpler mental model in Ruby.

The syntax in Python also leaves much desired (e.g. use of underscores) and most of Ruby's quirks are Perlisms such as $1.

Re:Ruby 3.0 by jonnytran on Friday December 25, 2020 @02:44PM (#25538539)
Yes. Why the f is len() a function in Python? From a design perspective, it makes absolutely no sense. You have to implement the __len__() method in order for the len() function to work. Why isn't it just a method?! And that is the one "right" way to do it. Drives me crazy. And there are countless other examples like that.