News for hackers. Stuff that matters.
Re:Why Python is Important for You by espeed on Saturday February 11, 2012 @03:37PM (#3580091)
Library support.

For example, there really is no Ruby equivalent to SciPy, NumPy, Matplotlib or NLTK (http://news.ycombinator.com/item?id=3179370). However, there has been some effort in the Ruby community to begin the process of developing some of these libraries (see SciRuby http://news.ycombinator.com/item?id=3180369). but the Python libraries have been in development for years so this will be no easy feat.

Re:Why Python is Important for You by wging on Sunday February 12, 2012 @04:40AM (#3581473)
As a user of Sage (http://sagemath.org/) I can appreciate that. Nice to have what you need at your fingertips.
Re:Why Python is Important for You by berntb on Saturday February 11, 2012 @03:51PM (#3580124)
>> Library support.

Isn't that rather an argument for Java or Perl?

What I don't get is the cheerleading for Python? Ruby has/had something similar going with Rails. I mean, the article even notes that it is a middle of the road choice, optimised to not be extreme.

Re:Why Python is Important for You by amcintyre on Saturday February 11, 2012 @05:15PM (#3580331)
I suppose it depends on the libraries and what you want to do with them. I personally find the Python REPL in combination with matplotlib, NumPy and SciPy to be extremely handy for poking around in small/medium-sized data sets and debugging numerical apps. Python "stays out of my way" a lot better than Java or C++ would for this ad-hoc kind of exploration.

I'm sure there are probably tons of nice alternatives to Python for this kind of work, and there are tasks that other people need to do for which trying to use Python and some readily-available libs just wouldn't be sufficient. I only suggest Python to people whom I know are doing work where it would be helpful; there's no point in pushing it as a one-size-fits-all solution.

Re:Why Python is Important for You by espeed on Saturday February 11, 2012 @03:58PM (#3580138)
Yes, Java and Perl have large libraries, but wging asked what he would be missing going from Python to Ruby -- missing libraries is the big one.
Re:Why Python is Important for You by pjscott on Saturday February 11, 2012 @03:54PM (#3580129)
It's an argument for any language that has libraries available, weighted by your need for those particular libraries and their quality.
Re:Why Python is Important for You by achompas on Saturday February 11, 2012 @04:01PM (#3580144)
Right, in addition to the usual efficiency concerns (can you afford that 0.5-1s of JVM spinup? do you need mature multiprocessing libraries?)
Re:Why Python is Important for You by lelele on Saturday February 11, 2012 @07:59PM (#3580699)
> Isn't that rather an argument for Java or Perl?

No, because then you'd have to stand either Java or Perl. If you are looking for a language to learn beyond a quick hack, then the language matters more than its libraries. I know Perl, and everybody knows what a boon CPAN is, but still for scripting tasks I have switched to Python. It would have made me feel sick to keep programming in Perl.

As I had to choose between Python and Ruby too, besides the library thing, I picked Python because Ruby seemed like it was trying too hard to be powerful and expressive, to the detriment of clarity. I didn't want to invest too much time in learning a scripting language. It's just for scripting, you know, it's not meant to accomplish much. If I need a powerful and expressive language, then I just reach for the big guns.

Re:Why Python is Important for You by jamesbritt on Saturday February 11, 2012 @08:21PM (#3580737)
Isn't that rather an argument for Java or Perl?

Or JRuby.

Re:Why Python is Important for You by pbreit on Saturday February 11, 2012 @04:56PM (#3580293)
No, it's an argument for python over ruby.