• 𝘋𝘪𝘳𝘬
    link
    fedilink
    16811 months ago

    Web 2.0 or: “Instead of loading all code from the same URL the website now needs a dozen of different scripts from a dozen of different URLs, gives a shit about CSP and only shows a blank page when JS and/or cookies are disabled.”

      • gabe [he/him]
        link
        fedilink
        5911 months ago

        It also only takes a single gigabyte of RAM per file being edited, Isn’t that fantastic?

          • @scarilog@lemmy.world
            link
            fedilink
            811 months ago

            Man it’s not lightweight, but damn, if CSS and JS isn’t a really easy way to build cross platform UIs than other options like Qt. There’s a reason why electron is so popular.

          • gabe [he/him]
            link
            fedilink
            311 months ago

            Oh no, I love electron. That’s not a dig on it, it’s just very much a resource hog.

            • Terrasque
              link
              fedilink
              3
              edit-2
              11 months ago

              It doesn’t have to be.

              One of my experiments, an overlay for a game using camera position API to draw a 3d scene over the game, rendering things as if they were in the game (with some limitations) uses electron and three.js

              It’s pretty fast, uses about 100-150mb ram, and works pretty well. A similar overlay using same approach but written in C and opengl take ~200+ mb and a c# one 150-250 mb. The c# one has more features overall so it’s not a complete comparison, but then my overlay can do things the other can’t too.

      • @CanadaPlus@lemmy.sdf.org
        link
        fedilink
        21
        edit-2
        11 months ago

        So was all this bloat inevitable as hardware got better, or is there a way to go back? It feels like a ripoff that our computers are 1000x better but they’re maybe 10x faster once all the shitty software is taken into consideration.

        • ZILtoid1991OP
          link
          fedilink
          811 months ago

          I have a few suggestions:

          1. Better education. Don’t scare people who’re learning programming away from the lower-level stuff, especially as people are even getting scared to use type declarations, not just the pointers (of which I was fearmongered with in college, as they told me Java is the future).
          2. Better portable APIs. Thanks to WebAssembly, one could easily have both something portable in a web browser and as a native desktop app, except instead we get browsers running said applications. I had some thinking about such a project, but then I remembered my iota project (a D-native replacement of SDL/SFML/GLFW, but without bloat by including standard library features), and then stopped thinking about it immediately, since a much smaller project already causes me too much headache. (Someone has a handy guide on win32 API? I have issues on getting certain messages produced, like input language change, and I don’t know if I glimpsed over some functions that enable them and just weren’t included in the documentation of the input language change event codes.)
          • @CanadaPlus@lemmy.sdf.org
            link
            fedilink
            5
            edit-2
            11 months ago

            You know, I haven’t worked on a super big project, but I feel like every time I’ve gotten a type error in a static language it’s pointed to something wrong with my underlying reasoning.

          • ZILtoid1991OP
            link
            fedilink
            611 months ago

            In the short run, yes. In the long run, this just makes a bunch of coders that are now afraid of type declarations, because they were scared away from it with the “what if you have to choose?” tagline, thus making turning back to the proper way of doing things harder.

            • @scubbo@lemmy.ml
              link
              fedilink
              211 months ago

              Can you talk more about this? I’ve never heard that tagline and can’t figure out what it’s supposed to mean.

              • @CanadaPlus@lemmy.sdf.org
                link
                fedilink
                111 months ago

                Just from context, I’m guessing it means that you might type things one way and then need to use them another way later, and dynamically typed languages are sold as not having that problem.

          • @CanadaPlus@lemmy.sdf.org
            link
            fedilink
            411 months ago

            I was thinking about this a bit. Does that mean you can develop a piece of software much more cheaply now? I have a fear that companies writing software get a 10% discount from writing bloat, while clients wind up using 10,000% the resources and are just so used to it they don’t complain.

        • @renlok@lemmy.ml
          link
          fedilink
          411 months ago

          It’s not really inevitable, it’s just a consequence that develops can get away with being lazy because the hardware can cope with it.

      • AnonStoleMyPants
        link
        fedilink
        1011 months ago

        Of course! And it definitely does not try to pry all info about the user that it can and definitely the company behind would not use that in any way.

      • ivanafterall
        link
        fedilink
        211 months ago

        I like that you can just install it straight from the Windows Store, no need to even bother opening Edge to download it.

        • spez
          link
          fedilink
          English
          711 months ago

          …from the Windows Store

          who dare speak of the runes?

          • Aiden
            link
            fedilink
            English
            511 months ago

            SPEZ!!! I love spez! He’s so nice he did r/place again! Also, windows store?? I only know apt

        • ZILtoid1991OP
          link
          fedilink
          411 months ago

          And the app is just a chromium browser without the ability of typing in your own URL.