K
K
kid-programmer2014-09-05 00:15:26
css
kid-programmer, 2014-09-05 00:15:26

BEM for small and medium projects?

Recently, an article was published on Habré about using BEM, Yandex's BEM methodology on small projects . So, are you interested in your opinion on BEM? Do you use it, and if not, what method do you use to organize html, css for small and medium projects? And if so, do you use all sorts of things to generate html and css, or just take the class naming method and the structure of files and folders?
I’m breaking down myself and I can’t convince myself to start writing html not by hand, layout of an average project is not such a hassle, why all these monsters that you need to spend time on, study or am I wrong and is it worth it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
K
Konstantin Kitmanov, 2014-09-05
@k12th

If you plan to sit on medium-sized projects all your life, then you can, of course, without BEM and without preprocessors :)

M
Maksim Zverev, 2014-09-05
@m1skam

Here is an example of BEM layout for a small project https://github.com/alexbaumgertner/hunter-boat
There you can track commits and estimate labor costs.
Personally, out of laziness, I use static site generators for myself, in particular middleman. Anyway, basically, the customer needs to give the assembled html/js/css/img at the output, and what source codes there are not enough for him. True, I try to follow the BEM methodology.
Perhaps later I will switch to BEM itself when I’m not too lazy to configure the virtual machine (I work under Windows with a node there are problems there).

K
Konstantin Velichko, 2014-09-05
@Zoxon

BEM is a very cool thing, suitable for small and medium projects: There is
a very big chance that you will have to redo something
Code standardization (i.e. half of the markup is always there, you just need to paint it in the right colors)
And it is not necessary to write code in Bamtools, I for example, you can saw your bike github.com/Zoxon/gulp-front , of course, with your hands
. And BEM is not about class naming, although it is about it too. At first I also thought that these were only class names. BEM is about how to write less cohesive and isolated code.

Максим Гатилин, 2016-03-17
@gatilin222

На нашем блоге есть статья - КБЭМ - Контейнер, Блок, Элемент, Модификатор. Довольно подробненько описано)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question