DEV Community

Discussion on: Is CSS objectively bad?

Collapse
 
pontusk profile image
Pontus Karlsson

CSS is solving the very hard problem of layout on an unknown canvas while also failing gracefully so that the content, which is the important thing, is not obscured by some error in the styling. You can off course mess up bad enough that this is not true, but the design is made so that you should be able to remove or add layers of CSS and still be able to read the content. A lot of clients will add it's own styles and remove styles that the author wrote. It's more free form and less mandatory than other languages.

It sure has it's quirks, but I think that it's pretty much a miracle that it exists and works as well as it does, all considered.

Collapse
 
stereobooster profile image
stereobooster • Edited

CSS is solving the very hard problem of layout on an unknown canvas

It sounds like nobody else is solving this problem. There are flutter and subformapp, for example. This is the result of a quick search, I guess, I can find even more examples.

Collapse
 
pontusk profile image
Pontus Karlsson

You took one phrase out of a sentence and commented on it out of context. Sorry, but your reply does not relate to the statement I made.

Thread Thread
 
stereobooster profile image
stereobooster

I didn't mean it to come as offence or something. I just point out, that there are other systems doing similar task... Sometimes it seems like we treat CSS as some holy grail. It is so precious, nobody suppose to say bad word about it, because it solves so hard problem. Indeed it is hard problem, but this doesn't mean we can't do better. Right?

Thread Thread
 
pontusk profile image
Pontus Karlsson • Edited

I did not mean to come off as though I took offence. And I take your point. It's just that the part that styling for many different screens is not part of the reason CSS behaves differently. It's the other stuff I mentioned that makes it hard to compare with other solutions. Flutter is compiled and can know the environment in which it's run completely, for instance.

Just wanted to add to the conversation that an enormous amount of stake holders have come together on a standard and that it might be easier to make improvements to it than to replace it.