Slide 51
Slide 51 text
Custom Component の欠点
Each component/scope adds cognitive overhead.
They can complicate the graph with combinatorics (e.g. if the component is a child of
the ViewComponent conceptually, two components likely need to be added for
ViewComponent and ViewWithFragmentComponent).
Components can have only one parent. The component hierarchy can’t form a
diamond. Creating more components increases the likelihood of getting into a
situation where a diamond dependency is needed. Unfortunately, there is no good
solution to this diamond problem and it can be difficult to predict and avoid.
Custom components work against standardization. The more custom components are
used, the harder it is for shared libraries.
50