![]() |
|
|
Published: Monday, July 17, 2000
Introduction
Scripting languages have two disadvantages over compilable languages (like Visual C++ or VisualBasic). First is performance; each time an ASP page is visited, these scripts are interpretted by the appropriate scripting engine and a version of their execution plan was cached to increase performance. This cache, though, is an in-memory cache, so at any time only a small number of "interpretted" ASP pages can actually be cached. The second disadvantage is that scripting languages are often designed for accomplishing quick, procedural tasks. Therefore they oftentimes lack the full feature set that compilable languages contain. One of my favorite things about ASP.NET is that they are created without the use of a scripting language; rather, ASP.NET pages are generated with comilable languages! In fact, ASP.NET pages can be created with any compiler that generates NET Common Language Runtime-compliant code. NET Common Language Runtime-compliant compilers include the Visual Studio 7 suite: VisualBasic 7.0, Visual C++ 7.0, and C# (pronounced C-sharp). When an ASP.NET page is requested for the first time, it is compiled and the resulting NET Common Language Runtime bytecode is saved to disk. This bytecode is then loaded each subsequent request to that ASP.NET page! Since the bytecode exists on disk, an ASP.NET page only needs to be recompiled when the developer alters the page's source.
Creating ASP.NET Pages with VisualBasic 7
While you may use
This has three advantages: first, it removes the ambiguity of the purpose of a variable; second, it helps the developer catch a mistake... for example, if you attempt to assign an object to the string variable you will get an error; third, there is a performance increase since the compiler can treat the variable as a string, and not have to worry about what type the variable be or become.
VisualBasic 7 also includes many new enhancements regarding Object-Oriented Programming. VisualBasic's enhancements
in this area include: Inheritence, Encapsulation, Overloading, Polymorphism, and (my favorite) Parameterized Constructors.
Furthermore, VB 7 can now create Free Threaded apps and, finally, provides structured exception handling in the
form of
Creating ASP.NET Pages with C# I really can't provide a list of reasons why you should use C# over VisualBasic. For me, C# looks cool, and is fun to program! ASPFree.com has an article that lists the syntax for C# and VisualBasic side-by-side. Take a moment to check out that listing and see what syntax you find easier to read and use. Also, be sure to read Microsoft's article: C# Introduction and Overview.
Summary To learn more about ASP.NET be sure to read visit our ASP.NET Article Index.
Happy Programming!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
![]() |
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||