i absolutely hate how the modern web just fails to load if one has javascript turned off. i, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on. it’s not a hard concept, people.

but you ask candidates to explain “graceful degradation” and they’ll sit and look at you with a blank stare.

  • Korne127@lemmy.world
    link
    fedilink
    English
    arrow-up
    18
    arrow-down
    5
    ·
    8 months ago

    I, as a user, should be able to switch off javascript and have the site work exactly as it does with javascript turned on.

    I mean… many websites rely on JavaScript, so it’s kind of obvious that they don’t work without it. If it would work without JS in the first place, the website wouldn’t need to embed any JS code.

    • adarza@lemmy.ca
      link
      fedilink
      English
      arrow-up
      11
      ·
      8 months ago

      website wouldn’t need to embed any JS code.

      other than the 20 trackers and ad scripts.

    • katy ✨@piefed.blahaj.zoneOP
      link
      fedilink
      English
      arrow-up
      15
      arrow-down
      4
      ·
      8 months ago

      many websites rely on JavaScript,

      which is the problem that most people don’t understand the concept of graceful degradation

    • Björn@swg-empire.de
      link
      fedilink
      English
      arrow-up
      9
      arrow-down
      2
      ·
      8 months ago

      Most websites out there could work fine without JavaScript. They rely on it because they can’t be bothered to be better.

      • Possibly linux@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        arrow-down
        4
        ·
        8 months ago

        Have you ever tried building a modern page without JavaScript.

        You can do a lot of things with HTML5 and CSS. It just is very complicated and painful. It isn’t intuitive and the behavior will vary across browsers. What could be a little JavaScript turns into a ton of write only CSS.

        • Björn@swg-empire.de
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 months ago

          Yes, that’s my job.

          The point isn’t to emulate the JavaScript functionality somehow. The point is to simply fetch the desired information as a new page load when necessary. The page should work in lynx.

        • Swedneck@discuss.tchncs.de
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          sure, it’s painful and pointless to build a fucking virtual machine without JS, but you can do 95% of normal website things with pretty bog standard HTML+CSS these days. You don’t even have to fiddle about to do pretty complex things, that’s just built-in most of the time.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      English
      arrow-up
      6
      arrow-down
      3
      ·
      8 months ago

      so it’s kind of obvious that they don’t work without it.

      Uhm, the web is to share content, not to play JS. That’s what graceful degradation is for: the primary usecase should still work, even if the secondary or tertiary doesn’t.

      • Korne127@lemmy.world
        link
        fedilink
        English
        arrow-up
        5
        ·
        8 months ago

        Uhm, the web is to share content, not to play JS

        The web doesn’t have a single unified purpose. Even if I hate it as a programming language, JavaScript if the basis almost all client-side browser operations build upon.

        Sure, a simple website which just contains information works without it, but if you design a website in which the client does anything interactively and not everything should be processed server-side, it’s not really possible. No matter if you’re talking about a web game, something like Google Earth or an in-browser editor.