How to improve PHP programming efficiency?

Source: Internet
Author: User
New to php, it is slow to write code. it takes two hours to write a function (continuously modified until the optimization is the most complete ). After writing the code, you should be able to write it in 10 minutes. This is always the case. what should I do? Hope to teach new users of php, code writing is very slow, a function needs to be written for 2 hours (constantly modified until the optimization is the most complete ). After writing the code, you should be able to write it in 10 minutes.

This is always the case. what should I do? Hope to pass on experience

Reply content:

New to php, it is slow to write code. it takes two hours to write a function (continuously modified until the optimization is the most complete ). After writing the code, you should be able to write it in 10 minutes.

This is always the case. what should I do? Hope to pass on experience

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

  2. More php documents (more functions)

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

I recommend two books for you.

  1. You can write many examples in PHP and MySQL Web development by yourself.
    2. do not worry about many things in "go deep into PHP object-oriented, patterns and practices". I have read it twice while writing code.

Of course, the efficiency cannot be improved much during the reading period, but it will not be necessary afterwards.

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

You may not have a solid foundation. if you want to develop quickly, you must have a solid foundation. then, you can use a framework for large projects. for small projects, you can try to accumulate some common functions and classes. it takes a long time, just with solid technology

Work is often carried

Experience

So it's all about experience. it's okay. write more.
Everyone will eventually grow. The only thing they can do 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.