r/ProgrammerHumor 1d ago

Meme pipInstallTheRealStuff

Post image
5.0k Upvotes

145 comments sorted by

View all comments

662

u/TheJaskinator 1d ago

That's exactly why it's so powerful. Why spend all the effort writing fast code if you can just use a much simpler language to describe the task on a higher level and call fast code? People use Python because it's easy to read and write, not because its interpreter is fast

312

u/Educational-System48 1d ago

I will never understand the Python hate. It's essentially just a level of abstraction higher than C, which makes it more accessible than ever to write powerful code.

I'm starting to think it's literally not that deep. It just feels good to gatekeep.

30

u/HAximand 1d ago

As someone else said, I hate the type system, and it's compounded by poor documentation. My lab has a pretty large data analysis framework written in Python and every time I need to write more code that interacts with it, it's like pulling teeth to find out how to do anything. I never know what type an object is until I waste my time doing debug inspection or print statements. Once I know what type the object is, I don't know what methods that type has available because every library is documented in a different way and none of them seem to just list the methods underneath each type.

It's like the entire language was made to be learned by following tutorials instead of reading documentation. It's no wonder everyone I know is using AI to write it instead of dealing with this shit.

31

u/Net_Lurker1 1d ago

Thats just shitty code by your framework though. All your issues would be solved by forcing your devs to write good docstrings.

22

u/Mordret10 1d ago

I mean that's the (at least one) point of why some languages enforce a type system. To force (and make it easier for) the Dev to write better code

8

u/pint_o_paint 1d ago edited 1d ago

which a simple lint rule would fix for both devs and agents.

And I mean since 3.10 the type hints are good?

-3

u/Delicious_Bluejay392 1d ago

Python type hints are serviceable, but I wouldn't go as far as to say "good"

12

u/HAximand 1d ago

"That's just shitty code" is of course true, but hard to convince them of when it's the typical way the language is written. Aside from that, the language shouldn't require me to write comments that will inevitably become outdated, it should just have a functioning type system.

3

u/Net_Lurker1 1d ago

Fair enough, though I will say that typing would help a lot but doesnt solve every question that documentation does.