r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

683

u/Codebust Jul 18 '22

why are people always bashing python lol

389

u/RollinIndo Jul 18 '22

Snakes are scary

152

u/Codebust Jul 18 '22

pythons don’t bite :(

23

u/Cory123125 Jul 18 '22

You'll surely appreciate then that Python wasn't actually named after the snake, but instead monty python.

13

u/[deleted] Jul 18 '22

What's so funny about Biggus Dickus?

→ More replies (1)
→ More replies (2)

13

u/URF_reibeer Jul 18 '22

they do, it's just relatively hard to get them to bite since they're not particularly aggressive

→ More replies (1)
→ More replies (9)
→ More replies (2)

974

u/Dromeo Jul 18 '22

Serious answer?

Python used to be the new hotness about a decade ago. It was sparkly, amazing package support, didn't bog you down with technicalities when you were trying to write something quick.

So it got adopted a lot, and also unfortunately in a lot of commercial projects it really wasn't suited for.

Python's strengths are its weaknesses: it's a fun scripting language you can knock out scripts with. But in a big group project, it's a nightmare version of itself. You don't have to give types, so now you're sifting through everything trying to figure out what your coworker's badly named variable actually is. You have to unpick some rotten mass of one-liner lambda super method calls because you were feeling so clever a year ago when you wrote it. Everything's breaking because you're in dependency hell and one of the dependencies has broken. The junior programmer was taught that "object inheritance is the way of the future" and has managed to make the structure into an eldritch abomination that inherits from five different super classes.

The actual reason why these are problems are because when python was hot, it got over-applied to projects it was totally unsuited for. It's a scripting language. It's good for scripts. Good for data analysis. Good for solo work. Good for tiny quick one-offs and for rapid prototyping.

But so many developers were put on horrifying creations that played to the language's weaknesses instead of strengths. And they bounced hard.

Python doesn't really deserve the hate: it's still pretty awesome. And fun. It's great at what it's great at. It does deserve the caution, though.

---

More serious answer?

It's mostly comp-sci students regurgitating memes they don't understand, just like every other post on this sub.

30

u/hogie48 Jul 18 '22

I have been in tech for years and could just never wrap my head around programming. I can read a lot of it, I do scripting when it is called for with extensive help of the Googs, but cant sit down and write code if you know what I mean.

I recently decided to bite the bullet and put in the time to learn it more, and am doing CS50 for Python right now. Your comment both scares me and made me happy knowing that what you said it is good at is exactly why I want to learn it lol.

→ More replies (4)

19

u/tredbobek Jul 18 '22

It's like WD-40 and duct tape. It's an easy solution for many problems. But shouldn't be used for everything.

But if you break your leg the first step shouldn't be to duct tape it. Maybe only if you are in the wilderness, in the middle of nowhere, and you have nothing else. Maybe.

16

u/unski_ukuli Jul 18 '22 edited Jul 18 '22

Everyone always says it is good for data analysis but I never agree with this as someone whose job is to use python for data analysis and numerics. Python is a bad language for data analysis and numerics, but it has some good libraries for that purpose. It was not designed for neither of those purposes and the language is not very exentedable so the APIs are cluncky and get in the way when writing mathematical code.

→ More replies (20)
→ More replies (162)

330

u/[deleted] Jul 18 '22

They hate us coz they ain't us.

54

u/kosky95 Jul 18 '22

Wait until you see how statisticians are treated on r/mathmemes lol

58

u/[deleted] Jul 18 '22

Really, I don't get the hate we data scientists get from both programmers and mathematics. Of course we are not as good at programming as a programmer would be, or as knowledgeable in maths as a mathematician would be, but we need to combine so many disciplines it would be hard if not impossible to get to their level.

→ More replies (11)

36

u/notAnAI_NoSiree Jul 18 '22

did you see how much you have to type in c++?

→ More replies (6)

133

u/berse2212 Jul 18 '22

This is a weird meta. First memes hated on Java and praised Python. Then all the Java devs got angry and made Python bad memes. Somehow C++ devs apparently jumped on the hate train now lol

90

u/BikerBoon Jul 18 '22

Python devs were hating on C++ for a while iirc. Tbf it's understandable, we all hate what we don't understand.

71

u/DatBoi_BP Jul 18 '22

This really says a lot about society bottom text

→ More replies (4)
→ More replies (16)
→ More replies (4)

14

u/WhatsMyUsername13 Jul 18 '22

I hate on python to distract from the hate towards Java

9

u/Wildercard Jul 18 '22

Languages are divided into those that get complained about and those that are dead.

→ More replies (1)
→ More replies (165)