Archetecture

https://medium.com/ios-os-x-development/ios-architecture-patterns-ecba4c38de52

Let’s define features of a good architecture:

  • Balanced distribution of responsibilities among entities with strict roles.
  • Testability usually comes from the first feature (and don’t worry: it is easy with appropriate architecture).
  • Ease of use and a low maintenance cost.

So the easiest way to defeat complexity is to divide responsibilities among multiple entities following the single responsibility principle.

Therefore, it is natural to have a mix of architectures in same app. For example: you’ve started with MVC, then you realised that one particular screen became too hard to maintain efficiently with the MVC and switched to the MVVM, but only for this particular screen. There is no need to refactor other screens for which the MVC actually does work fine, because both of architectures are easily compatible.

results matching ""

    No results matching ""