• cafuneandchill@lemmy.world
    link
    fedilink
    arrow-up
    9
    arrow-down
    2
    ·
    3 months ago

    All of them sound like mental disorders or something lmao
    Guess that shows how little I know of programming and CS as a whole

    • xmunk@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      3 months ago

      Especially because pretty much every programming language is slowly getting all the features… Java and C++ now have first class function support which used to be a hallmark of functional languages.

  • namingthingsiseasy@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    3 months ago

    This is very interesting! Things like this make me wish programmers would give functional^W declarative programming more of a chance. I’ve long fantasized about being able to write programs as declarative code that the computer can optimize automatically without human intervention. When you implement your program in more restrictive (ie. stateless) paradigms, you can more easily reason about the code, and thereby make it easier to optimize or run in different environments.

    SQL is a great example of this - when you look at some of the optimizations that servers like PostgreSQL can do under the hood, this is because the language inherently limits what you can do so the actual system executing your instructions can do different things with it for better performance and reliability. Things like this are what make query optimizers possible, and it’s really fascinating if you actually read carefully what query analyzers report (beyond just checking whether your indices are being used or not).

    Beautiful chart. Thanks for sharing!