In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of VB.NET language, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The longer I use VB.NET, the more I appreciate the VB.NET language and structure. As a VB programmer, I was delighted to learn that my experience of writing Java and J2EE programs was very useful in the transition to .NET. The more mature the two languages are, the more similar they will be. Although Java is actually an object-oriented programming (object-oriented programming,OOP) language, many of its designs have been influenced by C++ and Smalltalk.
VB.NET adopts the features and features of many other face object programming languages, including Java: VB.NET converts basic data types (strings, integers, doubles, etc.) into objects with properties and methods; it also introduces an error trapping mechanism of Java type (using Try and Catch); VB.NET also compiles the code into Microsoft Intermediate language (Microsoft Intermediate Language,IL); it also provides XML-based application configuration. More importantly, the ability to design object-oriented solutions can be implemented in any language. In this article, I'll compare the VB.NET language with Java;, but with other aspect object programming languages, VB.NET is now essentially going its own way.
On the other hand, Sun recently announced that it will launch a .NET-style development environment in the summer of 2003. Whether this new environment will make Java mainstream remains to be seen. One of the advantages that Java lacks is a friendly user interface. Programmers often have to spend more time learning the basic knowledge of Java programming and face object programming before writing applications in Java. With VB, developers can write programs in any way they want (often the wrong one), which becomes a big problem when maintaining the program. Before Sun's new Java IDE (integrated development environment) comes out this summer, Sun should introduce a few basic guidelines to novice Java programmers to make them realize the importance of OOP design.
Is the OOP syntax independent?
In VB, as in Java, everything is an object-- characters, integers, and other basic types that it includes. Earlier versions of the VB.NET language included built-in functions to handle strings; strings or integers have no properties and methods. Now, in VB, strings are almost the same as strings in Java. It is true that basic types such as string and double are the same. In Java, int and double (primitive types) still exist, but in VB.NET, they are successfully replaced by their respective objects.
Converting strings and numbers to objects makes the code clearer and less dependent on the programming language itself. Let's give an example. In order to find a character from a string, using an earlier version of VB, the programmer might write:
SMyString = Mid (sMyString,3,4)
Now, it can be replaced with:
SMyStringsMyString = sMyString.substring (3jue 4)
The VB commands are still reserved and can be used if there is a problem with the conversion, but in the second part of the above example, implemented in VB, Java, or C #, the syntax is the same. In my experience, there is little problem for VB programmers to abandon the old VB. Net language and adopt "new" object-oriented programming techniques.
The event handle (event handlers) is another powerful supplement provided by VB.NET, and its functionality is also comparable to that of Java. (the event handle also becomes a "listerer" in Java. Using event handles, programmers can assign default methods to objects For example, VB.NET developers can add a handle to Datagrid to handle data changes. The event handle works similar to the callback function (callback function) in the previous two versions of VB.
Thank you for reading this article carefully. I hope the article "what's the use of VB.NET language" shared by the editor will be helpful to everyone? at the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.