DEV Community

Discussion on: CSS and JS Are at War, Here’s How to Stop It

Collapse
 
thekashey profile image
Anton Korzunov

Were are at war. And even if we stop it - The Great Divide would exist.
It's more about mindset - black and white, cats and gods, meat and fish, iPhone and Android.

  • I am JS-JS-JS person, mostly due to my hardcode backgrounds. I like "the code". Every time my wife is writing some JS - I am crying - so much better it could be. But she is not understanding me.
  • My wife is HTML-CSS-(js) person, as long as she started as "PDF-to-HTML" developer. She likes "the picture". Every time I am writing some CSS - she is crying - so much better it could be. But I am not understanding her.

  • I honestly not giving a shit about BEM-compliance. Hello! We are using CSSModules!

  • She could not understand what the fuck is redux, why I need it.

It's super cool to work together.

Collapse
 
danipardo profile image
Dani Pardo

Redux is a horrible solution for the problem it tries to solve. But at least, when it was invented, there was an actual problem to solve. In the cssinjs case, the problem doesn't even exist. It's just another way of making web development a bit more convoluted, retarded and broken. Whats going to be next, ascii in js?

Collapse
 
pavelloz profile image
Paweł Kowalski

Well, one could argue that everything global in css is a problem.

I hate css in js, but i like two solutions to this problem:

  1. TailwindCSS
  2. Svelte js way (and i think vuejs way as well)