PHP development project of a little experience, PHP development projects
It is best to store all the variables in an array, so that in the development of the program can bring a lot of convenience, especially when the program is very large. The name of the variable is suitable for its own habits, whether it is in Pinyin or English, at least should have a certain meaning, in order to fit the memory. The name of the variable should be normalized to avoid conflicts with keywords in PHP. Second, the function PHP comes with a lot of functions, which brings a lot of convenience to our program writing. Of course, in large programs we tend to define a number of functions ourselves, dozens of or even hundreds. Of course, in the use of classes in the program is not called functions, it should be called methods, here for the moment not to talk about the use of class methods. More functions, it will inevitably confuse. Is there any way to solve this problem? You can refer to the use of the variables above, as well, we can also put our own defined function names in an array. In this way, we can check the function in the array at any time to see if there is no duplicate definition. If the phenomenon of repetition is found, it can be changed immediately. Increased the speed of program writing. The use of functions there is also a point to pay attention to the global variables, although this is a small problem, but can not be ignored, or when a variable thousand calls out of the time, hehe. Let's see if the variable is declared as a global variable in the function. Third, the program's comment Program comments are important, whether it is C or Java, the program's comments can often reflect the programmer's good programming style. Whether it is for the people or their own good, of course, we are talking about the development of large-scale projects, the spirit of teamwork is very important. When your program is written, it's hard for others to understand how to talk about teamwork. Of course, if you develop this big project by yourself, it's another matter, or you're in a tight time, too late to write a comment. In general, however, this is a rare situation. Unless it's really a very moment. A good programmer will definitely annotate every program he writes, even if it's for his own viewing. Iv. What text editing software is used to write the source program This is actually not certain rules, as long as they like it. I prefer Phpedit, perhaps is used to, now feel a left Phpedit write PHP do not feel, beginners php time with Notepad write, because the program is relatively simple. So with Notepad to deal with the line, for hundreds of lines of the program, with Notepad is obviously inappropriate. Working with Phpedit will increase several times, even if you never use it. |
Detailed Description: http://php.662p.com/thread-277-1-1.html
can PHP develop large projects?
Of course. Facebook is PHP, and of course it implements some of the high-performance expansion itself.
In addition, Google also has PHP code
PHP to develop large-scale projects, using what framework is better?
Yii is quite good, tp that thing. For beginners,
http://www.bkjia.com/PHPjc/848235.html www.bkjia.com true http://www.bkjia.com/PHPjc/848235.html techarticle PHP Development of large projects a little experience, PHP development project One, the best variable is to store all the variables in an array, so in the development of the program can bring a lot of convenience, special ...