this post was submitted on 08 Jan 2025
80 points (92.6% liked)

Programming

21249 readers
149 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
all 21 comments
sorted by: hot top controversial new old
[–] TCB13@lemmy.world 25 points 5 months ago (4 children)

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 8 points 5 months ago (1 children)

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 0 points 5 months ago (1 children)

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.

[–] pinchy@lemmy.world 1 points 5 months ago

Lightning CSS is also great. A minifier at its core but also includes transpiling for older browser

[–] pcouy@lemmy.pierre-couy.fr 5 points 5 months ago (1 children)

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

[–] TCB13@lemmy.world 0 points 5 months ago

Yeah, exactly.

[–] CgH10N4Co2@lemmy.cafe 1 points 4 months ago (1 children)

Their machines might be old, but their browsers auto-update.

[–] TCB13@lemmy.world 0 points 4 months ago

Until you find they’re using and old version of macOS… or Windows 8. 😂

[–] Kissaki@programming.dev 1 points 5 months ago (1 children)

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.

[–] TCB13@lemmy.world 0 points 5 months ago

Trust me, you'll code faster and your CSS will be way more readable.

[–] cupcakezealot@lemmy.blahaj.zone 11 points 5 months ago

still can't do mixins and extends though. :(

[–] frezik@midwest.social 11 points 5 months ago (2 children)

I like that css now has variables, but why that syntax?

[–] GammaGames@beehaw.org 4 points 5 months ago (1 children)

I think to make sure they don’t clash with existing identifiers

[–] frezik@midwest.social 22 points 5 months 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 10 points 5 months ago (1 children)

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 2 points 5 months 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 9 points 5 months 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 8 points 5 months ago

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

[–] joachim@drupal.community -1 points 5 months ago (1 children)
[–] pcouy@lemmy.pierre-couy.fr 3 points 5 months ago

It seems to be working for me, it's weird. I've updated the post with the same URL anyway, and you can try https://scribe.bus-hit.me/@karstenbiedermann/goodbye-sass-welcome-back-native-css-b3beb096d2b4 if that still does not work