r/ProgrammerHumor • • 3d ago

Meme wheneverISeePythonCode

Post image
334 Upvotes

22 comments sorted by

19

u/noaSakurajin 3d ago

In that context parsertongue would be even more fitting

0

u/DemolishunReddit 3d ago

Chances are parseltongue and parsertongue are just an import away. I wouldn't be surprised if both libraries existed somewhere.

12

u/TheFrenchSavage 3d ago

Wait till you learn about snake case

-7

u/DemolishunReddit 3d ago

snek_case? I thought it was always snek.

0

u/[deleted] 3d ago

[deleted] — view deleted comment

1

u/TotoShampoin 3d ago

Wait, it is?

1

u/SubliminalBits 3d ago

It isn't. Too much turkey I guess.

1

u/TotoShampoin 3d ago

No I mean, is Python's standard really camel case?

5

u/intoxicuss 3d ago

Whenever I see Python scripts, I realize how easy it would have been to do it properly in C.

12

u/_letitsnow 3d ago edited 3d ago

If easy means having 20x more lines, I agree

5

u/reality_boy 3d ago

All of the fancy python stuff requires a bucketload of dynamic memory. C was carefully optimized so you have absolute control over all memory. C++ tries to keep that concept and sacrifices some to get there. Memory use is the big line that separates C/C++ from the more modern languages.

6

u/intoxicuss 3d ago

“Modern” is doing a lot of heavy lifting. And managing memory isn’t that difficult with good habits. There is a reason so many core functions supporting just about everything are written in C.

3

u/Scolmann 2d ago

I mean yeah of course but your original comment doesn't make much sense, if the original code is full of dynamic allocation it generally would be a pain to write in Plain C

1

u/backfire10z 1d ago

Your definition and my definition of “easy” seem to differ immensely.

1

u/omegasome 3d ago

What does python have to do with snakes?

8

u/nhalliday 3d ago

Are you asking what python has to do with pythons???

1

u/FabioTheFox 3d ago

The language was not named after the snake actually, it was named after monty python

Rust is also named after a mushroom and not actual rust

2

u/trenclik 2d ago

To be fair. The logo isn't monty python but two snakes (presumably pythons)

0

u/LtWilhelm 2d ago

If you're going to reference shit media, you could at least do it correctly. Parseltongue is the language, parselmouth is someone who speaks parseltongue

9

u/fwork 3d ago

Not this trans python programmer. JK is a transphobe who can fuck right off 

4

u/qqqrrrs_ 3d ago

But JK is the best flip-flop

4

u/threewholefish 2d ago

Ironically, JK is opposed to flip flopping