How to improve the efficiency of PHP programming?

Source: Internet
Author: User
PHP Novice, write code is very slow, a function to write 2 hours (constantly modified, until the most perfect). After writing, come back to see your own code, should be 10 minutes to write well.

This is always the case, how to do? Hope to impart experience

Reply content:

PHP Novice, write code is very slow, a function to write 2 hours (constantly modified, until the most perfect). After writing, come back to see your own code, should be 10 minutes to write well.

This is always the case, how to do? Hope to impart experience

    1. Write more code, write more code, write more code

    2. Read more PHP documents (several functions)

    3. Multi-Summary (blog form record, etc.)

I recommend two books to you.

    1. Many examples of PHP and MySQL Web development can be written on their own, don't look.
      2. "In-depth PHP object-oriented, patterns and practices" in a lot of things do not worry about, while writing code in real-time experience, I have looked over two times.

Of course, the reading period does not improve too much efficiency, but after that is not necessarily the →_→

I often write for several hours and then delete the rewrite to say.

You this should be the foundation is not firm, if want to develop quickly, first foundation firm, then big project can use frame, small project you can try to accumulate some commonly used function and class, time is long, technical solid, good

Work is often carried on

Experience

So all is the experience of experience, nothing, write more.
Everyone will eventually grow up, the only thing that can work is the speed of growth.

  • 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.