One, I am a strong supporter of early and often compiled. In general, after you have written each method or a bit of difficulty, try to build the code. This is a good habit, because if the amount of code added since the last successful compilation is small, you can easily narrow down the compilation error range. This method also limits the number of errors or warnings received. If you have written 2000 lines of code before you start compiling, you are likely to be overwhelmed by a lot of errors (or to less warnings). Sometimes it is also difficult to find the source of these errors, because the errors given by the compiler and the linker are often somewhat ambiguous.
Second, there is no point in trying to reinvent the wheel. Others have discovered a number of solutions to problems encountered during the software design process. These solutions have become design patterns. The key point of these design patterns is to provide the developer with an effective design in a form that everyone can understand. These patterns are proof of time and provide a common glossary that is useful when you communicate your design to other developers.
Reference: iOS database application Advanced Programming (2nd edition)
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
ios-Writing code considerations