News for hackers. Stuff that matters.
Re:Python vs Ruby, slightly more in-depth by nudded on Tuesday August 04, 2009 @11:08AM (#741338)
I quite hoped to be reading an in-depth comparison, but this article merely scratches the surface. What I would like to see from an in-depth article is actual code implementing stuff, showing the features a language has (and comparing them with each other).

I don't think this is a good article nor a useful one.

Re:Python vs Ruby, slightly more in-depth by Torn on Tuesday August 04, 2009 @11:26AM (#741363)
+1, the article is a 10-minute gloss at best and has virtually no content or analysis.

I mean come on, just look at the 'conclusion': These languages are interchangeable, especially for building web application. Neither are more awesome. They get the job done and they make programmers happy.

Re:Python vs Ruby, slightly more in-depth by davidw on Tuesday August 04, 2009 @11:35AM (#741390)
Having used both professionally, I think that's a pretty good conclusion, actually.
Re:Python vs Ruby, slightly more in-depth by Xichekolas on Tuesday August 04, 2009 @12:01PM (#741454)
I'd agree with the conclusion, but I'd also agree with nudded - the article is nearly free of useful content. Listing popular libraries of each language does not a comparison make.
Re:Python vs Ruby, slightly more in-depth by Torn on Tuesday August 04, 2009 @12:03PM (#741461)
It's a fair (and quite reasonable) conclusion but the article in no way supports it.
Re:Python vs Ruby, slightly more in-depth by tetha on Tuesday August 04, 2009 @06:06PM (#742313)
In fact, Python and Ruby both are very high level, multiparadigm (oop, procedural, functional, ...) dynamic languages and the difference between them is pretty small. One is a bit more perlish, and one is focussing on a clear, deterministic syntax. Thus, I think the conclusion easily generalizes.

As one wise man once said: Wether you prefer Python or Ruby depends mostly on which one you met first.

Re:Python vs Ruby, slightly more in-depth by didip on Tuesday August 04, 2009 @10:04PM (#742669)
It is intended to be a gloss over of functionality that I use frequently. If I want to write much more in-depth comparison then I would have written these (which I may in the future, these kind of blog post takes time to write):

* Beautiful Soup vs Nokogiri/HPricot * Fabric vs Vlad * Paste vs Mongrel performance using proxy pass behind Nginx * (I am not going to write Rails vs Django)

Re:Python vs Ruby, slightly more in-depth by roder on Tuesday August 04, 2009 @12:44PM (#741550)
The conclusion isn't wrong, but the content is weak for the evaluation.

At this point in the Ruby VS Python conversation, my expectations for an evaluation are benchmarks of code that is algorithmically identical. If one language provides for a better algorithm than the other, I'd like to see those differences as well.

Re:Python vs Ruby, slightly more in-depth by gaius on Tuesday August 04, 2009 @11:59AM (#741444)
Also he's rather overlooked that the web is a tiny corner of the Python world. Ruby has nothing that's even close to NumPy/SciPy.
Re:Python vs Ruby, slightly more in-depth by didip on Tuesday August 04, 2009 @01:02PM (#741594)
Poster here,

I intentionally downplay what Python has to offer. It is true that Python has greater breath than Ruby in terms of communities, especially outside web world.

If I started to mention those, it will make Ruby looks less capable (or I would naturally skew the article biased towards Python).

Re:Python vs Ruby, slightly more in-depth by carbon8 on Tuesday August 04, 2009 @02:49PM (#741832)
Hopefully you recognize that you misrepresented Ruby throughout the post, in some parts quite dramatically and strangely; the "Modules (for Web Apps)" section is a remarkable mess, listing a random handful of libraries, some of which have nothing directly to do with web development, some of which are components of others, and all representing only a fraction of what's available.

I also see that you were apparently unaware that lambda exists in Ruby until someone in the comments told you, which makes me seriously doubt that you've even used the language at all.

Googling around for info on a language with which you have limited or quite possibly no experience is not a basis for purporting to present an "in-depth" comparison, nor does it qualify you to make claims about capability of a language.

Re:Python vs Ruby, slightly more in-depth by didip on Tuesday August 04, 2009 @05:01PM (#742185)
If you read both paragraphs in the Web App section, I made almost immediate comparison between the two:

* (Django, Pylons vs Rails, Merb) * (web.py vs sinatra) * (Beautiful Soup vs HPricot) * (Paste vs Mongrel) * (Moneta vs Shove) * (Psyco vs RubyInline)

I would defend myself and say that all these modules are useful for web development. For example:

* You never had to scrape other site's HTML and parse the elements for useful information?

* You never curious about hot-and-shiny key value databases for work?

* You never felt like a certain function could have been optimized and make your web app faster?

Especially in these two paragraphs, I actually use all the ruby modules I mentioned in those paragraphs (minus merb & DataMapper), and I use all the Python modules mentioned as well.

For other non-web related or modules that I haven't use frequent enough, i set it aside and "downplay" it in the article.

Lastly, no amount of blog post could do justice on these two languages. The best way to know about these languages is to use it to hack on something.

Re:Python vs Ruby, slightly more in-depth by carbon8 on Tuesday August 04, 2009 @11:15PM (#742769)
"I would ... say that all these modules are useful for web development."

It's very unusual for a web developer to work directly with RubyInline. It's quite a stretch to classify it as a "web development tool" or significantly related to "Web Apps."

"I made almost immediate comparison between the two"

It's not even close, though. The Ruby analogue to WSGI and Paste is Rack, not Mongrel. RubyInline and Psyco are very different things. HPricot is one of multiple options for HTML parsing in Ruby (nokogiri, scrapi, scrubyt). There are multiple JSON options for Ruby (including yajl bindings), and half the paragraph is about simplejson vs python-cjson, which has nothing to do with Ruby. There are also multiple Ruby templating systems available (erb, erubis, haml, markaby, liquid), but you only mention python templating enigines.

And all of these are just a small subset of libraries that you can have in a typical web app, such a small subset that they aren't really representative of anything.

"You never curious about hot-and-shiny key value databases for work?"

There are a whole slew of libraries for "hot-and-shiny" data stores (there are at least 5 Ruby libraries for couchdb alone) and it's not uncommon for people to roll their own. I don't think shove even supports anything "hot-and-shiny" like couchdb, tokyo, cassandra, etc.

"The best way to know about these languages is to use it to hack on something."

This is very true.

Re:Python vs Ruby, slightly more in-depth by jrockway on Tuesday August 04, 2009 @02:42PM (#741819)
Why is this downmodded to -2?

"intentionally downplay" is a bad choice of words, sure, but I think he means "am only comparing web stuff". Most web developers do not care about SciPy. Most research scientists don't care about web frameworks.

(Edit: and this is downmodded too? Did Programming Reddit change their color scheme again?)

Re:Python vs Ruby, slightly more in-depth by ubernostrum on Tuesday August 04, 2009 @06:38PM (#742370)
Well, I downmodded that comment because I took it as the author saying he'd deliberately left out information so as to support the conclusion he wanted to reach. Which is both dishonest and at odds with the stated goal of an "in-depth" look at the languages.
Re:Python vs Ruby, slightly more in-depth by didip on Tuesday August 04, 2009 @09:58PM (#742661)
You seemed to be missing the word slightly in the blog title =)
Re:Python vs Ruby, slightly more in-depth by didip on Tuesday August 04, 2009 @03:39PM (#741938)
Thank you for clarifying, I am indeed only comparing web development tools.
Re:Python vs Ruby, slightly more in-depth by DocSavage on Tuesday August 04, 2009 @02:01PM (#741731)
The PLEAC codebase was new to me. It reminds me of the idiomatic python reference (http://python.net/~goodger/projects/pycon/2007/idiomatic/han...) I've found very useful, but haven't delved into PLEAC to see if the coding examples are truly idiomatic.

Python > http://pleac.sourceforge.net/pleac_python/index.html

Ruby > http://pleac.sourceforge.net/pleac_ruby/index.html

Coverage varies depending on the language.