Home >Backend Development >PHP Tutorial >Several things that PHP developers cannot ignore_PHP Tutorial

Several things that PHP developers cannot ignore_PHP Tutorial

WBOY
WBOYOriginal
2016-07-15 13:33:59760browse

By analyzing

1. Framework

The framework can be said to be one of the most important issues for PHP developers. . There are many ways to develop web applications with PHP, and there are many open source frameworks that can be used to help rapid development and maintain higher consistency and effectiveness. Among the better frameworks include cakePHP, Symfony and CodeIgniter. Many frameworks also follow the MVC design pattern. If you have worked in this pattern, you will be familiar with it. After a while, you can even create the framework according to your needs.

2. Template Engine

If a PHP developer is not using a framework to enforce a specific design pattern, then what you want to use is a template engine. Whether you create your own or use an existing template (such as Smarty), the template engine will keep your logic code independent of the HTML page (and related CSS/js/etc.). This greatly simplifies your code, makes modifications to the entire program quick and easy, and makes it easier for non-developers to modify your program.

3. Code Reuse

As I mentioned before, PHP has the best code reusability among the languages ​​used. From multiple small and medium-sized documents to entire database classes, PHP developers can freely choose to reuse existing code when needed. In fact, you can almost build an entire application without writing a single line of code.

4. Not redeveloping existing things

It is obvious that only a few PHP developers know that PHP itself has a lot to offer. Forget new libraries, or complex code routines - look at the PHP manual first. For example, have you ever heard of number_format(), parse_url(), wordwrap() or bbcode_parse()? Take a look at the entire function reference, pick a category, browse and you're bound to find something.

5. IRC is a pleasant thing

When PHP developers have a complex problem that cannot be solved, they can go to IRC. PHP's unofficial support channel, many experienced developers are fascinated by it. You'll need an IRC client. If you're using Firefox, ChatZilla is a great plugin. When you need help, paste your code with irc://irc.freenode.net/PHP as the header. Post your question and wait patiently; some kind person (or people) will give you the answer. When the PHP developer has the answer, think about other people who need help. For PHP's huge function library, no one is the master; on IRC, pooling everyone's knowledge can solve any problem.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446017.htmlTechArticleBy 1. Framework The framework can be said to be one of the most important issues in the development of PHP developers. There are many ways to develop web applications with PHP, and there are many open source frameworks that can be used, which can...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn