Live data from Hacker News

Ask HN: Why did Python win?

news.ycombinator.com

31–40 of 856 posts

Re: Ask HN: Why did Python win?

#31
I first encountered Python around 2000. At the time Perl was more popular in the circles I frequented, and TCL probably about as popular as Python (eggdrop[1] notwitstanding), but Python was growing steadily. I encountered Ruby in the late '00s (as others have noted it made its english-language debut almost a decade after Python started) and Lua was another contender during this time.

My memory is that, at least outside of the web/RoR world, Ruby at no point as popular in the US as Python. Lets take, say 2005 as a point that Ruby was really gaining popularity due to Rails: at this point I was already seeing internal tools that previously would have been written in Perl being written in Python.

Python just seems to have maintained a certain momentum, and I'm not sure why, but if I had to guess:

1. The syntax is almost a dead-ringer for pseudo code. The first time I encountered Python, I fixed a bug in an open-source project having never seen Python before. I recall two different CS programs switched to Python from Scheme for exactly this reason.

2. It was designed to glue C together. Other languages were too (TCL and Lua; Perl primarily interfaced with the outside world in the same way shell does, with pipes).

3. A kitchen-sink approach to the standard library helped it a lot for the first 20 years of its existence. CPAN was sui-generis at the time for installing libraries, so the more you could do without relying on 3rd-party libraries, better off you were.

1: https://en.wikipedia.org/wiki/Eggdrop

Re: Ask HN: Why did Python win?

#33
The other comments answer this well.

But I'll add Ruby on Rails and a lessor extent Ruby was pushed by hipsters hard and people who didn't program but were internet explorers.

Python just was. You'd never have not considered it a language.

I always thought having Python 2 and 3 held it back a decade. The fact it won despite that means to me it was never a contest.

Re: Ask HN: Why did Python win?

#34
In python you just write your business logic. For any "low level"/non-business aspect, you already have great stdlib and rich ecosystem of third party packages.

People care delivering features rather than design and build the best in class architecture.

I wish javascript adopt the same python philosophy, rather the actual "spaghetti mess".

Re: Ask HN: Why did Python win?

#35
Ruby was never that great of a language. Rails was much better than any alternative, though, and it brought Ruby along with it. Basically every company using Ruby chose it because they wanted to use Rails.

The main thing that has led to the decline of Rails is the rise of no-HTML-just-an-API backends. Your web frontend development stack is more likely nowadays to be, first you pick between React or a similar framework, and then the backend just sends API data and doesn't mess with HTML. This makes for better websites, and it makes joint web and mobile development easier too, because you're going to have to build that API anyway for your mobile app.

Re: Ask HN: Why did Python win?

#37
JS is a ridiculous language. Ruby is another ridiculous language.

Python has some very frosty deep roots in PL theory and practice, and it's a billion times better than C and a trillion times better than C++. (Java was and still is uncool.)

Python became popular because it was so much easier and more fun than the other languages and it's (very serious) problems weren't as obvious back when the BDFL was running things, or until your project gets large.

(We should all just use Lisp, ffs.)

Re: Ask HN: Why did Python win?

#38

The other comments answer this well. But I'll add Ruby on Rails and a lessor extent Ruby was pushed by hipsters hard and people who didn't program but were internet explorers. Python just was. You'd never have not considered it a language. I always thought having Python 2 and 3 held it back a decade. The fact it won despite that means to me it was never a contest.

Yes, an aspect I never thought of ‘till now is that Python is/was cool but never trying particularly hard to look it. Understated British humor may have something to do with that.

Re: Ask HN: Why did Python win?

#39
post #31

I first encountered Python around 2000. At the time Perl was more popular in the circles I frequented, and TCL probably about as popular as Python (eggdrop[1] notwitstanding), but Python was growing steadily. I encountered Ruby in the late '00s (as others have noted it made its english-language debut almost a decade after Python started) and Lua was another contender during this time. My memory is that, at least outs…

I think it upset the Perl hegemony in part because of the enterprise infatuation with object orientation. Perl got a lot of flak from the Java/XML crowd (“Perl’s not a real language—it’s not object oriented!”).

You could kind of write Java in Python, and thus a certain kind of enterprise techie couldn’t dismiss Python as “just” a scripting language.

Re: Ask HN: Why did Python win?

#40
Because I loved C, liked C++, but hated writing complex programs in either language (circa 1995) and somebody said "try python, it's object oriented and easy to use" and I still use it today as my preferred language for a wide range of tasks. it just feels like a macro language on top of C/C++ in some ways. Numeric Python, then numarray, and numpy transformed my way of working with multidimensional data.

Perl: could not stand the syntax or the language philosophy

C++: too many footguns

TCL: a bit primitive for what I wanted to do

Java: ugh. just ugh.

Go: not targeted at my use cases

Post reply on HN