I
I
Islam Ibakaev2017-02-12 13:18:29
css
Islam Ibakaev, 2017-02-12 13:18:29

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

3 answer(s)
D
dom1n1k, 2017-02-12
@devellopah

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.

O
Oleg, 2017-02-12
@werty1001

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.

B
Bjornie, 2017-02-12
@Bjornie

I write everywhere in BEM by default. I like this naming option, and I don’t want to give it up completely. I write wherever I can, even on bootstrap, where I name elements (not bootstrap ones) inside col, row, container...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question