Re:CSS is powerful, you can do a lot of things without JS
by drinchev on Tuesday July 05, 2016 @05:35AM
(#12035322)
My reasoning is that CSS is not a language, it's just a configuration file.
It doesn't have a console.log, but it has `background: red`.
JS as a language and as such ( especially it's callback / event-driven nature ) makes it harder to debug.
Re:CSS is powerful, you can do a lot of things without JS
by TimJYoung on Tuesday July 05, 2016 @07:49AM
(#12035739)
Yes, but with the browser debugger you can step through the JS code and visualize what it is doing. How can you visualize what is happening with CSS, short of debugging the internal browser code ?
Re:CSS is powerful, you can do a lot of things without JS
by RodericDay on Tuesday July 05, 2016 @11:06AM
(#12036924)
select an element and see which rules are active on it?
Re:CSS is powerful, you can do a lot of things without JS
by iamtyce on Tuesday July 05, 2016 @09:17AM
(#12036177)
Huh? Linting and compilation pull up just about every problem in the writing of CSS. The rest are browser bugs / quirks.
Re:CSS is powerful, you can do a lot of things without JS
by afarrell on Tuesday July 05, 2016 @05:35AM
(#12035320)
Also no unit tests and a program model that is hard to make into a coherent mental model.
Re:CSS is powerful, you can do a lot of things without JS
by atmin on Tuesday July 05, 2016 @09:04AM
(#12036081)
- CSS can be tested, e.g. [1]
- use simplified program model and enforce it, [2]
CSS has no console.log() for debugging, CSS often fails silently, and the demos in the link are more or less (albeit pretty neat) hacks, but don't use CSS features in the way the specifications intended.