this post was submitted on 23 Aug 2023
10 points (100.0% liked)

Programming

13373 readers
1 users here now

All things programming and coding related. Subcommunity of Technology.


This community's icon was made by Aaron Schneider, under the CC-BY-NC-SA 4.0 license.

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Haui@discuss.tchncs.de 10 points 1 year ago (2 children)

18% reduction (max) for learning a different language than html? Hard pass.

Especially with css you can give most of those small web design studios (and most wordpress plugins) a run for their money.

I think it’s unnecessary to learn some obscure „alt-sub-language“ if the improvement is so little.

[–] spencer@beehaw.org 5 points 1 year ago (2 children)

I'm personally a big fan of SCSS over both CSS and regular Sass. Keeps the same syntax so it's not hard to pick up, but fixes some of the CSS jank.

That said, I think they're rolling out a new CSS version that covers some of those tweaks? I recall hearing abt that

[–] Paradox@lemdro.id 3 points 1 year ago

CSS has been growing a lot of "super powers" lately, that used to require a pre-processor. Custom properties (variables), nesting, calc, and color-mix used to be things we'd reach for a preprocessor for, but can now be done 100% in pure CSS. And generally, the CSS based versions are better than their old preprocessor counterparts. calc can mix units, so you can easily do things like calc(100% - 1rem) to subtract a rem from 100% of the parent container. Can't do that in Sass. Custom properties can be set by Javascript, or by media queries, and follow CSS scoping rules. Thats how I handle light/dark mode on my site.

[–] Haui@discuss.tchncs.de 2 points 1 year ago

That sounds cool! I didn’t know that. Thanks for elaborating.

[–] Paradox@lemdro.id 1 points 1 year ago* (last edited 1 year ago) (1 children)

Well it's pretty much just HTML without brackets and closing tags. There are a few oddities to enable this, and it falls down on inline styles (in the same way json fails vs XML for inline formatting), but it is still pretty fun to write

But with the issues these languages are starting to manifest, that 18% isn't worth it anymore

[–] Haui@discuss.tchncs.de 2 points 1 year ago

Thanks for elaborating! :) TIL