Ditch storyboards if you are an absolute beginner in learning iOS development.

Internet is full of information covering advantages of Programmatic Views over Storyboards if you are a proficient iOS developer. If you are reading this, chances are that you want to learn or are in the process of learning iOS development. In this post, I will briefly mention why you should avoid using storyboards even as an absolute beginner. For starters, it is important to understand that there are two different types of approaches while creating Views in iOS app development – one, creating views using Storyboards, and two, creating views programmatically. At first, storyboards may seem like a very attractive option due to the ease at which you can create views. Due to its drag and drop functionality, it almost makes an aspiring iOS developer feel invincible, until they come across a much more complex project and hit the wall. All of a sudden you will be required to write complex code for your model and controller and the fall from invincibility will feel like a skydive with a failed parachute. This is why I recommend always starting to learn iOS development using the second approach – programmatic views – while avoiding the learning curve shortcut called Storyboards.

When a developer uses storyboards to create views of an app, the developer generally dedicates more than 50% of the development time creating storyboards. This is a significant amount of development time that you could have used to achieve fluency in Swift. On the other hand, learning to create views programmatically will force you to just simply focus on actually learning Swift, understanding the logic and getting used to the syntax. It is absolutely the best way to learn Swift (and or Objective C) as a language and sharpen your coding skills. For me, this is the biggest reason why you should start learning iOS development and Swift by coding your way through creating views.

There are many other advantages of programmatic approach over Storyboards. In my view, two of the most significant advantages are:

  • Programmatic views result into rapid development cycles. Once a developer is used to creating views programmatically, views can be created much quicker when compared to using storyboards. It is all about the speed in the world of app development.
  • It is a lot easier to collaborate with a large development team if the app is created using programmatic views. Sharing and collaborating using storyboards is extremely difficult.

Enough talk already.. In my next post, I will show you how to create views programmatically using Auto layout and show you the simplest ways to approach it.

Daxes Desai

In my 10 years of iOS development experience, I have developed and helped monetize apps in various categories. So let’s talk!

Let's talk!

©2017 Apportunist.com - All Rights Reserved
@pportunist