DEV Community

Discussion on: Why is people so bad at css?

Collapse
 
jwp profile image
JWP

Because css is a DSL, it is not a true language and has zero refactoring support.

DSLS were; at one time, everywhere and everything. Today they are relics causing the issues we see in css.

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️

it is not a true language

You must have a very interesting definition of "language", would you mind sharing it with us?

zero refactoring support.

Again, what is your definition of "refactoring"? It certainly isn't the definition most other developers use.

Today they are relics causing the issues we see in css.

And what would those issues be? CSS has its problems, just as any other language, but nothing even remotely close to offsetting the benefits the language brings with it.

Collapse
 
optimisedu profile image
optimisedu

Relics are people who don't keep up with the evolution of CSS - language features such as variables and calculation.

Collapse
 
jwp profile image
JWP

No comment other than, I can tell you like DSLs. Go for it!

Thread Thread
 
lexlohr profile image
Alex Lohr

But DSLs are the new languages of the web, be it JSX, svelte, Vue, angular, etc., whether you like it or not. If you don't like them, maybe you want to go into another branch of development than web.

Thread Thread
 
jwp profile image
JWP

Tell me, how are they DSLs?

Thread Thread
 
lexlohr profile image
Alex Lohr

The domain is content markup, but they are not exactly (X)HTML, though they share a similar look; especially attribute values with {} show the difference.

Collapse
 
ravavyr profile image
Ravavyr

lol, every point they made is because they are a programmer, not a web developer.

Thread Thread
 
jwp profile image
JWP

If css is so great why is there Tailwind. Bootstrap et. al., Less and Scss? Answer: css is a pos.

Thread Thread
 
ravavyr profile image
Ravavyr

This is the dumbest answer of the week.
You can't say CSS is a POS just because you're bad at it.
This is a sign of a bad developer. You don't like something, just because you don't know how to use it.

Tailwind and Bootstrap etc etc only exist because devs made tools that made things easier to use. The problem appeared when newbies started only learning the tools and then complain when they run into bugs the tools can't handle.

Much of CSS is based on user experience, a program can't tell if a human being is enjoying the experience [at least not yet] , it can only make sure the code follows certain rules.

The tools help some, but we don't need them when we know how to write CSS properly. This is something that takes time and people have little patience as you've just exhibited.

It's like buying IKEA because you don't want to go to Home depot to buy the wood and build your table yourself. Obviously if you've built enough tables, you won't bother going to IKEA. And it's not WRONG to just buy a prebuilt table, but don't complain when one of the legs is slightly wobbly later on and you can't fix it.