I
I
ivodopyanov2013-11-28 06:50:19
Google
ivodopyanov, 2013-11-28 06:50:19

What is the difference in page design approaches between BEM and GWT?

I'm new to BEM and good to GWT, so every time I see the first set of letters, I have a question:
What's the difference?
In GWT, pages are made up of sets of widgets independent of each other, each of which encapsulates its own small html + a small css cascade that is superimposed on html and does not depend on the css of other widgets + its own js. This achieves code reuse, the ability to quickly change the page, etc. It is possible to declaratively describe the page structure using XML in terms of widgets. In CSS under GWT, there are all sorts of goodies such as conditional operators and the ability to call static class methods.
GWT 1.0 was released in 2006.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Yaroshevich, 2014-04-09
@qfox

Probably because in 2006 no one thought how far the web would go.
html vs bemhtml+bemjson i.e. declarative templating. If there is something similar in GWT (such as not html, but xslt, and at the input xml with data), then in this regard they practically do not differ either, it’s just timely and works faster (xjst + json).
In the BEM block, you can add some server functionality, documentation, and much more - how about GWT?
Block blending - how about that?
Native js support (both server-side and browser-based) ?
i-bem.js ?
I think half of it is definitely not in GWT, but the roots are clearly similar, thanks for refreshing the memory of this tribum.
Well, and most importantly, this is a discussion of the difference in tools, where GWT has staked out a clearing for a very long time. And BEM positions itself primarily as a methodology, not a framework.

Q
Quber, 2013-11-28
@Quber

I only know BEM. But IMHO I wouldn't use either. Today, by the way, there was an article on Habré, read: Good layout designers go to heaven, and bad ones go wherever they want, or “Why doesn’t BEM bring happiness?”

K
KEKSOV, 2013-11-28
@KEKSOV

This page http://ru.bem.info/method/history/ helped me in understanding BEM. By reading it, the range of tasks for which the introduction of BEM can make sense becomes clear.

I
ivodopyanov, 2014-04-09
@ivodopyanov

What does it mean to "put server functionality and documentation into a BEM block"?
GWT is the client side. The server may be Java, may be PHP. Therefore, there is support for client-side native js, but there is no connection to the server-side one.
Also GWT is Java, in which mixins appeared only in the latest, 8th version. So they are not here yet.
i-bem.js is for implementing classic OOP in js (judging by the presentation tech.yandex.ru/events/yasubbotnik/kiev-may-2012/ta... )? Then GWT has it by default.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question