What about brackets in the class attribute?

Good day.
Talking about "small trick" that I learned from the article (where he at number 10). The author proposes to highlight in the layout classes in some logically connected by context blocks. For example:
<button class="o-layout">
 <div class="[ o-layout-item o-grid c-button"></div>
</button>

In his example, he allocated the block based on the fact that the classes with the prefix o- are objects markup and classes are prefixed with c- visual components.

Perversion or fit practice (no)? In the internal browser view created hell things like .\[., which, of course, no css, but still.
July 8th 19 at 15:32
6 answers
July 8th 19 at 15:34
Solution
Wild perverted in my opinion.
July 8th 19 at 15:36
Solution
Disgusting. I would definitely never do not. Especially how to be with all sorts of template engines (jade for example) and dynamically created classes
July 8th 19 at 15:38
Solution
Yes, a perversion. It is better to use BEM or something like it.
July 8th 19 at 15:40
Solution
Perversion is an understatement. BEM - everything.
July 8th 19 at 15:42
About the perversion haven't talked? So, it is a perversion. Well, BAM, just in case, advise =)
July 8th 19 at 15:44
A hodgepodge of classes in the html be shot. It is necessary to use mixins/extend, and khtml to keep the BEM classes and some klavye layout classes sometimes.
Well, not necessarily BEM, there are lots of methodologies that are not worse, and look not ugly (unlike). Even those brackets look neater BAM... - Annabelle_Schoen commented on July 8th 19 at 15:47

Find more questions by tags CSSHTMLLayout