Five concepts to be mastered by php programmers

Source: Internet
Author: User
Welcome to the Linux community forum and interact with 2 million technical staff to enter the five concepts that php programmers need to master: some of the php theoretical knowledge we learned from books is different from the actual programming. The real knowledge and experience should be obtained from the actual development. every php programmer should understand the following before developing a web application

Welcome to the Linux community forum and interact with 2 million technical staff> enter the five concepts that php programmers need to master: some of the php theoretical knowledge we learned from books is different from the actual programming. The real knowledge and experience should be obtained from the actual development. every php programmer should understand the following before developing a web application

Welcome to the Linux community forum and interact with 2 million technicians>

Five concepts that php programmers need to master:

Some of the php theoretical knowledge we learned from books is different from the actual programming. The real knowledge and experience should be obtained from the actual development. every php programmer should understand the following five things before developing a web application:

1. template engine

If you are not using a framework to execute a specific design pattern, you want to use the template engine. whether you create or use an existing template (such as Smarty) by yourself, the template engine will make your logic code independent from the HTML page (and related CSS/js ). this greatly simplifies your code, makes modifications to the entire program fast and simple, and makes it easier for non-developers to modify your program.

2. php framework

The framework is one of the most important issues in php development. there are many ways to develop web applications using php. There are many open-source frameworks that can be used to help rapid development and maintain higher consistency and effectiveness. 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 a framework based on your own needs.

3. code reuse

As I mentioned before, php is the best language for code reuse. from many small and medium documents to the entire database class, php developers can freely choose to reuse existing code when needed. in fact, you can build the entire application without writing a line of code.

4. IRC is a pleasant task.

When you have a complicated problem that cannot be solved, you can go to IRC. many experienced developers are fascinated by the unofficial php support channels. you need an IRC client. If you use Firefox, ChatZilla is a good plug-in. When you need help) will give you the answer. when you get the answer, consider other questions that need help. for php's huge function library, no one is in the fight; on IRC, gathering everyone's knowledge can solve any problem.

5. Do not re-start to find some items

Obviously, only a few php developers know that php has many advantages. forget the new library or complex code routines-first look at the PHP manual. for example, have you ever heard of number_format (), parse_url (), wordwrap (), or bbcode_parse ()? Take a look at the entire function reference, select a category, and you will surely find something.

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.