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.”

  • dfyx@lemmy.helios42.de
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    The 99 bottles of beer song is (was?) a popular programming exercise to teach beginners about loops. Singing it in real life would be pretty annoying because you would essentially repeat the same two sentences for a couple of minutes. Apparently, the PHP developers were planning to order one beer each, sing the song and get on everyone’s nerves. The C++ dev stopped this by buying all the remaining beer at once.

    The choice of languages is probably OP’s own prejudice. These days I’d say PHP devs are on average older and more experienced than JS and Python devs, just because almost nobody learns PHP as their first language anymore.

    • nomad@infosec.pub
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      The joke is, that the php devs force the C++ Dev to buy them all a beer. Pretty sure that’s a reference to the nature of the php interpreter being written in C. The C Dev is carrying their water so to speak.

      • marcos@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        17 days ago

        Ok, let’s just ignore what language Python and Javascript interpreters are written.

        And that C++ is not C.