• Kuinox@lemmy.world
    link
    fedilink
    arrow-up
    19
    arrow-down
    1
    ·
    9 months ago

    This is exactly what the browsers have been doing for decades and why the developer experience with html/css is infuriating.

    • abbadon420@lemm.ee
      link
      fedilink
      arrow-up
      9
      ·
      9 months ago

      It seems like a decent approach when you’re working with an existing tech stack and not some shiny new technology that has every sorted appropriately. At first I was like “just return an empty list of printers and let the user think there might be printers? Are you mad?” But than I was like “Well, that’s what I would do in an API as well”

    • epyon22@programming.dev
      link
      fedilink
      arrow-up
      3
      arrow-down
      2
      ·
      9 months ago

      Html/css/JavaScript is one of the most highly compatible and prolific stacks to ever exist. I like to say that JavaScript has succeeded where Java was trying to be.

      • Kuinox@lemmy.world
        link
        fedilink
        arrow-up
        5
        ·
        9 months ago

        They didn’t succeeded because they were good, but because they were popular.
        Browser devtools are very inferior to java/.net devtools, except the network tab from the browser, only thing the language I gave as example lack.

      • Lmaydev@programming.dev
        link
        fedilink
        arrow-up
        4
        ·
        9 months ago

        JavaScript, until recently, was literally the only option. It’s a nightmare of a language littered with bear traps and pitfalls.