News for hackers. Stuff that matters.
Re:Ask HN: Why Python over Ruby? by CyberFonic on Wednesday July 01, 2009 @03:58AM (#682268)
For me it's very simple !

I can READ other people's Python code with greater ease than Ruby, Java, C#, C++ or even C. At the end of the day, the quicker I can assimilate library code the quicker I can use it well and the quicker the module gets completed and fully tested. Of course, with Google and Eric Raymond raving about it, the confidence factor increased further.

Re:Ask HN: Why Python over Ruby? by gaius on Wednesday July 01, 2009 @05:44AM (#682348)
This is a cultural issue. In the Ruby (or Perl) community, if you use obscure language features to do a common task in a single line of code, you will be worshipped as a god. In the Python (or Tcl) community, you will be viewed with suspicion. Not that Python doesn't have one-liners (e.g. comprehensions) - just that everyone agrees which ones and when and how to use them.
Re:Ask HN: Why Python over Ruby? by knowtheory on Wednesday July 01, 2009 @05:52AM (#682357)
I've been working in Ruby for 3 years now, and i can promise you that unclear code is very much not appreciated by not only the people i work with, but all of the open source projects i'm involved with.

It is true that Ruby gives you a lot of rope. People with good design sense appreciate that your code should not be too clever.

Re:Ask HN: Why Python over Ruby? by swombat on Wednesday July 01, 2009 @07:24AM (#682431)
Agreed. The ultimate goal is clarity. Everything else is subservient to it.
Re:Ask HN: Why Python over Ruby? by jamesbritt on Wednesday July 01, 2009 @01:43PM (#683031)
"This is a cultural issue. In the Ruby (or Perl) community, if you use obscure language features to do a common task in a single line of code, you will be worshipped as a god."

Just which Ruby community is this? None that I associate with, that's for sure.

To the people who voted the OP up; is it because of your own first-hand experience with other Rubyists? For all I know there are clusters of Ruby coders who encourage obscurantism, but I've not encountered them (though I've been part of debates over just what constitutes "obscure").

Re:Ask HN: Why Python over Ruby? by gaius on Thursday July 02, 2009 @02:34AM (#683977)
In Perl you have "wizards" and in Ruby you have "rockstar ninjas"... No other language communities do this.
Re:Ask HN: Why Python over Ruby? by carbon8 on Thursday July 02, 2009 @02:58AM (#683994)
Re:Ask HN: Why Python over Ruby? by Paddy3118 on Sunday July 05, 2009 @03:29AM (#688024)
Here are some stats from google on the relative use of obfuscation for perl, python and ruby:

<pre> Weighted use of Search Term Hits Search Term Hits obfuscation

"obfuscated perl" 1390 "perl programming" 164000 0.85% "obfuscated python" 234 "python programming" 157000 0.15% "obfuscated ruby" 269 "ruby programming" 133000 0.20% </pre>

If I use the word golf, I get: <pre> Weighted use of Search Term Hits Search Term Hits golf

"perl golf" 1780 "perl programming" 164000 1.09% "python golf" 171 "python programming" 157000 0.11% "ruby golf" 547 "ruby programming" 133000 0.41% </pre>

This is of ccourse, the same statistics that fueled the last financial meltdown :-)

Re:Ask HN: Why Python over Ruby? by whiskeyjack on Wednesday July 01, 2009 @03:52PM (#683254)
You'll get that in a Perl Golf competition but the trend these days it towards much more readable and maintainable code. Which is why we have things like Moose (a better way to do objects).