DEV Community

loading...

Discussion on: Don't Trust the Cascade - Why I write CSS in JavaScript

Collapse
vuild profile image
Vuild

I am generally weary of intermediate layers as bugs/entropy/updates whatever. Vanilla HTML/CSS/JS done well can be left for years. Can be hyper fast/simple clean (but usually we are rushed). Copy pasting a stylesheet & editing a few variables is as fast as it gets. Multiply the extra steps by 50 sites or something & it adds up.

I like CSS because it is a backstage dumpster where you can 'hide' things, no harm.

It would be very nice to have the features CSS in JS has however & I understand the use cases (if you are running a complex site with lots of ppl it is very good).

I think both have their place (this is probably now the controversial position).

Collapse
thepaulmcbride profile image
Paul McBride Author

Aren't all the tools we use to build websites essentially an intermediate layer? Unless you're writing byte code of course. I work at a product company so don't have the issue of setting up project after project, but I can see that becoming a pain if it's not automated.

You're totally right that both tools have their place though!

Collapse
vuild profile image
Vuild

Yes, they are all intermediates.

Imagine it like a sandwich. I like bread & cheese. Maybe a touch of butter. Fresh, warm organic bread. Simple, reliable. Focus on the cheese which was from cows that live in the mountains above the mosquito line.

Some people prefer a little more filling.
previews.123rf.com/images/goce/goc...

Each to their own (somewhere in between is usually good).