News for hackers. Stuff that matters.
Re:Ruby is beautiful (but I'm moving to Python) by steveklabnik on Sunday November 28, 2010 @01:43PM (#1947869)
I can't speak for the 'Ruby world', but the loss of blocks is significant. Significant whitespace makes code ugly sometimes. "There should only be one way to do it." is wrong. Basically, Ruby values _flexibility_ above all else, and Python introduces unnecessary rigidity, which feels 'wrong' to a Rubyist.

And that's another difference between the two communities: Gems are always installed through Rubygems, no exceptions. Distribution's packaging systems (I'm looking at you, Debian) have always just screwed things up, and so Rubyists tend to just remove any system Ruby, install rvm from source (which entails running one bash script), and doing it all through there. Then, everything works great.

Re:Ruby is beautiful (but I'm moving to Python) by sigzero on Sunday November 28, 2010 @02:24PM (#1948001)
That quote isn't quite correct. The PEP quote is:

"There should be one-- and preferably only one --obvious way to do it."

The "obvious" portion of that makes it a little less strict than your quotation. I think it is a "good" axiom to try and aim for. The problem is people think differently and you can't force that really.

I like Perl, where almost anything goes, though. :)

Re:Ruby is beautiful (but I'm moving to Python) by jamesbritt on Sunday November 28, 2010 @03:39PM (#1948223)

    The "obvious" portion of that makes it a little less
    strict than your quotation.
The "obvious" portion is what makes it such a problem. If you have one library for a task, then the choice really is obvious. If you have two libraries, each very good but offering different takes on servicing a task, then "obvious" becomes a problem, and if "obvious" is a goal then one of those libraries becomes a problem.

"Obvious" is a problematic goal much like "fair" and "equal" are problematic goals in society. You end up sacrificing much that is good and valuable in pursuit of what is often a vague and situational ideal.

Re:Ruby is beautiful (but I'm moving to Python) by j_baker on Sunday November 28, 2010 @09:27PM (#1949141)
Yes, obviousness is subjective. However, we're discussing what makes a programming language good. Goodness is subjective too, is it not?
Re:Ruby is beautiful (but I'm moving to Python) by jamesbritt on Sunday November 28, 2010 @10:06PM (#1949225)
The problem is not that it's subjective, it's that it leads to unintended conflicts when you try to enforce it.
Re:Ruby is beautiful (but I'm moving to Python) by masklinn on Monday November 29, 2010 @02:37AM (#1949703)
> Yes, obviousness is subjective.

The subjectivity of the obviousness being nicely handled by the next stanza:

> Although that way may not be obvious at first unless you're Dutch.