News for hackers. Stuff that matters.
Re:Swift Protocol Oriented Programming and Testing by swiftaccount1 on Friday July 30, 2021 @02:24PM (#28010776)
That's an interesting article. I find iOS architecture fascinating and spend a lot of time thinking about it. It seems like "MVC" in common usage (based on talking to other iOS devs) means spaghetti, but I guess it doesn't have to be like that.

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!

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.