cross-posted from: https://programming.dev/post/1923251

Some frontend developers know the BEM methodology as a naming convention for CSS and they create a disgusting #webcomponents. I’ve explain the essence of BEM and shown the benefits for your frontend projects.

Feel free to share it with a people who tells you “i use CSS-modules, so i no needs a BEM”

  • vitonsky@programming.devOP
    link
    fedilink
    arrow-up
    1
    ·
    1 year ago

    If you think a Object Oriented Programming is a framework, then you can think about BEM like a framework too. But a correct word is a methodology. A “framework” have too generic meaning.

    Methodology gives us a methods how to improve software quality. This methods like an interfaces in programming that we must implement as programmers

    • g6d3np81@kbin.social
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      I see. I might have done things in similar way without realizing what it is by just focusing on decoupling and reusability.