this post was submitted on 14 Jun 2024
-6 points (46.9% liked)

Programmer Humor

19488 readers
753 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

A JavaScript developer, a Python developer, a C++ developer, and 97 PHP developers enter a bar.

The barman asks, “What can I get ya, fellows?”

The PHP developers say they’ll make their orders later. The barman turns to the JavaScript developer and asks him for his order. 

“I’ll have a beer.” The JavaScript developer replies, and the barman turns around and quickly serves him a bottle.

The PHP developers start singing loudly: “99 bottles of beer on the wall, 99 bottles of beer. Take one down and pass it around, 98 bottles of beer on the wall.”

The barman feels a headache coming on. He ignores them and asks the Python developer what she’ll have. He cringes internally when the woman orders a beer as well.

Quickly, he serves her a beer.

“98 bottles of beer on the wall, 98 bottles of beer. Take one down and pass it around, 97 bottles of beer on the wall.”

The PHP developers finish singing the next verse. The barman, now incensed, looks at the PHP developers and asks why they’re doing this.

“We heard there’s strength in numbers.”

The barman scowls and turns to C++ developer with a sigh, “What about you then? What can I get ya?”

The C++ developer sighs, “I’ll have 97 bottles of beer.”

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 4 months ago (1 children)

Maybe also the fact that PHP interpreter is written in C and a bit of C++, so C kind of "does everything for them"

Still, this makes no sense since most JS engines are written in C++, and Python is the only one more or less self-sufficient, albeit major implementations often use other languages as a source. And because it should've been C, not C++

[–] [email protected] 3 points 4 months ago

PHP has ben JITed for a while now too.
I don't recall it being known as slow compared to python even before that.