• TCB13@lemmy.world
    link
    fedilink
    arrow-up
    26
    ·
    26 days ago

    Yeah CSS is now decent. The only problem is that the nesting is not very well supported yet. It’s something like only browsers > 2023 and let’s be realistic people run old machines.

    • pinchy@lemmy.world
      link
      fedilink
      arrow-up
      8
      ·
      26 days ago

      Definitely not widely supported enough. Made the switch from sass back to css quite a while ago and let postcss polyfill less supported features like nesting.

      • TCB13@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        26 days ago

        Yeah, I was reading about PostCSS the other day, but still too lazy to change my environment. To be fair I only need the nesting polyfill and some kind of minifier, the rest I can live with native stuff.

    • pcouy@lemmy.pierre-couy.frOP
      link
      fedilink
      arrow-up
      5
      ·
      26 days ago

      We still see somewhat old browsers, especially from people using Safari on Apple devices (because IIRC it only updates when you update the whole OS). But it’s a lot better than it used to be thanks to most browser having auto-updates

    • Kissaki@programming.dev
      link
      fedilink
      English
      arrow-up
      1
      ·
      25 days ago

      I’ve read interesting argumentation against nesting. I’m not confident in whether it’s more useful or not, in some situations or in general.

      • frezik@midwest.social
        link
        fedilink
        arrow-up
        22
        ·
        26 days ago

        I could understand declaring with --foo, but then referencing should be either var(foo) or just --foo, not the combination var(--foo). I don’t get why the grammar has to work that way.

  • Cratermaker@discuss.tchncs.de
    link
    fedilink
    arrow-up
    11
    ·
    25 days ago

    Good riddance, I say. Web dev is infested with layers upon layers of tools that attempt to abstract what is already fairly simple and straightforward to work with. We’re beyond the days of needing to build buttons out of small image fragments, and JS is (slowly) becoming more livable in its raw form. I welcome anything that keeps the toolchain as simple as possible.

    • shortrounddev@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      10 days ago

      At my company I start all new projects without a framework. I try to write things in templated backend frameworks with no javascript on the frontend. If I need javascript, I try to use web components, styled with modular css in the shadow dom.

      However, this sometimes requires an absurd amount of build tool configuration with webpack in order to get static asset and typescript loading working just perfectly. I end up kind of just writing my own framework instead

  • mindbleach@sh.itjust.works
    link
    fedilink
    arrow-up
    9
    ·
    25 days ago

    HTML tends to absorb all its best kludges. I put off learning JQuery for so long that the features I wanted became standard.

  • Paradox@lemdro.id
    link
    fedilink
    English
    arrow-up
    9
    ·
    26 days ago

    I still reach for sass for a lot of things, but now you don’t have to, which is really nice