Summary of seven capabilities that php programmers should possess

Source: Internet
Author: User
What kind of ability should php programmers have to achieve better work and a better development direction? In China, I don't think you will write code for a lifetime. That's impossible. What do you do after the prime time? Read this

What kind of ability should php programmers have to achieve better work and a better development direction? In China, I don't think you will write code for a lifetime. That's impossible. What do you do after the prime time? Read this

I. php capabilities

1. You can write some code in the understanding stage, because it is completed with the help of the manual and google. Variable definition is messy, N functions are unknown, and it is slow to start. Think of what to write, code writing is messy, and maintenance is troublesome in the future.

2. You are familiar with the phase and often look up functions. I have read the manual and done it twice. You are familiar with common functions. Later maintenance brings you a lot of pain. You began to find that your code has many shortcomings and began to think about how to plan your code from the project perspective if you improved your code, instead of thinking about what to write, knowing how to reduce redundant code, making your code clear, and knowing what kind of code is easy to write. The basic code specifications have been formed. In order to improve myself, I will go to some technical forums to study and study.

3. At the very familiar stage, I wanted to write well. Now I don't know the degree of proficiency, nor did I hear people say they are proficient in PHP, so I am very familiar with it. At this stage, I think you have moved from process-oriented to object-oriented. I personally think the biggest benefit of object-oriented is that it makes the entire project functional, modular, post-maintenance, revision, and upgrade very convenient. Isn't development the same if there is no object-oriented language. in this period, you have already studied one or more frameworks. Based on your actual project experience, you can create your own framework in your mind. This framework is the most suitable for you. In addition, this framework can be applied to actual development to improve development efficiency.

If someone can constrain you to write code according to the idea of OOP when you write code, then you will meet the VIP. It is not that easy to change the code when it is difficult to develop code habits.

2. database capabilities

Mysql is the most widely used for projects using php, followed by pgsql. Because the two of them are free of charge. Haha, take mysql as an Example

1. Understand the stage, know what mysql is, write some simple SQL statements, design simple tables, and know how to use database management tools (such as phpmyadmin)

2. Familiar with the phase, know how to write efficient SQL statements, understand the indexing principle, know how to create indexes, write some stored procedures, triggers, and so on, can be analyzed through various means, test the database. For example, you can use mysqlslap for stress testing. You can use explain to analyze SQL statements. You can use slow queries to analyze which SQL statements really affect mysql running. You can use dbdesigner4 to analyze which SQL statements affect mysql running, mysql workbench is designed as a database. It can query and analyze mysql environment variables in the command status to analyze the mysql running status and so on.

3. In the familiar phase, I am very familiar with the principles of different storage engines. I know how to optimize the storage engine by modifying the configuration file, and how to optimize the maximum number of connections of the database, know how to optimize mysql I/o bottlenecks, add storage engines or plug-ins to mysql databases for project needs, know how to build Database clusters, and monitor the running status of databases.

3. html and css capabilities

Php is a scripting language. In most cases, php is used as a website. Although it is a website, it must be inseparable from html and css.

1. Understand the stage, know what html tags are for, write html on your own through the network and manual, know what css is going on, and write some simple styles in html.

2. Familiar with the phase. css can be used to design some simple la S. css can be written into files separately, and css syntax rules and inheritance can be familiarized.

3. very familiar with the phase, able to design good CSS and manage these CSS files to minimize redundant code. Know how to write code that is conducive to search by search engines, such as title, h1, and h2. And so on

For php programmers, it is not necessary for you to design pages, but to give you a page, you need to know how to modify CSS files, html should not be said to be sure to master.

Iv. js capabilities

Improving user experience is an important sign that a website can stay with others. This requires JS.

1. Understand the phase, understand the basic syntax of JS, know how to debug these programs, and write some simple functions.

2. I am familiar with the JS syntax, functions, and regular expressions. I can use js to write some special effects, and now I am using JS to write special effects, this is a very tiring thing. I started to try jquery and prototype and explain some basic syntaxes of jquery and prototype. I am personally opposed to the JS framework like jquery and prototype without learning JS.

3. very familiar with the phase. With the help of the framework, I Can skillfully write code with the idea of OOP, instead of accumulating functions one by one. I am proficient in using jquery and prototype ajax, or some ajax frameworks on the Internet, such as (ajaxrequest), do not directly write the active control. You can use network resources to complete various special effects.

For large companies, JavaScript programmers are generally involved. Small companies basically do not have them, either to programmers or to artists. Generally, artists are not programmers and have no programming Foundation. Therefore, it is difficult to learn JS, but jquery is easier to learn because css controls html, similar to jquery's html control method (similar to css and jquery), many companies have handed over special effects to the artist.

5. apache and other capabilities

I personally think that apache is the most widely used for running php until the directory ends. A lot of websites have been arguing about NGINX for a while ago, which is 10 times better than apache, I think it is better to try it yourself. Take apache as an Example

1. You can install and configure apache in either linux or windows, and know how to add a php model. If the interviewer asks you why apache can explain the php code, how do you answer this question. Understand the basic configuration of apache and solve problems encountered during startup.

2. Familiar with the phase, know how to add new modules to apache, how to rewrite the url, anti-leeching, IP restrictions, etc.

3. Familiar with the phase, know how to use apache to cache images, use apache for load balancing, know how to use the AB command for pressure, and analyze logs using tools, through analysis, we can optimize apache and know how to build multiple virtual hosts. We have practical operation experience on common apahce modules.

Monitoring and maintenance of apache is generally done by O & M personnel or project managers. I personally think it is best to know a little about it, because it is not so easy for you to be fooled, it is also necessary for your future transformation.

Vi. linux System

Why should we master the linux system? Most websites written in php run in linux or freebsd. It is better to master the linux system for future development. I would like to thank my friend Wang Yang for bringing me into the linux world. When I came in, I found that the world is wonderful. Now I basically don't need windows, occasionally, when you play a game, you can enter it. in linux, you don't have to worry about viruses. in linux, viruses are rare and you don't have to worry about it. XX and XXX scan your hard disk. Haha

1. Be familiar with the phase, install the linux system, and be familiar with common system commands.

2. In the application phase, you can install and configure apache, php, mysql, svn, memcache, squid, lvs, and other necessary tools for web projects in linux, it can analyze its status through logs. Be familiar with shell and be able to write some simple shell scripts.

7. Connectivity

This is very important and has been ignored by more and more people. In fact, as programmers are quite familiar with it, the root computer has the most time to deal with it. Maybe it is because of this, it is difficult, or it may be that the brain is bound by the rigor of the program. What you say is too professional, and others may not understand it. Therefore, it is easier to communicate with others at ordinary times, especially from the perspective of non-technical personnel.

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.