It is important for a programmer to be lazy.

Source: Internet
Author: User
Why do people live ??
Rello said that people live to eat!
For a NLE ProgramFor those who come to dinner, a project is usually not 100 or 200 rows CodeA lot of code is required to form a software.
If the same AlgorithmEach place I use less code than you, so if there are ten places that use this algorithm, then I will use 10 rows and one hundred rows less than you, and then I will be more efficient than you, the promotion is definitely faster than you, and the salary is definitely more than you.
So laziness is an important programming method,
There are many ways to be lazy: Try to call a function in the same place, and never use case in static places where dynamic processing can be separated. but lazy has to have a premise, to achieve the same effect, you must find the best way to achieve the same effect. That is to say, you must carefully consider it.
It's also easy to say, so it's not easy to say. Maybe everyone will understand it slowly.

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.