1024programmer PHP Robustness of python dynamic language program_PHP, Java, Python, C, C++ programming languages, what are the characteristics or advantages of each…

Robustness of python dynamic language program_PHP, Java, Python, C, C++ programming languages, what are the characteristics or advantages of each…

Expand all

From :http://blog.csdn.net/singit/article/details/54919132

The following e68a84e8a2ad62616964757a686964616f31333363366133 are mentioned in it Advantages of the language,The article also lists the disadvantages analysis.

(1)Advantages of PHP:

1. Cross-platform, Superior performance, Combine with Linux/Unix, don’t combine with Windows for strong performance 45 %,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 software is open source and free , can reduce investment.

For example, if LAMP (Linux/Apache/Mysql/PHP) or FAMP (FreeBSD/Apache/Mysql/PHP) is combined with , or the data application is large enough, you can consider switching to PostgreSQL or Oracle, to support N kind of database. (N >= 10)

2. The grammar is simple,Quick entry,If you have other language-based programmers, you can basically get started in about two weeks, And it is partly similar to ASP. There are mature development tools , such as NuPHPed, or Zend Studio, etc. , Eclipse and so on can be used under the Linux platform.

3. At present, mainstream technologies support , such as WebService, Ajax, XML, etc. , enough 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 , if it is PHP 5.1 , You can also use PDO (PHP Data Object) to access the database.

5. There are many mature frameworks , such as frameworks that support MVC : phpMVC , support event-driven frameworks similar to ASP.NET : Prado , support Rapid development frameworks like Ruby On Rails : Cake, etc. , are sufficient to meet your application needs.

6. PHP 5 already has a mature object-oriented system , that can adapt to basic object-oriented requirements. Suitable for developing large projects.

7. There is a mature community 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,many choose PHP as their development language&#xff0c ;So large portals can choose it ,I think it is enough for your use. (It is understood that the internals are gradually turning to JAVA)

9. There are many open source frameworks or open source systems that can be used, For example, the more well-known open source frameworks include Zend Framework, CakePHP, CodeIgniter, symfony etc. , Open source forums include Discuz!, Phpwind, etc. , Open source blog WordPress , Open source online store systems such as Ecshop, ShopEx, etc. , Open source SNS systems such as UCHome, ThinkSNS, etc.

PHP is an interpretive scripting language , it can be executed after writing the code , unlike c, java, c++ and other languages ​​that need to be compiled and executed , Relatively speaking, it saves time.

10. Relatively speaking, the average salary of PHP programmers is lower than that of c, c++, java programmers, Especially for small and medium-sized enterprises can save some costs.

11. Configuration and deployment are relatively simple ,Compared with JAVA development ,The configuration of JAVA development is much more complicated ,What Structs, Spring, Hibernate, Tomcat, etc. Many places need to be configured,Even every SQL statement you write in the program needs to be configured in Hibernate first,Sometimes redeploying a class file or jar file may also require restarting the Web server (Tomcat or Resin or other web server) to validate the newly deployed library files. PHP development is mainly about PHP’s own configuration files and Web server configurations (such as Apache or Nginx or Lighttpd, etc.) ,compared to JAVA, it is simpler,and does not need to be restarted after the new file is modified Web is available immediately.

12. 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. , Open source forums include Discuz!, Phpwind etc. , open source blog WordPress , open source online shop system such as Ecshop, ShopEx, etc. , open source SNS system such as UCHome, ThinkSNS, etc.

(2)Advantages of JAVA:

1. Simplicity

2. Object-oriented (the degree of object-oriented can reach 95%)

3. Robustness

4. Cross-platform

5. High performance (automatic garbage collection mechanism)

6. More Thread

7. Dynamic

8. Security

(3) Advantages of Python:

1. Simple ———Python is a language that represents the idea of ​​simplicity. Reading a good Python program feels like reading English ,despite the strict requirements of this English!This pseudocode nature of Python is one of its greatest strengths. It enables you to focus on solving problems rather than understanding the language itself.

2. Easy to learn——As you are about to see ,Python is extremely easy to use. As mentioned earlier ,Python has an extremely simple syntax.

3. Free and open source——Python is one of FLOSS (free/open source software). Simply put,you canFeel free to distribute copies of this software, read its source code, make changes to it, and use parts of it in new free software. FLOSS is based on the concept of a community sharing knowledge. This is one of the reasons why Python is so good – it was created and constantly improved by a group of people who wanted to see a better Python.

4. High-level language———When you write a program in the Python language , you don’t need to consider low-level details such as how to manage the memory used by your program.

