• jungle@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    23
    ·
    1 year ago

    I think PHP is shit because I used it about 14 years ago (+/- 1/2 years), where it was crystal clear that the language was written by a complete amateur. I’ve example off the top of my head: you couldn’t reference an element of an array returned by a function in the same line, you had to first assign the function’s output to a variable and only then were you able to reference an element of the array in the variable. Like, WTF!!!???

    It may have improved over time, I just don’t care enough to find out. It doesn’t deserve my attention.

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      6
      ·
      1 year ago

      Yea, I used Rust 14 years ago and it didn’t even have a compiler, what a fucking clown car of a language!

      (Also, they fixed that with a really smooth syntax… and 14 years ago, you actually could do it with list())

      • jungle@lemmy.world
        link
        fedilink
        arrow-up
        1
        arrow-down
        3
        ·
        1 year ago

        I’ve designed languages from the ground up, and written interpreters and compilers, so maybe I’m a bit of a snob regarding that kind of thing.

        With all the levels of abstraction nowadays it’s impossible for anyone to understand the whole stack, so I don’t blame you for not caring how things are implemented under the hood.

        But that issue with PHP (one of many) made me want to find the person who wrote that abomination and slap them with a baseball bat.