(1) Advantages of PHP:
1. Cross-platform, superior performance, 45% better performance when combined with Linux/Unix than with Windows, and low development cost.
The most classic combination of PHP is: Linux+Apache+MySQL+PHP. It is very suitable for developing small and medium-sized web applications, because it is easy to get started, so the development speed is relatively fast. And all the software is open source and free, which can reduce investment.
for example, the combination of LAMP(Linux /Apache/Mysql/PHP) or FAMP(FreeBSD/Apache/Mysql/PHP), or the data application is large enough, you can consider changing to PostgreSQL or Oracle, which supports n kinds of databases. (N > = 1)
2. The grammar is simple and quick to get started. Programmers with other languages can get started in about two weeks, which is similar to ASP. There are mature development tools, such as NuPHPed, Zend Studio, etc., and Eclipse can be used under the Linux platform.
3. At present, mainstream technologies are supported, such as WebService, Ajax, XML, etc., which are sufficient for application.
4. There is relatively complete support, such as using ADODB or PEAR::DB as the database abstraction layer, using Smarty or smart template as the template layer, and using PDO(PHP Data Object) to access the database if it is PHP 5.1.
5. There are many mature frameworks, such as the framework supporting MVC: phpMVC, the framework supporting event-driven similar to ASP.NET: Prado, and the framework supporting rapid development similar to Ruby On Rails: Cake, which are enough to meet your application requirements.
6. PHP 5 has a mature object-oriented system, which can adapt to the basic object-oriented requirements. Suitable for developing large-scale projects.
7. There are mature communities to support the development of PHP.
8. At present, many large-scale applications use PHP, such as Taobao, Yahoo, 163, Sina and other large portals, and many choose PHP as their development language, so large portals can choose it, which I think is enough for you to use. (It is understood that the internal is gradually turning to JAVA)
9. There are many open source frameworks or open source systems that can be used. For example, the well-known open source frameworks include Zend Framework, CakePHP, CodeIgniter, symfony, etc., and the open source forum has Discuz! , Phpwind, etc., open source blog WordPress, open source online shop system such as Ecshop, ShopEx, open source SNS system such as UCHome, ThinkSNS, etc.
PHP is an explanatory scripting language, which can be executed after the code is written, unlike languages such as C, Java and C++,which need to be compiled and executed, which is relatively time-saving.
1. Relatively speaking, the average salary of PHP programmers is lower than that of C, C++and Java programmers, which can save some costs, especially for small and medium-sized enterprises.
11. Configuration and deployment are relatively simple. Compared with JAVA development, the configuration of JAVA development is much more complicated. Structs, Spring, Hibernate, Tomcat and many other places need to be configured. Even every SQL statement you write in a program needs to be configured in Hibernate first. Sometimes redeploying a class file or jar file may require restarting the newly deployed Web server (Tomcat or Resin or other Web servers). The development of PHP is mainly about the configuration files of PHP itself and the configuration of Web servers (such as Apache or Nginx or Lig RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE and even PocketPC, Symbian and Google's Android platform based on linux!
6. Explanatory-this point needs some explanation. A program written in a compiled language such as C or C++ can be converted from a source file (that is, C or C++ language) to a language used by your computer (binary code, that is, and 1). This process is completed by compiler and different tags and options. When you run your program, the linker software copies your program from the hard disk to the memory and runs it. Programs written in Python language do not need to be compiled into binary code. You can run the program directly from the source code. Inside the computer, the Python interpreter converts the source code into an intermediate form called bytecode, and then translates it into the machine language used by the computer and runs it. In fact, because you no longer need to worry about how to compile the program, how to ensure that the connection reprints the correct library, etc., all this makes it easier to use Python. Because you only need to copy your Python program to another computer, it can work, which also makes your Python program easier to transplant.
7. Object-oriented-Python supports both process-oriented programming and object-oriented programming. In a "process-oriented" language, a program is built by a process or just a function of reusable code. In the "object-oriented" language, a program is built by an object composed of data and functions. Compared with other major languages such as C++ and Java, Python implements object-oriented programming in a very powerful and simple way.
8. Extensibility-If you need a piece of your key code to run faster or want some algorithms to be kept secret, you can write some of your programs in C or C++ and then use them in your Python program.
9. Embedability-You can embed Python in your C/C++ program, thus providing scripting functions to your program users.
1. Rich library-Python standard library is really huge. It can help you deal with all kinds of work, including regular expressions, document generation, unit testing, threads, databases, web browsers, CGI, FTP, e-mail, XML, XML-RPC, HTML, WAV files, cryptographic systems, GUI (Graphical User Interface), Tk and other system-related operations. Remember, all these features are available as long as Python is installed. This is called Python's "fully functional" concept. Besides standard libraries, there are many other high-quality libraries, such as wxPython, Twisted and Python image libraries, etc.
summary-Python is really a wonderful and powerful language. It reasonably combines the characteristics of high performance and making programming simple and interesting.
standard code-Python uses forced indentation to make the code extremely readable.
(4) Advantages of C language:
1. Concise, compact, flexible and convenient
2. Rich operators
3. Rich data structure
4. C is a structured language
5. C is not too strict in syntax restrictions, and has great freedom in programming
6. C allows direct access to physical addresses, which can be directly used to access physical addresses. High program execution efficiency
8. C language has a wide range of applications and good portability
9. C language has a prominent advantage that it is suitable for a variety of operating systems, such as DOS and UNIX, and also suitable for a variety of models
1. Effectively decompose a complex program system design task into many subtasks that are easy to control and handle. Easy to develop and maintain
(5) Advantages of C++:
1. Strong expandability
2. Efficient, concise and fast
3. Portable
4. Object-oriented features
5. Powerful and flexible expression ability and efficiency not losing to C
6. Support hardware development
.