Today, app development businesses are coming up with fresh, out of the box ideas for the web and mobile applications, for both Android and iOS. In a digital world where there are bundles of new apps being designed every day, how would you strive to be a better developer? Is it by –
A) improving quality of apps developed or
b) focusing on output by speeding speed of development
Ideally, a good developer focuses on both these aspects. In this article, we are going to discuss simple tricks to make your iOS app development faster while maintaining a standard good quality. Anyone can create an app, but not so many people can sustain a certain level of coding style and build source codes that will be reused in other projects.
1. Using code snippets
If you are writing a thousand lines of source code day after day every day, a code snippet may just save you. A lot of a developer’s time goes into writing (or even copying) these lengthy codes a daily basis. Plus, they don’t have to be changed much and can be tweaked to suit your needs. This is where code snippets come handy. You can use Xcode as it supports code snippets. Now picture this: using code snippets for different iOS apps where you type something and the entire 20 line code appears right where you want it. Time saving, isn’t it?
2. Storing projects in individual repositories
When you are building a new app, remember to create a new .git repository so you can better manage your code. Having a separate repository and using source control has the following benefits –
• It becomes easy for you to share your code with designers, colleagues, clients and with your Mac Pro or Macbook Pro.
• You can create different branches for every bug or feature, making it easy to track progress and develop them individually.
• If you are working as a team, things become rather evident as now you get to know who messed up. With Xcode’s built-in feature called Blame, one can easily see find out who created the method that makes the app crash.
• Good backup solution.
3. Aligning User Interface elements using shortcuts
Not many people are aware of this feature as it is hidden. Chances are you either learn it from someone or somewhere, or stumble upon it. Simply select a UI item that you wish to place and press ‘Alt’ on your Mac keyboard. You will see some weird numbers and arrows on the app’s view. This will help you align your UI elements. Choose the element you wish to align, then press Alt and use the arrow keys on the keyboard to align it to a suitable place.
Other methods that can help you save precious time include writing test cases and writing reusable codes.