Answer the question
In order to leave comments, you need to log in
In what situations is it impractical to make up websites using the bem methodology?
How about simple one-page websites? Is it worth following the methodology always? In the end, the methodology is just a set of rules, following which will only bring benefits. And what about sites that are built on bootstrap or another css framework?
Answer the question
In order to leave comments, you need to log in
Websites are always useful.
It is inappropriate to drag BEM into small isolated code fragments - for example, proof of concept sketches, when you just need to quickly test / demonstrate an idea. Answers on the Toaster can also be attributed here. If we talk specifically about the site, that is, the finished product (even if it is small) - BEM will at least not hurt. Today, I wouldn't start typesetting without BEM, but anything that contains at least 10 classes.
PS I myself am always skeptical about all the hype about all the new and terribly fashionable technologies, but BEM is a really useful thing. Yes, and not so new - fragmentarily, his ideas flashed for a long time, including in my own layouts. But a locomotive was needed that would systematize and promote them.
PPS Of course, we are talking about the very methodology of naming classes, and not all the libraries-spaceships that Yandex gave birth to on this topic - that is already an amateur.
It's simple, if you use BEM, then over time you start thinking in blocks / elements and typeset everything according to the methodology, while the size of the project does not matter, it can be a landing, it can only be some part of the page or a huge site. Your entire stack will most likely already be sharpened for BEM, so typesetting according to the method is familiar and convenient, and most importantly, faster due to code reuse. It is not advisable to use BEM one-time when you are not sure that you really need it, because it will take time to figure out what and how, pick up (write) tools and all that.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question