@ApplePieGiraffe
Posted
Hey, Rene Sauerwein! π
Good work on this challenge! Your solution looks great and responds well! π
You definitely don't have to use BEM for every single element on your page. Like emestabillo, doing so can lead to very long class names that can be kind of annoying. I like to use BEM in a way that allows me to quickly understand what things are in my code but doesn't necessarily strictly follow the BlockβElement--Modifier principle. For example, I'd do what you suggested and simply write author__name
rather than review__author-name
if author
seems like a somewhat self-contained element which would make sense to do that for. I also might do things like footer__logo
even if logo
isn't a direct child of footer
but a container or two down in the markup (since logo
is a prominent part of the footer nevertheless).
Overall, I think you should do what works best for you while keeping the readability and understandability of your code to others in mind. π
Keep coding (and happy coding, too)! π