for some complex and functional site construction, the possibility of developing a language choice is a very important step. The good and bad of this step directly affect the later website program upgrade as well as the extension of the function. At present , the main development language in the domestic mainstream has asp/asp.net,php,jsp. So for the network technology does not understand the customer, in the end, the choice of which language, may be a blank, listen to others said, but also confused. Let's analyze the pros and cons of these languages separately.
PHP: Money Word, PHP is free, and ASP is paid. Apache+php+mysql+liunx is completely free. PHP upgrade is fast to the obvious, and ASP basically do not upgrade. PHP code concise, intuitive, fast running, in addition to the current mainstream technology support, such as WebService, Ajax, XML and so on. It looks as if PHP is really good. PHP is a temptation for someone with a standalone server, but analyzing the situation will tell you that PHP's server is not the case. For a large number of small sites, PHP database MySQL cost is not small. Suitable for website type: forum, shopping website, entertainment website, information type website.
JSP: It's a lot of time with PHP. JSP is also free, fast and high security, but JSP seems to be only suitable for large sites. It's a lot of trouble for small web sites, especially if you want to put servers on Windows systems. In addition, there are not many virtual space JSPs available on-line. The price is more expensive. Suitable for website type: large Integrated portal site.
Asp/asp. The best thing about net:asp is that it can be placed directly on Windows and programmed in familiar patterns. At the same time, ASP is also known as a simple user. In the online virtual space is also the majority of ASP, and the price is cheap. But the disadvantage of ASP is that the speed is relatively slow. After all, technology is the old technology a few years ago. Although ASP is now available, its programming pattern is completely different from ASP. Although the programming mode of ASP is also provided, the editor function is not supported. Asp. NET applies both to small sites and large sites, and should be the first choice for future stations.
Website Development language comparison , select the appropriate language
At present, several major web site dynamic programming languages are described as follows:
ASP full name Active Server Pages, a Web server-side development environment, leverages it to generate and execute dynamic, interactive, high-performance Web service applications. The ASP uses scripting language VBScript (Java script) as its own development language.
PHP is a cross-platform, server-side, embedded scripting language. It borrows heavily from the syntax of the C,java and Perl languages and is coupled with PHP's own features, allowing web developers to quickly write dynamically generated pages. It supports most of the current databases. Also, PHP is completely free of charge and you can download it freely from the official PHP site (http://www.php.net). And you can gain unrestricted access to the source code, and even add the features you need.
JSP is Sun's new generation of web development language, Sun Company with its extraordinary attainments in Java, Java from Java applications and Java applets, there is a fresh fruit, is the Jsp,java Server Page. JSP can complete powerful site program with the support of Serverlet and JavaBean.
Asp. Net:asp the latest version of ASP. NET is not completely compatible with earlier versions of ASP because the software was completely rewritten. Early ASP technology actually has much more in common with PHP than with ASP. ASP. NET is a complete framework for building WEB applications. One of the main features of this model is the flexibility of choosing a programming language. ASP. NET can use scripting languages such as JScript, VBScript, PerlScript, and Python, as well as compiled languages such as VB, C #, C, Cobol, Smalltalk, and Lisp. The new framework uses a common language runtime environment (CLR), first compiling the source code for your language into Microsoft intermediate language code, and then the CLR executes the code. The framework also provides true object-oriented programming (OOP) and supports true inheritance, polymorphism, and encapsulation. The. NET class Library is organized into inheritable classes based on specific tasks, such as using XML or image processing. In addition to programming languages and methods, you can use ODBC to integrate databases when you are programming with ASP. ODBC provides a consistent set of calling functions to access your target database.
Strengths and weaknesses
The advantage of ASP is clearly the simplicity of its design and implementation. This is the dream of object-oriented programmers: The language is flexible and supports complex object-oriented features. In this sense, it really works with the programmer's existing skills to interoperate.
Another advantage of ASP is its development environment. For example, developers can use WebMatrix (a community-supported tool), Visual Studio. NET, or various Borland tools such as Delphi and C + + Builder. For example, Visual Studio allows you to set breakpoints, track code snippets, and view the call stack. In summary, it is a complex debugging environment. Many other third-party ASP. NET IDE solutions will also inevitably occur.
but Asp. NET robustness, at the cost of loss of efficiency. ASP is very expensive in terms of memory usage and execution time, mostly due to the longer code path. For web-based applications, these limitations can be a serious problem, because on the Web, your application may expand to tens of thousands of users per second. Memory usage can also be an issue on the WEB server. These provide the ability to mix some kind of program code in the HTML code and to interpret the code of the program by the language engine. However, the JSP code is compiled into a servlet and interpreted by the Java virtual machine, which occurs only on the first request to the JSP page. In ASP, PHP, JSP environment, the HTML code is mainly responsible for describing the information display style, and the program code is used to describe the processing logic. Ordinary HTML pages rely only on Web servers, while ASP, PHP, JSP pages require additional language engine parsing and executing program code. The execution results of the program code are re-embedded in the HTML code and then sent together to the browser. ASP, PHP, JSP are Web server-oriented technology, the client browser does not require any additional software support.
PHP is the best language for Web development (for most small and medium-sized system application developers)
As a brand-new Internet project, there are times when there is a problem of choosing what language to develop. I say this sometimes, in fact, refers to the existing team, there is no technology development members of the situation. If you already have one or more technology developers, of course, choose the language that the existing members are most familiar with and best at. What kind of development language should you choose for a team that has no technical members? To answer this question, first of all, you should find out which aspects should be considered when you choose the language of development? I think there are several aspects that should be considered as a project selection development language:
1. Cost
An Internet project, development is often the big head of the upfront investment, and most of the start-up team early funds are not very abundant, how to control the development costs, it becomes a need to consider the issue. Development costs also include developer costs and development resource costs (development equipment, server bandwidth resources, etc.);
2. Efficiency
Now the development of the Internet, time is the biggest cost, whether the rapid development of products can be on-line, often become a project whether the success of an important factor;
3. Scalability
Many projects are implemented in stages, and if the development language of a project is not extensible, it can cause great inconvenience to the implementation later in the project.
4. Portability
as a server platform, early use Windows is convenient, fast, and "cost-efficient" (mainly maintenance costs), but when a project goes up to a certain stage, will it need to switch to Linux, UNIX and other platforms?
5. Performance
The project should be large, must be on the scale, for a project may be achieved in the future scale needs to have an "estimate." If a language doesn't support the size of your future projects, then you need to be cautious when choosing.
The evaluation of the project language selection for a project is considered according to the above:
Project requirements:1, the need to save costs, 2, the efficiency of the demand is very large, 3, there is an expansion of the demand, 4, the need to consider portability, 5, belongs to the application of the Internet project, performance will not be too high requirements.
newness, too biased language labor costs are generally high, too new, developers are not familiar with the degree of efficiency. Too biased, the scalability is not high. So, select only the mainstream languages:ASP,. Net, Java, PHP, and the like.
ASP,. Net belongs to Microsoft's "individuality" product, the portability is not enough, no drop.
Java language, too "high-end", the developer cost is relatively high, and the development efficiency is slightly worse, finally chose the PHP language.
PHP language, the appearance of a long time, the language is relatively mature. Developers are a little bit less expensive than Java and are faster to develop than Java. PHP is not platform-independent, portability is good, the code can be almost without modification in Windows, Linux generic. PHP has a slightly worse performance than Java, but from the point of view of the performance requirements of this project, it is sufficient to cope with the expected time.
in short, Asp,php,jsp,. NET has a considerable number of supporters, which can also be seen in the strengths. Friends who are learning or using dynamic pages can choose a language that suits them according to their characteristics.
Yangyu: The strategic choice of web development language