r/Python • • Nov 13 '20

News Python swallows Java to become second-most popular programming language

https://www.theregister.com/2020/11/12/python_swallows_java_to_become/
2.3k Upvotes

205 comments sorted by

View all comments

585

u/[deleted] Nov 13 '20

C is #1 according to this article, if anyone wants the TL;DR.

A quote at the end that I found interesting:

"And Python's 'slowness' is overstated. Who cares about some other language that's a few nanoseconds faster if you spend hours (or days or weeks) trying to figure out how to use it? A human's time is more valuable than a computer's."

I think this quote just about sums up the creator's POV on other languages, specifically Java. I don't think he's really comparing Python to something like C/C++ because those languages will run circles around Python with more than just "nanosecond" margins if used properly. Not to mention other languages like C/C++ are mature and are used to build projects that last for decades, even longer. I still see companies struggling to move their technologies from Python2 to Python3 due to it's end of support.

I love Python and use it often, but in certain fields people have to care about speed, performance and stability. Sometimes it's a matter of life and death. I wouldn't even trust Java for those types of tasks tbh let alone Python. It's easy to learn and use and it's fast enough to do most tasks that people need, but I still think languages like C/C++ are superior.

1

u/Smallpaul Nov 13 '20

I find it weird that you think that one tool is "superior" to another. Screwdriver or hammer: which is superior?

0

u/[deleted] Nov 14 '20

[deleted]

1

u/Smallpaul Nov 14 '20 edited Nov 14 '20

When I said "superior" I was referring to raw speed, performance and stability (

as stated in my comment), which in that case, is far superior.

"Raw speed" and "performance" are basically the same thing. "Stability" is essentially a function of the programmer's skill and the environment. There is nothing more intrinsically "stable" about C than Python and given that one is prone to buffer overruns, if you absolutely had to pick one for "stability", Python would probably be the better bet.

You tell me how much better Python is at doing these tasks.

If I did, I'd be contradicting my own point, which is that its idiotic to rank tools designed for different purposes. You make lip service to understanding that its idiotic here: "I'm not here to say that C can do Python-based projects better"

But then you turn around and list a bunch of projects that are C-oriented and seem to imply that if Python can't do them better then its inferior. Which just shows that you still don't get it. You use the right tool for the job. It would be dumb to write a device driver in Python and equally dumb to write YouTube in C.

I know how important C is for the reasons I explained, apparently you do not.

I didn't say that C was not important. You're projecting. I said that C is important for different kinds of applications than Python is important for. Hard to believe that there are technology professionals who would disagree with that.