r/ProgrammerHumor • • 5d ago

Meme pythonSlow

Post image
11k Upvotes

417 comments sorted by

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

44

u/Pokari_Davaham 5d ago

Python is nice to code in, I don't think anyone pretends it's the fastest

20

u/LetumComplexo 5d ago

Yeah, that and while it’s not fast on its own it is adequately fast when used correctly.

11

u/mxzf 5d ago

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.

5

u/LetumComplexo 5d ago

Yup, when you loop in system and financial considerations there’s a reason it’s standard in a lot of places.

3

u/cliffwolff 5d ago

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.

3

u/JollyJuniper1993 4d ago

People pretend it has to be good at things it was never meant for. Complaining Python is slow is like complaining x86 has a lack of libraries.

17

u/Worth-Wonder-7386 5d ago

Python is among the most used programming languages. It is not suited for everything, but that is true for all languages.

1

u/JollyJuniper1993 4d ago

People be like „how am i supposed to do Systems programming with python if it’s slow, that must mean it sucks“

1

u/Reasonable-Class3728 4d ago

Those people don't even imagine how much system tools are written in Python. It's literally one of the most popular languages for system programming.

I would say it replaced Perl on that niche. If 20 years ago you would choose Perl for you system tools, now you choose Python.

-1

u/anzu3278 5d ago

ITT: a language being used implies it's good

16

u/Fmeson 5d ago

If a language is widely used there is probably a reason for that. 

And yes, that applies to Javascript to. 

-9

u/anzu3278 5d ago

Baby's first programming language is widely used by people with baby levels of programming skill. Fork found in kitchen.

6

u/Fmeson 5d ago

Ah,  you're a troll

-4

u/anzu3278 5d ago

No mon I be fully human, by Zul I swear.

6

u/tragiktimes 5d ago

Dumbest thing ive read yet today. Nice.

→ More replies (7)

1

u/user_of_the_week 5d ago

I just prefer something more modern, like Java

2

u/adeptus_chronus 5d ago

nah, you need one of the OG old languages that that has extensive resources behind it, like Java.

1

u/JollyJuniper1993 4d ago

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.

1

u/FabioTheFox 4d ago

Wait until you see how python treats default parameter values in functions and anywhere else

2

u/Reasonable-Class3728 4d ago

Well, Python sucks.
But JavaScript sucks more, I think we all agree on that.

1

u/JollyJuniper1993 4d ago

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.

1

u/FabioTheFox 4d ago edited 4d ago

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)

1

u/JollyJuniper1993 4d ago

That’s a fair assessment

1

u/Firm-Can4526 5d ago

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....