Absrtact: When planning to develop a website, what language to choose, is the first problem to face. The current mainstream web development language has asp.net, PHP, JSP; As Ms veteran of the last century ASP, it is no longer mentioned, if it is for maintenance reasons and must be used,
When you plan to develop a website, what language to choose, is the first problem to face. The current mainstream web development language has asp.net, PHP, JSP; As Ms veteran of the past century ASP, it is no longer mentioned, if it is due to maintenance reasons and must be used, can be considered to upgrade to ASP.net, and as a new development of a language, really find no reason to use it again;
The following will be compared to the three languages to weigh:
The degree of mastering
. Net:5
Php:3
Jsp:1
If you are a novice on the web, the learning costs of these three web languages are very different. asp.net as Microsoft's products, inherited its consistent characteristics, easy to use, easy-to-use; even you do not have to code, rely on the mouse drag and drag, can be a whole site out (online, there is such a video explanation.) Of course, this out of the site can not be applied to the actual, and do not say that its code reuse rate is extremely low, drag out of the code, flexibility is too small, inefficient (eg:gridview in the paging implementation load data is all at once)).
At the same time, with its powerful development tools, the Visual Studio series, when bugs in the program, can provide the greatest degree of problem description, so that developers locate the problem as soon as possible. JSP compared to the more difficult, just configure a development environment to spend a lot of energy, JSP language is the most headache is the program debugging, when the program problems, and can not get friendly error prompts, debugging bugs more time-consuming. Then JSP relies on the Java too large, is really a bottomless pit, easy to start, the more later found to learn more, the general internet companies, it is really difficult to have a few can control, and then popular; PHP learning is based on. NET and JSP between the syntax and C language, the start is also easy;
Resources
. net:4
Php:5
Jsp:2
Resources include access to learning materials, open source, and various plug-ins and libraries. PHP in this respect, roughly speaking, a variety of well-known open-source products, most of the use of PHP implementation, such as blog WordPress, forum discuz, Wiki Knowledge base MediaWiki, etc.;
The corresponding various plug-ins, libraries, open source code, the number and quality of other languages can not be compared. NET resources are also relatively rich, selection. NET happiness is to have MS such a strong background to do strong technical support, CSDN information not only more, the quality is superior; JSP because of its high threshold, resulting in this aspect of the information is relatively small;
System Architecture Implementation
. net:3
Php:5
Jsp:3
. NET deployment environment is Windows 03/08+MS SQL Server + IIS. Are Microsoft's products, the advantage is easy to deploy, convenient, good compatibility. The most headache is the security aspect, Windows always have to play patches, but still often suffer from such attacks; then the database, MS SQL and Oracle in the concurrent processing, efficiency, there is always a data level gap, 2008 after the release is said to be better, But always make people feel uneasy; PHP is the lamp architecture, that is, linux+apache+my Sql + PHP; Linux platform in my years of familiarity, deeply realized that it is for the server, all kinds of tools let people fondle admiringly; My SQL as an open source product, first of all in the software costs on the company can save a large, its performance is excellent, even if the size of a day to expand the site caused the database bottlenecks, you can also set up a database team to study the improvement.
However, after Oracle acquired MySQL, it casts a shadow over its prospects. It is possible that in the near future, some of the functions of MySQL will be closed source. The architecture of the JSP is small linux+apache+tomcat+mysql, large Linux + Apache + Java (WebSphere) + Oracle, for the general deployment of small Web sites, most of the first choice; WebSphere is too large, the general deployment has to occupy a single server; Oracle is the king of the database, excellent performance (domestic bank securities database applications, generally only DB2 and Oracle two options), but its expensive, non-general start-up companies can bear (CPU charges, General 25w/cpu/Annual, the next year will be charged 15% maintenance fee) need to mention is the JSP system architecture deployment Some difficulty, after the structure of problems, the error is a very painful process.
Management Maintenance
. net:2
Php:5
Jsp:4
Web management, often through remote to manage the site, remote management of the convenience or not the key to see the command line tool support and scripting environment easy to operate. NET can only run on the Windows platform, remote management can only through the graphical interface of remote mouse operation, when the speed is relatively slow, the administrator's mood is extremely complex, remote operation is basically in a picture of the next picture in the estimation of the mobile location of the mouse; The Windows Platform's command line environment is very poor, IIS has fewer command-line tools, and bat scripts are difficult to learn (although you can simulate the Linux shell environment by installing the Cygwin tool, but there is still nothing to do with system operation and system resource monitoring); Linux is much happier, remote is basically through SSH connection, security is guaranteed that the shell script consumption of the network bandwidth is only a graphical interface of 1%, smooth management, ease of mind; Various programs consume resources can be monitored remotely; Linux is for the server, this is not the word. PHP, JSP can be cross-platform, the general system deployment is under Linux, MySQL database and Apche server can be effectively managed through the corresponding command-line tools. JSP application Server In this regard to support less;
Cross-platform
. net:0 Part
Php:5
Jsp:5
Once upon a time, I was dismissive of cross-platform, thinking of a good application, since it is positioned on this platform developed, why to transplant to other platforms. Now, I have a deep understanding. With a project on hand, the company needs to migrate applications from SUN UNIX to the Linux platform (Redhat) due to cost pressures. Our program basically does not have to change, compiles on Linux only a few more warnings, change can be on-line; and another project, I was deeply stuck! We are using the Windows platform's asp.net, because of Windows virus flooding and web management problems, eager to migrate to the Linux platform, but this is basically impossible to achieve. If you really want to transplant this application, only am use PHP and other rewrite applications, change the system architecture. PHP, JSP can be cross-platform, needless to say.
Selection of current mainstream applications
PHP: The language choice of the current web start-up company is mainly in PHP. In addition to the above reasons there is another important reason is the size of the PHP development programmer team.
Taobao (Alibaba): Linux operating system + WEB server: Apache +php
PHP is too much to use, here is no longer enumerated;
ASP. NET: In the start-up company application is not many, the well-known Internet application is limited, at present the more well-known application has:
Blog Park, CSDN, EBay, MySpace, etc.
JSP:JSP implementation is relatively large, with a good use of WebSphere or weblogic such large objects, various reasons for JSP in the Internet company application is not much, in addition to Alibaba, few companies can manage Java (JSP). Deep Java requires years of cultivation, and after the refinement, whether the company has enough pay to retain such a group of experts is a test;
Alibaba: linux+ (JSP)
Summary
Ruby, now popular, is also a choice for startups; Python's elegance may also be considered as an attempt (python in watercress), but one of the risks in choosing these languages is whether a company can find enough talent to have a question mark when it expands. In general, entrepreneurship is facing the choice of a development language, PHP is preferred; If you do not consider the Linux platform, it is definitely operating on Windows. NET is also a good choice. JSP small company near, dangerous, easy to cause the capital hold-up.