Re:Swift Protocol Oriented Programming and Testing
by smoldesu on Friday July 30, 2021 @04:37PM
(#28012081)
> I find iOS architecture fascinating and spend a lot of time thinking about it.
> It's an endless discussion with no right answer.
These don't seem like the hallmarks of a well-designed, mature platform.
To me that article proposes a more disciplined MVC than what I've seen in real codebases. I think a lot of the architectures people come up with (like the second one you linked) try to build that discipline in. I try not to be dogmatic and instead go to core principles. Do I know what this class is supposed to be doing? Are my data and view layers reasonably separated with minimal glue code? Can a new dev easily navigate this project?
It's an endless discussion with no right answer. Thanks for sharing!