"C # vs.VB.NET:Choosing Your. NET Tool" Impressions

Source: Internet
Author: User
Tags error handling try catch
A few days ago on the Internet to see an article,
"C # vs.VB.NET:Choosing Your. NET Tool"
Feel or to just contact visual.net person quite meaningful, in which its approximate content can be summed up as:
1. The author first considers that it is incorrect to choose whether to use C # or vb.net by the developer's proficiency in which language before contacting. Net.
2. Programmer development Applications are divided into two categories: rapid development (RAD), emphasis on application development, and system or enterprise-level program development, while VB.net and C # are applied separately for development purposes. This is mainly due to their respective linguistic characteristics:
a) VB. NET is not strict grammar check, (you do not have the same size in the IDE does not matter, it automatically corrects your case)
b at the same time, the syntax of vb.net in event handling (events) and functions (function) is far more flexible and C #, for example, you maintain a button click event is much easier than the C # mechanism,
c) and vb.net It also allows unstructured error handling mechanisms, especially its on Error resume mechanism, to be developed for many applications (at least try catch in C # is not available).

But C # also has its vb.net advantages, such as:
(a) C # has an automated recycling mechanism that is far more capable of releasing resources and memory than vb.net, so it is particularly suited to developing systems and enterprise-class programs
(b) On-line processing, C # has the ability to lock objects and protect them from being modified by other threads
C C # can generate development documents automatically (similar to the Javadoc functionality in Java) in developing documentation, which makes sense for collective development of large applications


The above features are mentioned in the article, I have made some additions, in general, the author suggests
If the development of RAD application, developers do not have to adhere to their former familiar with VC, MFC must use C # to do development, but can consider vb.net
If it is a development system or enterprise-class application, try to apply C #

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.