Ask for advice on improving PHP performance

Source: Internet
Author: User
Ask for guidance from the PHP experts. today, I participated in a Coding & nbsp; Dojo (programming Dojo). Afterwards, I had some doubts and hoped that the experts could provide guidance. I am a PHPer and now I am in an e-commerce company. I am a big bull and a programmer. We use ThinkPHP framework. every time we make a function, we feel like we have done a lot of work, however, after completing the work, I found that my own work was not technically involved. ask the PHP experts for guidance and improvement.
Today, I attended a Coding Dojo program, and I had some questions. I hope Daniel can give me some guidance.
I am a PHPer and now I am in an e-commerce company. I am a big bull and a programmer. We use ThinkPHP framework. every time we make a function, we feel like we have done a lot of work, however, after completing these steps, I found that what I did was not technically competent, did not use object-oriented thinking, nor did I use design patterns. I just designed and solved some problems logically, I don't know how to improve my PHP skills. Should I consciously write more object-oriented programs? How can I improve myself in the future? I hope the PHP experts can give me some advice. I am very grateful ~ PHP programming object-oriented programmers share the following:
------ Solution --------------------
Based on the framework, think about how you rely on the framework. that is to say, why can you use the framework?

For example, every time you write business logic, you write a controlle and action, and then you can access the service through the url. Have you ever thought about what logic has been processed from the url request to the action? Can we clarify these logics? Can you realize how these logics interact with each other?

What are the real reasons why I naturally know something? It will be improved slowly, that is, not only knowing it, but also knowing it.

------ Solution --------------------
It is often said that if there is an electric saw and someone who uses a knife to cut a big tree is really stupid.
But how does an electric saw cut down a big tree? the principle is to understand it with a knife. vertical forces are called cutting and cutting, and horizontal forces are called sawing.
Vertical forces are laborious, and horizontal forces are labor-saving. the number of horizontal saws is proportional to the wood thickness, and the frequency (that is, the number/time) is related to the force (energy ).
Therefore, adding power increases the saw frequency (the number of times per unit time) to save time and effort.

The electric saw (tool, framework) can improve work efficiency, but the accumulated work experience is on this tool. for example, it is not easy to hold the electric saw ......
However, it is difficult to understand the working principle. In the end, we should take a knife to understand how to cut wood.
What if I only know how to use an electric saw to go to a new wooden farm without electricity ??

If you build a tool to solve the problem without studying its principles, make sure that you will have this tool around you in the future.
For example, if a real person wants to leave the city for the rest of his life, he only needs to know the road card tool, and does not need to know the lost view of the stars/the compass to identify the direction (alas, it is not easy to see the stars in the current city). but if you want to travel around, you are not sure whether you want to go to a new place or not, it is better to master the basic knowledge from a low level.

If you want to learn and improve your theoretical skills, let alone the "advanced and excellent" tools on your hands.
If you are not sure you can have concrete pre-fabricated parts, you should learn how to make it better.

I have never heard of players from Brazil, North Korea, and Iraq over the past few decades complaining about poor venues and poor lawns.

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.