Wrox Programmer Forums
|
VS.NET 2002/2003 Discussions about the Visual Studio.NET programming environment, the 2002 (1.0) and 2003 (1.1). ** Please don't post code questions here ** For issues specific to a particular language in .NET, please see the other forum categories.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VS.NET 2002/2003 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 22nd, 2004, 10:45 AM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# vs VB.NET

As VS.NET 2005 is on it's way, we are looking to choose between C# and VB.NET for all future developments.

I am aware that some of you might be thinking "oh no, not again!", however, it would be good to hear from someone who is experienced in both C# and VB.NET to give the low-down on which language has the better potential (the majority of our developers come from an extensive VB background with VB.NET experience).

Many thanks


PG
 
Old September 22nd, 2004, 10:48 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

To me it's the same story... Same difference... I know of nothing in 2.0 that would make me pick one over the other. We use both here.

Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old September 22nd, 2004, 12:42 PM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hal, many thanks. Do you (as an individual) develop both in C# and VB.NET? If so which language do you prefer?

Thanks again

PG
 
Old September 22nd, 2004, 02:13 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,101
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Yes, I develop in both.

The decision on which to use is based on the staff. I am the only Full time developer here. EVeryone else we use are consultants. So, I base the language we use on the skills of the consultants availible for any particular project.

Personally, I rather use VB- this is because I am not in the habbit of using those semicolons when I code.. so I end up writing c# code that is missing lots of semicolons!


Hal Levy
Web Developer, PDI Inc.

NOT a Wiley/Wrox Employee
 
Old September 27th, 2004, 12:25 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

My dev team uses both.

Class libraries: C#
- C# supports native XML commenting which provides useful intellisense when coding using the libraries.

UI development: VB.NET
- VB.NET is integrated into Visual Studio .NET much better for UI code. When dealing with events and other code that is specific to UI it's much faster to use VB.NET. I have written UI code in both and for now, VB.NET is far superior.

I personally feel that I can write code faster in VB.NET. Given that you have the same .NET capabilities in both and I have yet to need to utilize the few things C# can do that VB.NET can not, I find it quite suitable.
 
Old October 3rd, 2004, 08:38 AM
Registered User
 
Join Date: Oct 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

So that's the deal then, c# has:
1)
using statement >> blocked try/finally with block encompassing created object's scope (can't be used outside of encompassing block) and finally calling objects required IDisposable.Dispose():
using(MyObject o = new MyObject)
{
....
}

2)
xml commenting. Should be added to vb in the future.

3)
destructor that (like using above) gets converted into a finalize method that has a try/finally with the finally calling the base classes finalize.

4)
Could have sworn I saw a couple other things in books possibly with com+ or remoteing or so, but can't remember them now.

I know there's other differences, but they haven't affected me as yet. There are those who say these languages will divert from each other over time. Me, I feel they'll track each other with c# taking precedence because the MS programmers are using that.

I don't get this event's thing being easier in vb as when I type:
myobject.myevent += I get to hit a tab button that finishes up the subscription and adds a handler. I think the real problem here isn't that one's easier than another, it's that vb programmer's make a poor attempt at c# programming, and c# programmers make a poor attempt at vb programming. My suggestion for both groups is to get a professional book on the other language and read it. If you're a vb programmer and haven't done a += event subscription, gotten the "tab to finish" popup and used it, you don't know c# very well (I'm using 2003).

On that note, I'm a c++ programmer, so naturally didn't read a c# book either. I'm finding it very useful to read a good c# book. There's about 25% going on there, I didn't know about. Sure, I could code just fine, just like I could in vb, but now I'm much better and faster. I think I'll do the same with vb next. It's the little things that count. I haven't looked at them in 2005 beta, but then again, they're not done with that yet.
 
Old October 8th, 2004, 07:54 AM
Registered User
 
Join Date: Sep 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think it is very good advice for developers who are questioning which way to move forward to read professional books on both languages to get a better idea.

I also agree on the notion that VB developers make a poor attempt at c# and C#/C++/Java developers at VB.Net. I am primarily a VB developer but really going for C# to understand it as best as possible.

If the future is slightly leaning towards C# then I guess it is best to invest in the language now than later on.
 
Old October 18th, 2004, 07:39 AM
Registered User
 
Join Date: May 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[quote]Originally posted by pGunaselvam
 As VS.NET 2005 is on it's way, we are looking to choose between C# and VB.NET for all future developments.

THe whole point of .NET was language interop. So you don't really have a choice problem, but a work organisation problem. Who codes what?
Then you divide the guys into groups doing particular things and they just create assemblies which the other language guys can point to.
So it's really about package design and team organisation, and the language issue becomes a personal thing.






Similar Threads
Thread Thread Starter Forum Replies Last Post
vb.net 2008 re: VB.NET databases book bigbearjeff VB.NET 0 June 2nd, 2008 01:22 PM
convert dsr file from vb to vb.net Shashi001 VB Components 1 September 22nd, 2006 12:24 PM
VB.Net question on Windows VB.Net datagrids dmsousa VS.NET 2002/2003 1 January 19th, 2005 02:45 PM
vb.net 2002 OR vb.net 2003 metalaaron VB.NET 2002/2003 Basics 0 August 5th, 2003 10:00 AM
vb.net 2002 - vb.net 2003 book metalaaron Wrox Book Feedback 0 August 2nd, 2003 10:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.