These are chat archives for bem/talk

15th
Aug 2014
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 04:53
Why documentation mentions lower redifinition level?
Sergey Berezhnoy
@veged
Aug 15 2014 09:28
it means lower in order of build: usually you have something like "core lib", "project level", "page level"
so the page level is lowest one and so on
but you can also use noDeps in same level — they will have top most priority among mustDeps/shouldDeps
Vladimir Starkov
@iamstarkov
Aug 15 2014 09:55
now I don't understand noDeps at all.
Sergey Berezhnoy
@veged
Aug 15 2014 09:58
it's much more ease then you can think about :-) it's just a rollback for particular dependency declaration — if you decl A->B you can later say "no, cancel deps A->B" — thats it!
Vladimir Starkov
@iamstarkov
Aug 15 2014 09:59
at build bem tools have graph of blocks with should and must connections to other blocks in graph. So if block1 connect to block2 with should or must connection, then if block2 have block1 in noDeps then all block1's connections to block2 cancelled?
Sergey Berezhnoy
@veged
Aug 15 2014 10:00
and do not take in mind any levels stuff — it gonna be intuitive if you start to decl what you want
Vladimir Starkov
@iamstarkov
Aug 15 2014 10:01
am i right with prev question?
Sergey Berezhnoy
@veged
Aug 15 2014 10:01
if b2 have noDeps to b1 it doesn't affect any b1 deps b2
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:02
does it affects dependencies in upper levels of declaration (for example bem-core)?
Sergey Berezhnoy
@veged
Aug 15 2014 10:02
b2 noDeps b1 affects only b2 *Deps b1
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:02
okay, suppose I have b2 in level1 and level2
and in level1 b2 is dependent on b1
but I write noDeps in level2
Sergey Berezhnoy
@veged
Aug 15 2014 10:03
@floatdrop yes, it affect any levels
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:03
okay
thanks!
should it be named ignore or exclude then?
Sergey Berezhnoy
@veged
Aug 15 2014 10:08
it can be and can not ;-) I'm not a fan of unnecessary renamings
there are to many synonyms ;-)
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:10
what about A shouldDeps B + B shouldDeps C
and A noDeps C?
Sergey Berezhnoy
@veged
Aug 15 2014 10:10
the main problem to understanding is not a name, but the semantic
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:11
and reverse example: A shouldDeps B + B shouldDeps C and C noDeps A (in case you are building C)
Sergey Berezhnoy
@veged
Aug 15 2014 10:12
noDeps affect only direct deps declaration and doesn't affect any indirect declarations
Vsevolod Strukchinsky
@floatdrop
Aug 15 2014 10:12
is is true @matmuchrapna ?
I heard we are ignoring i-bem with some mods
from block, that mustDeps i-bem
So in our case: b-page mustDeps i-bem, i-bem someHowDeps __dom_auto and b-page noDeps i-bem__dom_auto
I am pretty sure, that it is not direct declaration in our case