Live data from Hacker News

Ask HN: Why did Python win?

news.ycombinator.com

81–90 of 856 posts

Re: Ask HN: Why did Python win?

#81
As a self-taught programmer who started learning around 2015, Python was the least intimidating to learn.

Although I'm a proficient JavaScript programmer now, the idea of curly brackets were genuinely intimidating. Just something about that made the program seem more complex than necessary, and Python seemed really clean.

I also think the book `How to Think Like a Computer Scientist` is a large part of Python's success for beginners. In the early days, it was literally the only programming learning book that clicked for me, and it was in Python. Up until then, programming still felt esoteric.

Re: Ask HN: Why did Python win?

#82
I think the middle growth was driven by the "second best at everything" meme.

Python is not the best at most things but a close second or third usually (system scripting, data munging, web programming etc), meaning it is easy to get into the language for one use, then continue using it for other things.

Ruby or Go feel like something that ended up specializing in web, so even if they are better suited to it than Python, Python benefits from more cross-pollination.

This will be especially true for small teams, where one language has to cover all bases, and also where "areas" of programming overlap. Need a REST server to serve up MP model results? By virtue of being pretty close to best for both areas, it is actually possibly the top choice overall.

Re: Ask HN: Why did Python win?

#84
I think community played a huge role... the language basically want viral in terms of people sharing code, libraries, tutorials, and commentary.

Timing may have helped too. My impression is that I started hearing about Python around the same time that the devs at my workplace were just waking up to open source, and Python was something that I could try out at home without anybody's permission.

Re: Ask HN: Why did Python win?

#85

I have never encountered a language as easy to pick up and do cool stuff with as Ruby is. Even after years of working with it I still find Python to be a bit of a mess. I think there was an article years ago about how some people liking a product means it is going to die? I'm pretty sure that is me for technology.

https://arstechnica.com/science/2015/12/certain-customers-sp...

It is off topic to the python/ruby discussion, but I wonder if there is a way to discover if I am one of these people.

Re: Ask HN: Why did Python win?

#87
This has been touched on in other comments, but I think it bears highlighting.

The ability of python to integrate with C/C++ code went a long way to making it a long term viable platform. If you needed scripting you could code in regular python. If you needed advanced control of hardware in your scripts, you could write a python extension in C/C++ to gain access to that hardware. If you needed high performance, or high parallelism, you could likewise create an extension to solve those problems.

In this way Python was the best of both worlds. Elegant scripting which could be combined with blazing performance and low level hardware interfaces. This aspect of the language allowed it to have a wide footprint (as opposed to just the browser) and to leverage legacy libraries effectively - e.g. BLAS.

I personally did crazy stuff like: "embed a python interpreter in a C program, to use python scripting within the program" back in like 1999.

Re: Ask HN: Why did Python win?

#88
I would say Python won because IIRC it was meant to be a glue language between C libraries (something between C and bash) from the beginning.

This made it fairly easy for anyone to provide Python bindings for existing C libraries, so users could enjoy a large number of packages in order to get stuff done quickly.

Then of course, numpy/pandas etc.

Re: Ask HN: Why did Python win?

#90
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…

Before Python got popular, Perl was the most similar popular language. Once I encountered Python, I felt, this is Perl, but done right.
Post reply on HN