Asp. The advantages and disadvantages of the method of building Web programs with PHP

Source: Internet
Author: User
Tags object html page odbc net php and access what is asp visual studio

Compare the pros and cons of two of the most popular ways to build Web applications

Now when it comes to WEB development, you have a lot of choices. Many of these methods involve preprocessing-that is, embedding code into HTML pages with specific markup that tells the preprocessor that they contain code and should handle them. Very similar to CGI, the code runs on the server and returns some content that appears as part of the appearance of the resulting HTML page sent back to the browser. Open source scripting language all languages in PHP and Microsoft's asp.net framework are of this type; JavaServer Pages (JSP) and Perl/mason are also running in this way.

In this article, I will focus on the technologies php-oracle have chosen to incorporate into their products-and asp.net. I will outline the strengths and weaknesses of both, and focus on the factors that will help you decide which technology your development project should choose. There are a number of factors to consider, and different projects may have recourse to different technologies. In summary, you'll see a comparison of price, speed and efficiency, security, cross-platform support, and the advantages of open source solutions.

what is asp.net?

ASP's latest version of ASP.net is not entirely compatible with earlier versions of ASP, because the software is completely rewritten. Early ASP technology actually has more in common with PHP than with ASP.net, asp.net is a complete framework for building WEB applications. One of the main features of this model is the flexibility to choose a programming language. asp.net can use scripting languages (such as VBScript, JScript, PerlScript, and Python) and compiled languages (such as VB, C #, C, Cobol, Smalltalk, and Lisp). The new framework uses the common language runtime Environment (CLR), the source code for your language is compiled into the Microsoft intermediate language code, and then the CLR executes it.

The framework also provides true object-oriented programming (OOP) and supports true inheritance, polymorphism, and encapsulation. The. NET class libraries are organized into inheritable classes based on specific tasks, such as using XML or image processing.

In addition to programming languages and methods, database access is a key concern. When you are programming with asp.net, you can use ODBC to integrate your database; ODBC provides a consistent set of call functions to access your target database.

Strengths and Weaknesses

ASP.net's advantage is obvious in its simplicity of design and implementation. This is the dream of object-oriented programmers: language flexibility, and support for complex object-oriented features. In this sense, it really can interoperate with the skills that programmers already have.

Another advantage of ASP.net 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 call stacks. In short, it is a complex debugging environment. Many other third party asp.net IDE solutions will also be inevitable.

But if you are robust, you will be at the expense of loss efficiency. ASP.net is very expensive in terms of memory usage and execution time, mostly due to longer code paths. These limitations can be a serious problem for web-based applications, because on the Web, your application can expand to tens of thousands of users per second. Memory usage can also become a problem on the WEB server.



Related Article

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.