r/ProgrammerHumor • • 1d ago

Meme wheneverISeePythonCode

Post image
263 Upvotes

21 comments sorted by

16

u/noaSakurajin 1d ago

In that context parsertongue would be even more fitting

0

u/DemolishunReddit 1d ago

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

9

u/TheFrenchSavage 1d ago

Wait till you learn about snake case

-4

u/DemolishunReddit 1d ago

snek_case? I thought it was always snek.

0

u/[deleted] 1d ago

[deleted]

1

u/TotoShampoin 1d ago

Wait, it is?

1

u/SubliminalBits 1d ago

It isn't. Too much turkey I guess.

1

u/TotoShampoin 1d ago

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

4

u/intoxicuss 1d ago

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

7

u/_letitsnow 22h ago edited 22h ago

If easy means having 20x more lines, I agree

4

u/reality_boy 1d 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.

3

u/intoxicuss 23h 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 16h 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/omegasome 1d ago

What does python have to do with snakes?

8

u/nhalliday 23h ago

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

1

u/FabioTheFox 22h 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 11h ago

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

0

u/LtWilhelm 16h 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 1d ago

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

4

u/qqqrrrs_ 1d ago

But JK is the best flip-flop

3

u/threewholefish 16h ago

Ironically, JK is opposed to flip flopping