ios-Writing code considerations

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.