Be the right posture for PHP programmers

Source: Internet
Author: User
Tags functions implement learn php php code yii

I am a junior dog, self-study php time has been nearly two years, feel that they are still an entry-level player. Let's talk about how you came to the next step.

1. Official documents

Yes, I still insist on that point: 80% of the code problems can be solved by carefully reading the document.

So if you're going to learn PHP, you can't avoid the official PHP document. You may have just started by following a teacher's online instructional video to learn how to program very well. But no matter how you look at the video, you finally have to go back to the official website, you don't have to be down with every function, but for some of the most common functions and core concepts , you can save them to the memory area of your brain to make sure they're available whenever they need it. Some of the less commonly used functions you can only remember the approximate, not sure time to come back to see it. But whatever it is, you have to read the contents carefully, including the sample code.

2. PHP Right WAY

I do not know how other people learn php to come over, I do not know whether they have found that there is such a good PHP learning materials. But I believe that if a person carefully read the contents of the PHP right WAY and have mastered most of the knowledge, the PHP engineer is promising. This is probably the difference between the January 8K and the one-month 5K, for a new PHP engineer who just joined the job.

3. Write More Websites

Programming in the final analysis is actually a craft, for the IQ of the same For programmers, the skill level is often about how much is practiced. Since PHP is inherently used to create Web Apps, there is no doubt that writing more code will make your own interesting ideas a Web site that you build with your code. Nothing else, just to practice, this process allows you to access more code problems, and once you have solved these problems, your experience has improved.

I have written several sites for so long and have been impressed by the following:

    1. Wrote a public-raised way to buy things site. Is that the things above can be bought by many people, and then turn to use, such as a book, 10 people bought the book together, these few people can share their books. This impression is profound mainly is the original PHP written, from the middle school to the database, Http,url, jump and so on.

    2. The second is a Yii 1.1 completely modeled on SF to write a question and answer community.

    3. The third is the background of the college, but also written by YIII, which mainly learned how to upload files Ajax, how to integrate in the application Ueditor

    4. The fourth one is a fan subscription star concert Information Service site. If users subscribe to interested stars here, once there is a concert to be held, we will send an email to users to remind users to buy tickets and so on. This site I have turned to the laravel.

    5. Finally this is the recent has been waiting for the record of the blog, has been using a third party blog platform, this time simply according to their own article needs to write a blog of their own use.

In fact, in the process of writing these things, the more problems you solve, the more you can improve your abilities.

4. The hands-on framework

writing code is really a craft, but after we've mastered enough basics, the question we should consider is how to create an application and how to write a better application faster. At this point, the role of the framework is reflected, it can not only improve your development efficiency, but also want to laravel such a framework can make you write code to become as natural as speaking, comfortable. Get a good idea of how the framework's MVC is implemented, and look at the framework's documentation, and think about what would be the best model if I wanted to expand the framework. Basically follow: Learning framework--"use framework--" extended framework--"The framework of" the source of contribution frame to learn a framework, almost all the knowledge of the framework, then your programming ideas and levels will be greatly improved.

Recommended frames: Laravel Slim Symfony Yii

5. Read Source

If you say that more code is a construction of learning, then the reading source mentioned here is to disassemble the learning. In the creation of the same time, you might as well see how those beautiful wheels are created to see how people solve the same problem is what kind of ideas, when you find great God's ideas so wonderful at the same time, you are imperceptibly absorbing the great God's ideas.

Edit recommendation

  1. 7 tools for parsing and parsing PHP code
  2. Four artifacts that make PHP programmers work more efficiently
  3. PHP to implement the simplest chat room application
  4. PHP web Common security vulnerabilities and defense methods for stations
  5. How to implement the socket server in PHP
"responsible editor: Wangxueyan TEL: (010) 68476606"  


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.