Many Controllers Make Light Work

Another interesting approach to ViewControllers. Using lots of view controllers, each responsible for a specific piece of behavior. For example, instead of common “analytics” code in a parent ViewController that all other ViewControllers inherit from, creating a tiny AnalyticsViewController and using that when needed. If you need motivation read “Composition over inheritance” in wikipedia.
http://khanlou.com/2016/02/many-controllers/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s