I’m a long-time https://getbem.com/introduction/ user. The double underscore creeps into my code even when selector collision isn’t an issue.

It’s the fact that a methodology, any methodology, adds structure and semantics to HTML class naming where inherently there isn’t one.

Historically, when people have talked about targeting elements by their attributes, it’s been in the context of neat tricks or one liners.

I’m reminded of https://testing-library.com/docs/queries/bytestid/ to only ever reach for the testId element selector when you’ve ruled out all other, more semantic querying options.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners