How to organize your mobile projects in an easy and flexible way using 4 layers

When is too much code in a class?

In which component should I put the API logic?

How do I test this massive view controller?

How can I continue development now that the web service is down?

How can I prevent a new UI change breaking my entire code structure?

How to group components?

Benefits

Conclusion:

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store