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
-
Write more code, write more code, and write more code
-
More php documents (more functions)
-
Multi-summary (blog form record, etc)
I recommend two books for you.
-
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.