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
Write more code, write more code, write more code
Read more PHP documents (several functions)
Multi-Summary (blog form record, etc.)
I recommend two books to you.
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.