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-...
C is the most popular language for embedded systems development by a huge margin. StackOverflow is also a place for asking questions. C is a relatively simple language and one which has been around for longer than most developers have been alive. There may just not be much left to ask about it.
Python overtakes Java to become the second-most popular programming language
91–100 of 357 posts
Re: Python overtakes Java to become the second-most popular programming language
#92Earlier quoted context omitted.
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.
Maybe that would have worked better with a metaclass. But still, I think not using a metaclass is the more flexible design. Maybe I'll add the "add_slots" behavior into the @dataclass decorator in 3.10, even though it would need to return a new class. At least it could be well documented, and I doubt it's a concern for most people. > Thanks for working on dataclasses :) - as I said, it's my #1 new feature in Python.…
I have diligently converted to f-strings but it doesn't give me new expressibility like I feel dataclasses do, just convenience :)
Re: Python overtakes Java to become the second-most popular programming language
#93Earlier quoted context omitted.
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.
What this means is we have no idea if the sample of programmers is representative of the worldwide programmer population.
I'd argue that C# and other Microsoft languages are vastly under-represented in the SO survey, but we have no way of knowing if that's true.
Re: Python overtakes Java to become the second-most popular programming language
#94Earlier quoted context omitted.
Static typing can be a bitch to get right. There are quite a few weird cases where it would be natural to write without types, but tricky once you introduce static typing and want to keep pleasing the TypeScript type checker, usually involving generics.
Types don’t affect runtime performance unless you’re changing the algorithm. Maybe you’re arguing that correctly annotating certain algorithms is harder than switching to a slower but easier-to-annotate algorithm, but I’m very skeptical of this, especially since (in my experience) well-typed programs seem to be more efficient (easier for the compiler to optimize types that don’t change at runtime than those that do).
Re: Python overtakes Java to become the second-most popular programming language
#95Um... nobody _loves_ Java. We use it, but we don't love it.
Re: Python overtakes Java to become the second-most popular programming language
#96Personally I believe this is exactly why Python is dominant in ML now. We are harvesting after 20 years of academics happily writing libraries and tools for academic work in Python. :-)
So I have no idea how the article got their numbers, but I'm not at all surprised to see the sheer number of people programming in Python exploding.
Re: Python overtakes Java to become the second-most popular programming language
#97> Python has long been a top-loved programming language, as has Java Um... nobody _loves_ Java. We use it, but we don't love it.
Re: Python overtakes Java to become the second-most popular programming language
#98Earlier quoted context omitted.
You are probably using TypeScript. Try vanilla Node/JS if you want a faster Rails.
What does typescript have to do with speed?
Re: Python overtakes Java to become the second-most popular programming language
#99Re: Python overtakes Java to become the second-most popular programming language
#100> Python has long been a top-loved programming language, as has Java Um... nobody _loves_ Java. We use it, but we don't love it.