• variouslegumes@reddthat.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Prioritizing developer experience is not the reason we use front-end frameworks. People expect the web to work like a desktop app (no page reloads). The initial request might take a little bit longer, but in the end a well written front-end app will feel faster.

    The problem is that people don’t worry about bundle size and cram every library off of npm into their website.

    • o11c@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      The solution is quite simple though: dogfood.

      Developers must test their website on a dialup connection, and on a computer with only 2GB of RAM. Use remote machines for compilation-like tasks.

      • masterspace@lemmy.ca
        link
        fedilink
        English
        arrow-up
        0
        ·
        1 year ago

        Server rendered sucks ass. Why would I want to pay for an always running server just to render a webpage when the client’s device is more than capable of doing so?

        Centralization is just pushed because it’s easier for companies to make money off servers.

        • sznio@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Because it’s better to deliver a page in a single request, than to deliver it in multiple. If you render the page on the client you end up making a lot of requests, each one requiring a round trip and adding more and more delay.

        • philm@programming.dev
          link
          fedilink
          English
          arrow-up
          0
          ·
          1 year ago

          You don’t have to render everything on the server, a good hybrid is usually the way to go. Think SEO and initial response. I think lemmy-ui could will also benefit from it (google results)

          • masterspace@lemmy.ca
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            Yeah, it will give you the best of both worlds, but at a fundamental level I still hate that I have to pay for an always running server just for SEO, if I can get away with it I’d much prefer a purely static site that has to have its content pages rebuilt when they change.