• mEEGal@lemmy.world
    link
    fedilink
    arrow-up
    12
    ·
    2 days ago

    the last one is just immutability, praised in modern JS / TS, albeit at the repo level

    • frezik@midwest.social
      link
      fedilink
      arrow-up
      15
      ·
      2 days ago

      I “love” how JavaScript has slowly rediscovered every piece of functional programming wisdom that was developed before 1980.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 days ago

        Kind of, though they honestly just do pretend immutability. Object references are still copied everywhere.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          2
          ·
          2 days ago

          I find you need the whole ecosystem to support immutability to make it work. Every library needs to be based around it. Elixir is about the only modern option that does.