Andrey (azangru) wrote,

I wonder whether this (surely very smart; he is a contributor for a CSS-in-JS library) developer understands the semantics of BEM. Can a "Submit" be an element within the my-button block? I would have thought that submit is a variant (modification) of my-button.

Also, it’s interesting that in the English-speaking world the conventional separator between "blocks" and "elements" is a double hyphen. From what I heard, originally in Yandex they used double underscores for that purpose, and a single underscore to separate a modifier from an element.

UPD: Actually, the original separators can still be seen on a Yandex page about BEM as a methodology:

  • (no subject)

    To unscramble an egg, by the way, would be a closer idiomatic parallel to ungrinding ground meat, and in spite of Julia Ioffe, is just as dark, blunt…

  • (no subject)

    Thought of this phrase today for some reason, then thought whether it exists in English (putting toothpaste back into the tube came to mind), then…

  • (no subject)

    I think many (perhaps most) people are totally fine with being a free-rider, a bludger, or a sponge (remember Trump who said that he pays little…

  • Post a new comment


    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.