←back to thread

451 points todsacerdoti | 2 comments | | HN request time: 0s | source
Show context
b_e_n_t_o_n ◴[] No.45060146[source]
I really do appreciate the nesting they've added but looking at it as a whole, CSS is a really strange and in my humble opinion, a terrible language. Perhaps I'm just holding it wrong, but it's just so complicated and messy, it sometimes feels like you're just arranging arcane runes in different ways until you make it sort of work for you. It's both a system for styling text based on inheritance, and a layout system for block and inline elements, nested recursively but without inheritance, only containment. I think it was a mistake to combine styling and layout, and I don't feel like adding more and more capabilities to something fundamentally broken can fix it.
replies(11): >>45060383 #>>45060483 #>>45060957 #>>45061557 #>>45061852 #>>45062092 #>>45062151 #>>45062384 #>>45063859 #>>45067840 #>>45069507 #
archerx ◴[] No.45060957[source]
“I believe a lot of the negativity towards CSS stems from not really knowing how to use it. Many developers kind of just skip learning the CSS fundamentals in favor of the more interesting Java- and TypeScript, and then go on to complain about a styling language they don’t understand.”

from the article is talking about people like you, who refuse to learn something properly but have the arrogance to think they know better.

replies(3): >>45060998 #>>45061409 #>>45061995 #
wmil ◴[] No.45061409[source]
That's incredibly arrogant phrasing by both you and the author.

Here's a better explanation of the hostility towards CSS.

Nested flexbox had bugs in IE11, which wasn't end of lifed until 2022. The nested CSS in the article came out in December 2023.

CSS first came out in 1996.

The current state is much improved, but don't pretend there wasn't a solid 20+ years of sucking before that.

replies(2): >>45061506 #>>45063368 #
bryanrasmussen ◴[] No.45061506[source]
>Nested flexbox had bugs in IE11, which wasn't end of lifed until 2022.

how is I hate CSS because IE was poorly maintained a serious argument?

replies(2): >>45063315 #>>45063409 #
icedchai ◴[] No.45063315[source]
For a long time, from the late 90's until roughly 2012, IE was the most popular browser. You had no choice but to work with it. If it didn't "work on IE", it didn't work.
replies(2): >>45063381 #>>45075839 #
1. bryanrasmussen ◴[] No.45075839{3}[source]
I don't think flexbox really started being used until 2013 at the earliest, the comment I replied to was complaining about 2022 and a flexbox bug in IE. This 2012 thing doesn't seem to relate at all to the subject.

on edit: I know it was in WD in 2009 but I'm pretty sure it was around 2013 that people started playing with it. I think it started being popular in 2014-2015.

replies(1): >>45078340 #
2. icedchai ◴[] No.45078340[source]
My comment was more about the prevalence of IE in general, not flexbox specific. There were tons of IE quirks that had to be dealt with.