Replies: 3 comments 1 reply
-
Про кросс-импорты фич и сущностей |
Beta Was this translation helpful? Give feedback.
-
RFC 1. Explicit index files for every pair of slices that need cross-importing
I suggest to use the following convention:
Advantages over plain cross-importing
VariationsThe name and the special symbol of the special segment are subject to change. The special symbol was introduced to minimize collisions with existing segments as well as to delineate this as a more advanced concept. This convention was inspired by meta-categories (in Russian) in the Virtual Nesting methodology. How do we teach this?I think it's best not to mention this at first when explaining the principles of FSD. The explanation of layers will not change, except, maybe, for a side note that links to a more advanced article. That article will introduce this convention. We should also add an entry to the FAQ that will link to that article. That way, we avoid creating too many exceptions for our rules and lead beginners to the more difficult yet more rewarding path of separating domains (encouraging them to think). |
Beta Was this translation helpful? Give feedback.
-
Про кросс-импорты в слоях
Beta Was this translation helpful? Give feedback.
All reactions