What is VB.net for?

Maximilian

Lifer
Feb 8, 2004
12,603
9
81
Ill be learning some VB in my course, ive only done java before, the two big languages seem to be java and c#, where does VB.net fit into things?
 

nickbits

Diamond Member
Mar 10, 2008
4,122
1
81
vb.net is only for legacy vb programmers who don't want to learn c#

stay away from it if you can. if you like java, you'll like c# much better anyway.
 

clamum

Lifer
Feb 13, 2003
26,255
403
126
It's just an alternate way to code in .NET. It has a "simplier" syntax (more like standard English, I guess) than Java or C#, and can be more forgiving, but ultimately it gets transformed into the same intermediate language as C# does (AFAIK).

Personally I think it blows, but I'm kinda stuck with it for the project I'm currently working on. :-\
 

WannaFly

Platinum Member
Jan 14, 2003
2,811
1
0
vb.net is just another .net language. I believe if the same program was written in vb.net and c#, the IL code would be VERY similar. There are some performance differences, but for most operations it is very negligible. Most functionality is interchangeable between vb.net and c#, barring a few differences. Really, the biggest difference is syntax, IMO.


Perhaps this link will help:
http://en.wikipedia.org/wiki/.NET_Framework#Common_Language_Infrastructure_.28CLI.29
 

PhatoseAlpha

Platinum Member
Apr 10, 2005
2,131
21
81
It's for writing programs. It's very nearly a syntax swap on C#. There are a few things you can do in c# that you can't do in vb - mostly unsafe things, like pointers - but by and large they are equivalent.

These days it's mostly something that gets used because the devs on a project prefer it - less common then the C-type syntax, but it does happen.

Why choose it instead of c# way back when? Well...install VS2003, and compare intellisense in VB.net vs c#. C# intellisense has vastly improved, but back then? It was useless.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
It's for writing programs. It's very nearly a syntax swap on C#. There are a few things you can do in c# that you can't do in vb - mostly unsafe things, like pointers - but by and large they are equivalent.

These days it's mostly something that gets used because the devs on a project prefer it - less common then the C-type syntax, but it does happen.

Why choose it instead of c# way back when? Well...install VS2003, and compare intellisense in VB.net vs c#. C# intellisense has vastly improved, but back then? It was useless.

There were also a ton of corporate VB developers knocking out database applications back then. MS needed to provide some migration path to .NET for those shops. No reason to begin with it today, imo, unless your job calls for it.
 

Maximilian

Lifer
Feb 8, 2004
12,603
9
81
Balls... i like java.

Oh well, exposure to another language wont hurt anything i guess. The visual studio IDE is pretty slick looking.

On a related note, is intellisense the thing that shows up with a list of methods and what they do? Like if i type someObject. a list will show of every method i can use with someObject. Netbeans does this with java, what is this feature called in broad terms?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
13
81
www.markbetz.net
Balls... i like java.

Oh well, exposure to another language wont hurt anything i guess. The visual studio IDE is pretty slick looking.

On a related note, is intellisense the thing that shows up with a list of methods and what they do? Like if i type someObject. a list will show of every method i can use with someObject. Netbeans does this with java, what is this feature called in broad terms?

I'm not exactly sure which features fall under the "intellisense" umbrella. I think it's the term that MS uses for all the related technologies that reflect on the code you're writing and provide for syntax highlighting, code-time error detection, and auto-complete (the specific feature you're referring to).
 

douglasb

Diamond Member
Apr 11, 2005
3,163
0
76
It's for scrubs and for teaching you sloppy coding habits. Lots of VB developers are notorious for things like having all sorts of implicit casting going on when the developer probably isn't even aware that it's happening. Then they wonder why their app is much slower than the same thing in another language, even C#.

Turn "Option Strict On" before you write anything, and it will keep you from falling into some of the bad VB habits.
 

KentState

Diamond Member
Oct 19, 2001
8,397
393
126
Like all .Net languages, you have access to the same classes so it's mostly a different syntax. There are some shortcuts that don't follow .Net standards correctly like the My namespace and preserved cast functions. The performance is exactly the same if you write the same thing 1:1.
 

Merad

Platinum Member
May 31, 2010
2,586
19
81
Balls... i like java.

Oh well, exposure to another language wont hurt anything i guess. The visual studio IDE is pretty slick looking.

On a related note, is intellisense the thing that shows up with a list of methods and what they do? Like if i type someObject. a list will show of every method i can use with someObject. Netbeans does this with java, what is this feature called in broad terms?

Autocomplete would be the general term, I think. Although intellisense is pretty close to being a generic term for it.

Also, VS with C# is amazing.
 

KentState

Diamond Member
Oct 19, 2001
8,397
393
126
Intellisense is little more though. It lets you reference classes and objects and their methods while providing a parameter list and overloads. Makes coding much easier as you don't have to lookup the namespaces and dig into documentation. I find I spend less time on MSDN and more time in the code. They've also added it to SQL Server which is a huge help.
 

Cogman

Lifer
Sep 19, 2000
10,278
126
106
Intellisense is little more though. It lets you reference classes and objects and their methods while providing a parameter list and overloads. Makes coding much easier as you don't have to lookup the namespaces and dig into documentation. I find I spend less time on MSDN and more time in the code. They've also added it to SQL Server which is a huge help.

That being said, netbean's autocomplete is pretty much at the same level now as Visual studios. I've been working a lot with netbeans recently and have been really impressed by what it provides (mainly for the java language, I don't know how it does for other languages).
 

Merad

Platinum Member
May 31, 2010
2,586
19
81
That being said, netbean's autocomplete is pretty much at the same level now as Visual studios. I've been working a lot with netbeans recently and have been really impressed by what it provides (mainly for the java language, I don't know how it does for other languages).

I'd say Netbeans is about on par with VS' default C++ intellisense. VS/C++ with Visual Assist X or VS/C# blow it out of the water IMO.
 

sze5003

Lifer
Aug 18, 2012
14,184
626
126
I wish we used NetBeans or eclipse at work. We have to use IBM rational app developer and websphere server. So slow and clunky and the app is all java and XHTML /jsp .

I actually had to convert a vb website to asp 4.0 with vb.net. at first I hated it but comparing to the java code I get into now it was cake walk.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |