Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialjlampstack
23,932 PointsNaming conventions?
Hello,
I'm wondering if the names Guil is using are industry standard. Being new to this, I don't see these names as being descriptive and wouldn't understand what they mean just by looking at it.
In these videos Guil uses names such as %hdln-prim for primary headline or $hdln-sec for secondary headline. In an earlier video p-el was used for a pseudo element mixin. Reading p-el one could very easily think the p is for a paragraph element.
Are these standard naming conventions? Are these names part of BEM? Is there a website that someone could point me that indicates a glossary of the short-form names?
1 Answer
Steven Parker
231,269 PointsBEM has its own naming conventions.
Perhaps this page on the BEM website will be helpful.
jlampstack
23,932 Pointsjlampstack
23,932 PointsSteven Parker, I understand the BEM naming conventions, I'm wondering about the logic behind some of the other names that were defined.
Steven Parker
231,269 PointsSteven Parker
231,269 PointsIf they aren't in the documentation, I might guess they were "BEM-inspired". I"m not a BEM developer myself, and I've not seen names like that elsewhere.
jlampstack
23,932 Pointsjlampstack
23,932 PointsThanks, I was curious. This helps!