5. Portability——Due to its open source nature ,Python has been ported on many platforms (modified to make it work on different platforms). If you are careful to avoid system-dependent features & # xff0c; then all your Python programs will run without modification on any of the platforms described below. These platforms include Linux, Windows, FreeBSD, Macintosh, Solaris, OS/2, Amiga, AROS, AS/400, BeOS, OS/390, z/OS, Palm OS, QNX, VMS, Psion, Acom RISC OS, VxWorks, PlayStation, Sharp Zaurus, Windows CE, and even PocketPC, Symbian, and Google’s Android platform based on linux !

6. Explanation———This needs some explanation. A program written in a compiled language such as C or C++ can be converted from a source file (i.e. C or C++ #xff0c; i.e. 0 and 1). This process is done through the compiler and different flags and options. When you run your program , the linker/reloader software copies your program from the hard drive to memory and runs it. Programs written in the Python language do not need to be compiled into binary code. You can run programs directly from source code. Inside the computer & # xff0c; the Python interpreter converts the source code into an intermediate form called bytecode & # xff0c; and then translates it into the machine language used by the computer and runs it. In fact & # xff0c; since you no longer have to worry about how to compile the program & # xff0c; how to make sure linking reproduces the correct library, etc & # xff0c; all this makes working with Python much easier. Since you only need to copy your Python program to another computer & # xff0c; it can work & # xff0c; This also makes your Python program easier to port.

7. Object-oriented——Python supports both process-oriented programming and object-oriented programming. In “procedural-oriented” languages ​​& # xff0c; programs are built out of procedures or functions that are just reusable code. In “object-oriented” languages ​​& # xff0c; programs are built from objects that combine data and functionality. Compared with other major languages ​​such as C++ and Java,Python implements object-oriented programming in a very powerful and simple way.

8. Scalability————If you need a piece of your key code to run faster or hope that some algorithms are not public , you can use part of your program in C or C& ++Write, and then use them in your Python programs.

9. Embeddability——You can embed Python into your C/C++program, to provide scripting functionality to your program users.

10. Rich library———Python standard library is really huge. It can help you with various tasks , including regular expressions, documentation generation, unit testing, threads, databases, web browsers, CGI, FTP, email, XML, XML-RPC, HTML, WAV files, passwords System, GUI (Graphical User Interface), Tk, and other system-related operations. Remember & # xff0c; as long as Python is installed & # xff0c; all these features are available. This is called the “full-featured” philosophy of Python. In addition to the standard library , there are many other high-quality libraries , such as wxPython, Twisted and Python image library and so on.

Summary—Python is indeed a wonderful and powerful language. It is a reasonable combination of high performance and features that make writing programs easy and fun.

Specified code——Python uses mandatory indentation to make the code extremely readable.

(4)Advantages of C language:

1. Concise and compact, flexible and convenient

2. Rich operators

3. Rich data structures

4. C is a structured language

5. C syntax is not too strict ,program design freedom

6. C language allows direct access to physical addresses & #xff0c; can directly operate on hardware

7. C language program generates high code quality & # xff0c; program execution efficiency is high

8. C language has a wide range of application & # xff0c; good portability

9. C language has an outstanding advantage that it is suitable for a variety of operating systems, such as DOS and UNIX, and is also suitable for a variety of machines. Type

10. Effectively decompose a more complex program system design task into many subtasks that are easy to control and handle ,easy to develop and maintain

(5)C& #43;+Advantages:

1. Strong scalability

2. Efficient, concise and fast

3. Portability

4. Object-oriented features

5. Powerful and flexible expression ability and efficiency not inferior to C

6. Support hardware development

7. The relationship between program modules is simpler,The independence of program modules and the security of data are well guaranteed

8. Through inheritance and polymorphism& #xff0c; can greatly improve the reusability of the program , makes software development and maintenance more convenient

Like

Dislike

Your evaluation of this answer is ?

Comment

Collapse

Features, make software development and maintenance more convenient

Like it

Subscribed<

Your evaluation of this answer is ?

Comment

Collapse

This article is from the internet and does not represent1024programmerPosition, please indicate the source when reprinting:https://www.1024programmer.com/robustness-of-python-dynamic-language-program_php-java-python-c-c-programming-languages-what-are-the-characteristics-or-advantages-of-each/

author: admin

Previous article
Next article

Leave a Reply

Your email address will not be published. Required fields are marked *

Contact Us

Contact us

181-3619-1160

Online consultation: QQ交谈

E-mail: 34331943@QQ.com

Working hours: Monday to Friday, 9:00-17:30, holidays off

Follow wechat
Scan wechat and follow us

Scan wechat and follow us

Follow Weibo
Back to top
首页
微信
电话
搜索