Especially when you factor in development time vs execution time. It's super quick to develop in compared to many languages, and you can always come back and optimize specific slow things down the road if you have bottlenecks.
Especially with the fact that you can always replace bottlenecks with C libraries. I hate it when people refuse to admit Python can be a good language when used properly.
It’s because Python doesn’t suck and people don’t understand use cases. Python being slow is also just a boring complaint. Some of the stuff JavaScript does however is so weird and unintuitive that it genuinely makes for good comedy.
I know how it treats them, it really isn’t comparable to JS.
And, like, weird stuff exists in plenty of languages. People don’t complain about Powershell, even though its functions return console output either which is a mindboggingly stupid and weird design decision. That‘s because it’s just not as confusing as the JavaScript quirks.
Face it, people make fun of Python being slow because they have a superiority complex about programming at a lower level.
Honestly I couldn't care less about pythons speed and I think anyone that bashes a language purely based on that single metric is an uneducated first year CS student (at least id hope they grow out of it eventually)
While I do see it's speed as a downside it's not something that would the turn me away, for me it's the whole venv thing, the community, the package manager (and it's general ecosystem), weird quirks that go against what I'd expect from a language and the fact that the language uses whitespace for scoping is what is the turnoff for me. I've personally never seen a python project online that just works even if you follow the install instructions, some (luckily most) are fixable, like that one time I tried to use a project which used a library that failed on me because it had some windows specific formatting, but other times it's borderline impossible which is a shame because the projects looked quite cool, I shouldn't be the one having to deal with package errors to begin with tho
I also think it's a huge mistake to let code run on package import, I've seen the horrors of people putting auto updater stuff into their packages that will fetch a new version globally to the system. Compiled languages give me a feeling of security because I can be sure that even in 10 years these will still run as they did before (given they ship their deps and don't do major network stuff)
Python is a great scripting language, but I hate that it is used in production code... it is slow, it obfuscates too much, it fails on runtime due to things a compuled language would fail at compile time....
View all comments
Show parent comment
24
u/FabioTheFox 5d ago
Because everyone knows Javascript sucks and everyone bashes it all the time, the difference is that people don't want to admit the same with python