Sharing of IOS programming experience (Niu Ren)

Source: Internet
Author: User

Arranged in different order:

1. When performance encounters problems, if you can perform computing and processing at the application layer, take it out of the database layer. Sorting and grouping are typical examples. Performance improvement at the application layer is always easier than at the database layer. Just like For MySQL, SQLite is easier to control.

 

2. Avoid parallel computing if possible. If it cannot be avoided, remember that the greater the capability, the greater the responsibility. If possible, avoid direct thread operations. Operate on a higher abstraction layer as much as possible. For example, in iOS, gcd, distribution, and queue operations are your good friends. The human brain has not been designed to analyze those infinite temporary states-this is my painful lesson.

 

3. Simplify the status as much as possible and make it local as much as possible. Applies first.

 

4. The short and composite method is your good friend.

 

5. Code comments are dangerous because they are easily updated in a timely manner or misleading, but they cannot be the reason for not writing comments. Don't comment on things, but strategic long comments are needed in some special places if needed. Your memory will betray you, maybe tomorrow morning, maybe after a cup of coffee.

 

6. If you think that a use case scenario may be "no problem", it may be the cause of a painful failure in the released product one month later. Do a test, test, and verify.

 

7. If you have any questions, contact all relevant persons in the team.

 

8. Do the right thing-You usually know what it means.

 

9. Your users are not stupid. They just don't have the patience to understand your shortcuts.

 

10. If a developer is not scheduled to maintain the system you have developed for a long time, be alert to him. 80% of blood, sweat, and tears flow in the time after the software was released-at that time, you will become a man of the world, but also a more intelligent "expert ".

 

11. The task list is your good friend.

 

12. take the initiative to make your work more fun. Sometimes you need to work hard.

 

13. Quietly collapsed, and I will still be awakened from this nightmare. Monitoring, logs, and alarms. Be clear about various false alarms and unavoidable sensory inflations. Keep your system sensitive to faults and give timely alerts.

 

14. complexity is an enemy.

 

* Side note: the conversation between Mr. Rich Hickey and Mr. Robert Martin's book clean code has recently brought a very positive impact to my work.

Related Article

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.