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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners