Re:Bootstrap 5 will remove jQuery as a dependency
by pault on Tuesday February 12, 2019 @08:39PM
(#19149583)
I will swear on my life that I haven't used a style attribute in the last five years. Since I started using BEM for namespacing I have had a very easy time keeping my CSS clean and maintainable. I won't deny others their opinions, though.
Re:Bootstrap 5 will remove jQuery as a dependency
by chrisweekly on Tuesday February 12, 2019 @10:01PM
(#19149980)
BEM is a decent convention for old-school, global document styling, in the absence of scope. But it's also manual, error-prone, and verbose, making it a poor substitute for actual namespacing provided by components. I sympathize with your resistance to css-in-js; I've been doing webdev since 1998 and only really embraced it in the last couple years. I'm reminded of quotes like
"The difficulty lies not so much in new ideas, but in escaping the old."
2) anyone claiming not to have a single `style=""` attribute (which is almost as specific and 1000x less maintainable) in their code is lying