Live data from Hacker News

The Incredible Growth of Python

stackoverflow.blog

171–180 of 224 posts

Re: The Incredible Growth of Python

#171
post #11
post #10

Yes , but the young contenders already exist. If Nim gets more traction , over time it may replace Python.

Don't hold your breath. Nim doesn't have the kind of ecosystem, and hasn't shown signs of having one.

I'm curious what the ecosystem for Python looked like in ~1999. Did it show signs of having the ecosystem it has now in those years?

I'm certain that almost everyone dismissed it due to its syntax (there are still people out there that dismiss it because of that).

Re: The Incredible Growth of Python

#172

Earlier quoted context omitted.

But be sure to use Pip into this year's flavor of virtual environments rather than globally, since you might have multiple projects that need different versions of the same package. And be sure to run the right version, I've seen situations where a computer had python 2 and 3 installed, somehow python3 became the default when running "python" but if you ran "pip" you'd get dumped into the old version. And if your edi…

Honestly, virtualenv works. Every single time. I use virtualenvwrapper because I find it and the aliases it provides useful. I'll stop using virutalenv when it actually becomes a hindrance. I know venv exists, but I have precisely zero incentive to use it when virtualenv works and allows me to get on with what I actually want to do.

virtualenvwrapper, virtualenv, venv...

This is kinda discouraging :)

Re: The Incredible Growth of Python

#173
The French grande école d'ingénieur in CS & applied Maths in which I study made the switch from Ada to Python as the first language teached last year. Before that I saw all the French Higher School Preparatory Classes starting to teach C.S. with Python3 in 2013.

So I am happy to see that many of France's higher education establishments made the right move.

Re: The Incredible Growth of Python

#174
post #139

I know I shouldn't feel that way, but as a developer who loathes Python, this is a painful read. I start to feel that if I can't fight the trend then I should join it. But then every time I try Python, I feel such unease because of the low performance and the dynamic typing. It's just something I don't understand... this is really depressing to me.

I hate Python also - supposed to be this magic low barrier to entry language, but as soon as I want to do anything of substance I start encountering just as much complexity as any other language, only the documentation is worse, and the libraries I want to use are in one way or another a nightmare. I don't buy the hype, use it reluctantly when I have to.

Re: The Incredible Growth of Python

#175
post #96
post #59

As someone who has been using Python since 2000 roughly, another minor factor (besides the obvious data science factors) might also be the decline in Ruby. Ruby (and Rails) growth in the 2005-2010 era, seemed to noticeably put the brakes on Python's previous growth up till that point. Back then Ruby had all the boosterism/hype and Python was the supposedly "boring/legacy" option. Even now, Python's growth doesn't see…

I don't think hype is the main factor. Ruby's decline is due to its narrow focus on web development and Rails in particular. Whilst there certainly are gems covering other areas of computing Ruby never seemed to diversify the way Python has. With Node.js eating Ruby's lunch in the web development sphere Ruby is left looking like the single-commodity Venezuelan economy. Let me add that I think Rails is a fantastic pie…

I think besides Rails, Ruby is also heavily used in DevOps, e.g. Chef, Puppet, etc.

I personally prefer using Ruby for testing & Selenium as well.

Re: The Incredible Growth of Python

#176

Python 2 advocates were quite firm in telling us that Python 3 and its incompatibility with Python 2 had killed Python and people would abandon Python altogether in droves for other languages. This post is suggesting the opposite, that Python is more healthy than ever and growing incredibly fast.

I feel like it's still a better idea to migrate back to python 2.7 and update it to match python 3 features in a backwards compatible way. At the very least there needs to be a way to interop between python 2 and python 3 code without modifying the python 2 code.

I haven't used python for a while though. Maybe they found a solution to the python 2/3 problem already.

Re: The Incredible Growth of Python

#177
post #164

Earlier quoted context omitted.

I don't really like virtualenv because you have to activate it to do anything and deactivate it if you want to go to another project or work on something unrelated. I'd much rather it work by the project directory so I don't have to worry about the activation part (this is why Node's package manager, for all its issues, is great: you install in a local folder unless you explicitly supply the -g flag). At least I shou…

Ah yes. Local by default would be nicer.

I still think that the "project" directory is best, but I'm glad that Pip is moving to local-by-default in any case. It won't take away from the necessity of virtualenv for cases of different dependency versions, e.g. Django 1.4 and 1.10, I think, unfortunately, but it's definitely better than global by default.

Re: The Incredible Growth of Python

#178
post #165
post #139

I know I shouldn't feel that way, but as a developer who loathes Python, this is a painful read. I start to feel that if I can't fight the trend then I should join it. But then every time I try Python, I feel such unease because of the low performance and the dynamic typing. It's just something I don't understand... this is really depressing to me.

You might find Nim[1] to be a worthy alternative. I primarily see it as a compiled Python with good performance and static typing. 1 - https://nim-lang.org

Oh, usually I am wary of trying new languages but this looks very cool indeed.

Re: The Incredible Growth of Python

#179
post #130

Earlier quoted context omitted.

I think you're right, the biggest pain for a general developer for Python is determining which package manager to use. I'm thankfully insulated from it a bit due to using Docker for a lot of my development, but I hate the fact that Pip won't install to your home/project directory unless you coax it to (and sometimes still won't even if you give it all the proper environment variables), and I think virtual environment…

I like python3 -m venv myfolder; source myfolder/bin/activate; It is the easiest way to use python3 because even fedora (one of the more bleeding edge) likely won't finish migrating 2 to 3 in current year. Why do you not like venv? What could be done better?

The problem is not for people like you who already decided, the problem is for beginners who aren't aware of some of the 'envs' and are looking for recommended practices.

Re: The Incredible Growth of Python

#180
post #171
post #11

Earlier quoted context omitted.

Don't hold your breath. Nim doesn't have the kind of ecosystem, and hasn't shown signs of having one.

I'm curious what the ecosystem for Python looked like in ~1999. Did it show signs of having the ecosystem it has now in those years? I'm certain that almost everyone dismissed it due to its syntax (there are still people out there that dismiss it because of that).

> what the ecosystem for Python looked like in ~1999

Very small. The language was not popular and many people claimed a community project could not overtake languages backed by companies. Same for the Linux kernel.

Post reply on HN