• Mike@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    Hating on php is one of the reasons i left reddit. This is just people who don’t use php hating php for some reason. You can do dumb examples like this for any language. Low effort and funny for children.

    • deaf_fish@lemm.ee
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Your feelings are valid. I wonder though, would you put up this level of defense for posts making fun of arbitrary parts of non PHP languages?

      You are not your favorite language. And I find most criticisms of most languages to be very valid. I don’t think the intent of OP is to insult all PHP programmers. It’s okay to like a language that has problems. All languages do.

      • Doug [he/him]@midwest.social
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        I’d wager prevalence is part of their problem. Jokes get tired after a while, but that doesn’t always mean they stop.

        PHP, like any language, has its problems, but it seems to get poked at a lot more often. But making the same joke over and over has been a problem long before reddit was a thing.

  • xedrak@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    I get hating on PHP is a meme, and the language certainly has faults, but I feel like it’s no more arbitrary than how JavaScript behaves. And just like JavaScript, if you follow modern standards and use a modern version, it’s a much better experience. The language is only as good as the programmer.

  • Lemmypy@feddit.nl
    cake
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    Finally got it…

    $a == 1 ? "one" : ( ( $a == 2 ? "two" : $a == 3 ) ? "three" : "other" )