Ask PHP Daniel for guidance on improving

Source: Internet
Author: User
Ask PHP Daniel to guide the improvement
Today I took part in a coding Dojo (programming Dojo), and then I had some doubts and I hope Daniel can give me guidance.
I am a phper, now in an e-commerce company, is currently a Daniel and I a programmer, we use the thinkphp framework, each time to do the function feel that they do quite a lot, but after the completion of all kinds of things found themselves do not have the technical content, no use of object-oriented ideas, and no use of design patterns, Just some logical design and solve the problem, now do not know how to improve in PHP, I should consciously write some object-oriented thinking of the program? I should later how to improve themselves, I hope that PHP Daniel can not hesitate to enlighten, younger brother grateful ~ PHP Programming Object Oriented Programmer

Share to:


------Solution--------------------
On the basis of the framework, think about how you rely on the framework, that is, why you can use the framework to do so?

For example, every time you write a business logic, you write a Controlle and action, and then you can access it through a URL, do you think about what logic has been handled from the URL request to the action? Can you clarify these logic? Can you recognize how these logics interact with each other?

What is the real reason why you have to raise some things that you know for granted? Slowly will improve, that is, not only know it but also know its why.

------Solution--------------------
The knife cut the big tree this sentence often says, now if has the chainsaw, also takes the knife to chop the tree the person is really stupid to die
But how to cut down the big tree cutting, its principle is to understand from a small knife-longitudinal force is called cut, cut, transverse force called saw
The longitudinal force is laborious, the transverse force is labor-saving, the number of transverse saws is proportional to the wood thickness, and the frequency (is the number/time) is related to the power (energy)
Therefore, the power to increase the frequency of saws (unit time) to achieve the purpose of saving time and effort

Holding a chainsaw (tool, frame) can really improve productivity, and the accumulated work experience is on this tool, such as how to hold a chainsaw is not easy to get rid of ...
But it's hard to understand how it works, and ultimately it takes a knife to understand how the wood is cut.
What if we only know the electric saws and go to a new wood yard without electricity?

If you build a solution to a tool without having to focus on its principles, you have to make sure that you have this tool around you in the future.
For example, the person who intends not to leave the city for a lifetime, he only need to know the road signs this tool, do not need to understand what lost the star/compass to identify the direction of knowledge (alas, the city can see the stars is not easy); but if you want to travel around, and not sure to go to a new place there is no sign It's better to master the basics from the lower level.

If you want to learn to improve your theoretical skills, leave the "Advanced and excellent" tools on your hands.
Not sure can have concrete precast parts, or learn how to meddling good

Anyway, for decades, I've never heard of players from Brazil, North Korea, and Iraq complaining about the bad site and the stumbling of the lawn.
  • 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.