Live data from Hacker News

Python overtakes Java to become the second-most popular programming language

techrepublic.com

61–70 of 357 posts

Re: Python overtakes Java to become the second-most popular programming language

#61
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

One of the first things I made in python, over a decade ago, was a web scraper hooked up with an OCR-software suite to harvest a lot of data on the web. I imagine that's sort of a proto-version of some of the kinds of machine vision tasks that are done with it today.

Re: Python overtakes Java to become the second-most popular programming language

#62
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

Just curious, what other server side languages do you feel have a better library ecosystem than Node/JS?

Java

Re: Python overtakes Java to become the second-most popular programming language

#63
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

i think flask and django are quite popular.

Re: Python overtakes Java to become the second-most popular programming language

#64
post #3

Python is certainly popular, but the TIOBE Index ranking is not credible. Quote: "The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. " According to this index, "Logo", beats out Rust, Scala, Kotlin, and Cobol. I cannot remind myself when I last time saw a course, book or even any source code covering Logo. This must be some very poorly vetted, automatically collected…

They rank C number 1. There is no way that reflects reality. JavaScript is easily number one for reasons that will surprise nobody. On the WakaTime public leaderboards it dominates to such an extent that I think programmers spend more time writing JavaScript than all the other languages combined. I don't know if that generalizes to the broader population, but it gives one an idea how ubiquitous it is.

Was going to say the same thing. Considering total amount of running code, yeah C might be #1 but there's no way it's the most "popular".

Re: Python overtakes Java to become the second-most popular programming language

#65
post #2

We need to start ranking languages based on what people use them for. Python is certainly #1 in ML, for example, but far from #1 in web. I had a "which stack" argument with a client recently for a web server processing tons of data. He wanted to use Node (which I hate, but also use when performance doesn't matter because TypeScript is so good). I showed him that the Node library ecosystem is actually pretty weak (man…

Just curious, what other server side languages do you feel have a better library ecosystem than Node/JS?

I'm actually surprised by this sentiment whenever I see it. Node still hasn't caught up in coverage. It feels like the Node community is really proud of their number of packages, which, given the likely median size of each package, is a poor proxy for actual stability and completeness.

Re: Python overtakes Java to become the second-most popular programming language

#66
post #12
post #6

Earlier quoted context omitted.

That C is supposed to be the most popular language makes the whole ranking questionable. The stackoverflow ranking[1] corresponds much more to my own experience in real life. [1] https://insights.stackoverflow.com/survey/2020#most-popular-...

On the other hand the stackoverflow survey might show that C is so simple that programmers using it don't need stackoverflow :)

C is simple? I don't find it simple compared to Python or other web langs.

Re: Python overtakes Java to become the second-most popular programming language

#68
post #6

Earlier quoted context omitted.

That C is supposed to be the most popular language makes the whole ranking questionable. The stackoverflow ranking[1] corresponds much more to my own experience in real life. [1] https://insights.stackoverflow.com/survey/2020#most-popular-...

I'd argue that StackOverflow shows what developers have the most questions about. This means that ranking is influenced by the amount of experience people have in the programming field, and leads to languages people commonly use as their first languages showing higher. Besides that it's also influenced by how good the language is at explaining to the user what is going wrong. Clear error messages mean the user uses S…

The stackoverflow ranking we are talking about is the result of a survey. It's not influenced by amount of experience. Experienced developers don't get greater or lower weighting in that survey.

Re: Python overtakes Java to become the second-most popular programming language

#69
post #40

Earlier quoted context omitted.

I’ve used PyCharm from time to time and I find it great but I kind of feel like you need a different approach. Coming from Java it made sense but Python is a different mindset once you get into it. I think you’re far better off treating Python as a highly structured scripting language and using an advanced text editor. I’ve come to believe that these very powerful IDEs are a kind of a window dressing that makes the m…

Although arguably a more 'difficult' language I sleep much better at night when using Rust, because Python is always in a hurry to get a wrong program running. So then, one has to test like hell. So I feel I'm still ahead of the game.

It’s horses for courses. I’d never use Python for the kind of thing that rust is for. At the same time, I’ve never had occasion to use rust for the stuff I do.

EDIT - just want to add: I'm not au fait with the specifics of Rust but I presume from what I've heard about it that it also supports my position, as an advanced language, that the features you need are in the language so a heavy-weight IDE isn't so necessary.

Re: Python overtakes Java to become the second-most popular programming language

#70

Earlier quoted context omitted.

I love dataclasses, incredibly simple to use but so useful. My only gripe is no first-class support for "__slots__".

I have a decorator to add support for slots: https://github.com/ericvsmith/dataclasses/blob/master/datacl... (although I'll admit I haven't tested it in a while). The reason it's not an option by default is because it would be the one case where the decorator would have to return a new class, and I didn't want to do that on the first version. As it is, @dataclass just modifies an existing class. I might bite the bull…

I believe this is the example where dataclasses could have supported __slots__ better with a metaclass?

Thanks for working on dataclasses :) - as I said, it's my #1 new feature in Python.

Post reply on HN