3 ms·
I don't get it. If your models grow too large and do too much, then you refactor them into models that each have a single responsibility. DCI could still be a
by yxhuvud 15y ago
I don't get it. If your models grow too large and do too much, then you refactor them into models that each have a single responsibility.
DCI could still be a good idea if the abstraction it provided is good. I'm not convinced that is the case. The main problem I have with it is that it doesn't scale down as well as MVC do, meaning that if you start out with it you will have a lot of mostly empty classes. No gain at all in that case.
In the other scenario when you have some really big models, then you should refactor them anyhow. Will the DCI pattern be a good fit then? Perhaps, perhaps not.