News for hackers. Stuff that matters.
Re:Help choose the syntax for CSS Nesting by alwillis on Thursday December 15, 2022 @09:44PM (#34009080)
> These options are bad, and CSS does not need this.

1. You don't have to use it if it doesn't seem useful to you.

2. Many developers (me included) use Sass and other preprocessors so they can use nesting; it's probably the single most popular feature of Sass.

3. CSS doesn't need nesting but a lot of developers want it, as it improves the developer experience for writing complex selectors.

Re:Help choose the syntax for CSS Nesting by Beltalowda on Thursday December 15, 2022 @10:08PM (#34009385)
> 1. You don't have to use it if it doesn't seem useful to you.

Other people will use it and chances are you will have to deal with it sooner or later at $dayjob or whatnot.

Re:Help choose the syntax for CSS Nesting by Gigachad on Thursday December 15, 2022 @09:53PM (#34009194)
The group in 3 can use SASS. At this point you should view CSS like assembly, convenience functions go at a higher level.
Re:Help choose the syntax for CSS Nesting by alwillis on Thursday December 15, 2022 @10:07PM (#34009370)
> At this point you should view CSS like assembly, convenience functions go at a higher level.

CSS isn't assembly; it's higher level than that. I get why some want to treat it like a low-level language but it's not that, which is pretty obvious if developers take the time to understand CSS at a deeper level than just something a preprocessor spits out.

Also, CSS has to work in environments where using a preprocessor isn't an option—it's not just for glossy VC-backed websites. A preprocessor and all of the other tooling front-end developers use aren't an option for the vast majority of content management systems and wikis for example.

CSS still has to work in these environments.

Re:Help choose the syntax for CSS Nesting by barnabee on Friday December 16, 2022 @06:23AM (#34013314)
I hope web standards decisions are never made starting from the assumption that there's a build tool.