Hacker News new | ask | show | jobs
by davedx 4563 days ago
The problem is, it's even more subtle than that. Sometimes, the right way to do something is by setting classes (or even, god forbid, inline styles) on the DOM using JavaScript, and sometimes it's better to use CSS. Sometimes it's debatable which way is better.

It's definitely a tricky area of development, that's for sure; pitfalls and subtleties abound.