• Jim SilvermanJim Silverman, over 5 years ago

    again, problems arise when you start nesting willy-nilly. not a good idea to go more than a second level deep.

    what i'm saying is ".block element.modifier" instead of ".block__element--modifier" this results in much cleaner code in both CSS and HTML, is easy to maintain, completely modular and is barely tied to structure.

    it seems the only tangible advantage of BEM is, as you've stated, the freedom to change html elements used. though i've rarely had a need for that.

    1 point
    • Hamish TaplinHamish Taplin, over 5 years ago

      I wouldn't describe that as 'cleaner' at all as it's unnecessarily specific and inherently less re-usable. What problem does it solve?

      1 point