HTML/CSS:CamelCase vs Underscores -
i have read lots of articles advantages , disadvantages of camelcase , underscore naming conventions. i've prefered camelcase because saves bytes.
but learning bem, i've been confused. bem naming more readable '_','__' , long names add together file size. couldn't found js plugins it. 1 improve qualified webpage?
p.s. sorry bad english. sentiment appreciated
for css can't recall ever seen camel case (in professional work). me utilize bem when work on private projects. tend utilize double underscore .banner__image
, .banner__image--large
(you if read the bem specs).
at work our team utilize bem modification though, 1 underscore or hyphen (for modifiers) .banner_image
, .banner_image-large
.
if not using bem should write classes hyphen (-). .banner-image
, .banner-image-large
. examples can @ twitters bootstrap construction class names, or other site infact.
html css camelcasing bem
No comments:
Post a Comment