• Rusty Shackleford@programming.dev
      link
      fedilink
      English
      arrow-up
      49
      ·
      edit-2
      2 days ago

      “Why not write Assembly then?”

      Oh, here comes the genius motherfucker with the big-brain counterargument: “Well, if HTML’s so great, why not just write everything in Assembly, huh?”. Wow, look at you, you clever little prick. Did you come up with that all by yourself? Writing web pages in Assembly is like using a fucking scalpel to slice your overcooked steak: sure, it’ll get the job done, but you’re gonna look like a complete asshole while you’re at it. HTML just works, you absolute tool. It’s been the backbone of the web since Al Gore flipped the switch, and it’ll still be here long after your trendy framework is rotting in a GitHub graveyard. So take your smartass logic and shove it. HTML’s king, and you’re just a peasant with a keyboard.

      🤣

  • manxu@piefed.social
    link
    fedilink
    English
    arrow-up
    56
    ·
    2 days ago

    That’s the thought I always had: When I develop in Node, I stand on the shoulders of ten thousand microbes.

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

    I’d like full stack developers to try something. Next time you have an itch for a personal project, see if you can make it with no frontend JavaScript. Just some CSS and HTML forms. All templating handled on the backend. Just try it and see how far you get. Don’t worry if it looks like a GeoCities page.

    Then try finding places where JavaScript would make it more responsive or better UX in some way. Does the back button still work? Is it actually faster? Does it provide any benefit at all?

    Maybe it does, but just try.

    • CosmicTurtle0@lemmy.dbzer0.com
      link
      fedilink
      English
      arrow-up
      19
      ·
      2 days ago

      I’m a JavaScript developer. But it is fully possible to create a site with no frontend JavaScript

      Like many things, you should use JavaScript if you need it. If you don’t need remote data sources or live refreshes, pure html and css work perfectly fine and, I would go so far as to say, may even be necessary for resistance web pages.

      This is especially true if you’re using tor. JavaScript can leak your IP address and sites will work more reliability if you have static content that’s refreshed on the back end than using a bloated next.js app taking up RAM.

      • go $fsck yourself@lemmy.world
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        1 day ago

        The vast majority of those are useless animations. Some are even a much worse implementation of something done much simpler with JS and requires significantly more code weighing down the page speed. Some examples of this are the cursor tracking examples which use hundreds of divs in a grid.

        While there are some useful examples, it seems like this repo is more of a list of to show off advanced CSS, fancy animations, and designs.

        • frezik@midwest.social
          link
          fedilink
          arrow-up
          3
          ·
          17 hours ago

          Yeah, those are mostly showing off. They’re not really what I’m getting at, either. I more want to challenge people to make useful things simply.

          And yes, there are ways that JavaScript can be used to give users a faster and more streamlined experience. The web as it stands is so far past that justification. I swear there’s lots of “full stack” devs that haven’t a clue how to make a site without React.

  • unalivejoy@lemmy.zip
    link
    fedilink
    English
    arrow-up
    8
    arrow-down
    4
    ·
    2 days ago

    This can be fixed by switching from npm to pnpm or bun. They use hard links and a package cache.

  • REDACTED@infosec.pub
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    11
    ·
    1 day ago

    I’m here still using jQuery and php+sockets for nearly all my needs. Only once in my life I actually needed node