Section 1.1. Visual Basic and .NET

   

1.1 Visual Basic and .NET

Long, long ago, and far, far away, in a little-known universe of primitive computing, there was a language called Basic, which stood for Beginner's All-purpose Symbolic Instruction Code. Basic was designed to be as simple and accessible as possible for those unfamiliar with programming.

In 1991 Microsoft unveiled Visual Basic and changed the way graphical user interfaces were written. Visual Basic can lay claim to being one of the most popular programming languages ever invented.

Visual Basic .NET (VB.NET) is a reengineering of this venerable language, which departs in significant ways from earlier versions of Visual Basic. In fact, some early adopters of VB.NET started calling it VB. NOT . VB.NET has evolved into a full-fledged object-oriented commercial software development package. Yet VB.NET also retains some of the inherent simplicity of its predecessors.

VB.NET has a number of features that help it retain backwards compatibility with Visual Basic 6 (VB6). Other features have been added specifically to adapt Visual Basic to object-oriented programming and to the .NET platform.

VB.NET provides support in the language to find bugs early in the development process. This makes for code that is easier to maintain and programs that are more reliable. VB.NET does not support many features available in other languages (e.g., pointers) that make for unsafe code.

In the past, you might have learned a language like C or Java without much concern about the platform on which you would be programming. These cross-platform languages were as comfortable on a Unix box as they were on a PC running Windows.

VB.NET, however, is a version of the Visual Basic language written specifically for .NET. While .NET may become cross-platform some day soon ”a Unix port is already available ”for now, the overwhelming majority of .NET programs will be written to run on a machine running Windows.

1.1.1 Stepchild No Longer

VB.NET represents a significant step forward for Visual Basic programmers. In the past, VB has been (unfairly) cast as a second-class "toy" language that was not up to the challenge of enterprise-level software development.

Whatever the merits of that accusation for VB6 and its predecessors, it is manifestly untrue for VB.NET. The code produced by Visual Basic .NET is (nearly) identical to that produced by C# or any other compiler designed for .NET. There is no performance or size penalty to writing with Visual Basic .NET.

In fact, the differences between Visual Basic .NET and C# are entirely syntactic. To illustrate , one language uses semicolons, the other does not; one language uses brackets, the other parentheses. The differences are so simple and so straightforward, that converting a C# program to Visual Basic .NET is an entirely mechanical operation, one that can be performed by a simple program ”and such programs are already available on the Web.

In fact it is not far from the truth to say that at the most fundamental level there is no Visual Basic .NET language and no C# language. There is, rather, a single .NET language called MSIL (Microsoft Intermediate Language). Both Visual Basic .NET and C# compilers produce MSIL code, and the code they produce is nearly identical! The real meat of .NET programming, whether in Visual Basic .NET or in C#, is the .NET platform.

   


Learning Visual Basic. NET
Learning Visual Basic .Net
ISBN: 0596003862
EAN: 2147483647
Year: 2002
Pages: 153
Authors: Jesse Liberty

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net