• CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    3
    arrow-down
    1
    ·
    edit-2
    1 year ago

    but I feel like it’s no more arbitrary than how JavaScript behaves

    This is not the flex you think it is.

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

      I didn’t mean it as a flex. It was a commentary on how the most commonly used programming language in current days is just as flawed as the most commonly used programming language in the past (in web development). Bad programmers are going to write bad code, regardless of the language.

      • Funwayguy@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I’d like to think Typescript does a lot of heavy lifting where JS fails when it comes to web development. On the otherhand there is no fixing fundamental flaws in PHP.

        Sure bad programmers write bad code, but if a language tolerates something so obviously janky via implicit unseen magic, it’s just encouraging bad practices. PHP makes this worse by tweaking core behaviours in weird and wacky ways that can easily lead to security vulnerabilities.