By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,780 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,780 IT Pros & Developers. It's quick & easy.

vb.net vs c#

P: n/a
hi i would like you all to let me now some pro's and con's
between vb.net and c#
I want my company to get away from vb6 and move into c#
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages

tia
mark

Jan 31 '07 #1
Share this Question
Share on Google+
17 Replies


P: n/a
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
hi i would like you all to let me now some pro's and con's
between vb.net and c#
Apart from the obvious difference in syntax, the two languages are pretty
much identical, apart from a few areas:

- C# supports pointers, VB.NET doesn't
- C# is case-sensitive, VB.NET (generally) isn't
- VB.NET permits sloppy coding (!) by turning off Option Strict

Plus a few minor other differences...
I want my company to get away from vb6 and move into c#
Ah, but that's a very different argument... :-) You've posted in a C#
newsgroup, so most people here will applaud your wishes. However, even if
you have a huge investment in VB6, please don't let that influence your
choice of .NET language. One of the biggest mistakes people make is to
imagine that VB.NET is the next version of Visual Basic - it isn't - not
even close...
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages
All of the above can be done equally well in C# or VB.NET. For virtually
every aspect of programming against the .NET Framework, the actual
programming language is irrelevant because they all compile down to the same
thing anyway...

I would advise you to take a modular approach based on the seven core
modules as outlined in the Microsoft Enterprise Library:
http://aspnet.4guysfromrolla.com/articles/022305-1.aspx, and develop
reusable base classes for each of these. I'd further advise you to start
with a database abstraction layer (DAL), because database connectivity is
pretty much fundamental to any business software development.

Doing this will not only give you a lot of exposure to the most important
areas of the .NET Framework, but it will also vastly simplify the rest of
your development tasks.
Jan 31 '07 #2

P: n/a

"Mark Rae" wrote:
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
hi i would like you all to let me now some pro's and con's
between vb.net and c#

Apart from the obvious difference in syntax, the two languages are pretty
much identical, apart from a few areas:

- C# supports pointers, VB.NET doesn't
- C# is case-sensitive, VB.NET (generally) isn't
- VB.NET permits sloppy coding (!) by turning off Option Strict

Plus a few minor other differences...
I want my company to get away from vb6 and move into c#

Ah, but that's a very different argument... :-) You've posted in a C#
newsgroup, so most people here will applaud your wishes. However, even if
you have a huge investment in VB6, please don't let that influence your
choice of .NET language. One of the biggest mistakes people make is to
imagine that VB.NET is the next version of Visual Basic - it isn't - not
even close...
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages

All of the above can be done equally well in C# or VB.NET. For virtually
every aspect of programming against the .NET Framework, the actual
programming language is irrelevant because they all compile down to the same
thing anyway...

I would advise you to take a modular approach based on the seven core
modules as outlined in the Microsoft Enterprise Library:
http://aspnet.4guysfromrolla.com/articles/022305-1.aspx, and develop
reusable base classes for each of these. I'd further advise you to start
with a database abstraction layer (DAL), because database connectivity is
pretty much fundamental to any business software development.

Doing this will not only give you a lot of exposure to the most important
areas of the .NET Framework, but it will also vastly simplify the rest of
your development tasks.

Syntax or feature wise I don't think you can really argue that one is really
that much better than the other.

I personally think C# is a bit more popular in terms of documentation or at
least is easier to find code samples in C# than VB. This is a big C# selling
point for me.

Also, it seems that C# is a bit more popular when you do job searches. Your
company might have better luck finding C# developers than VB ones.

Jason Vermillion
Feb 1 '07 #3

P: n/a
This is a very old and tired subject which has been covered -- literally --
HUNDREDS of times in this and other newsgroups if you care to search.

VB.NET, while it can be considered a "first class" .NET citizen, is really
unnecessary to the .NET platform other than the fact that Microsoft didn't
want to leave 4 million classic VB programmers with no easy path to the .NET
platform (IMHO).
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Mark" wrote:
hi i would like you all to let me now some pro's and con's
between vb.net and c#
I want my company to get away from vb6 and move into c#
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages

tia
mark

Feb 1 '07 #4

P: n/a
Peter Bromberg [C# MVP] wrote:
This is a very old and tired subject which has been covered -- literally --
HUNDREDS of times in this and other newsgroups if you care to search.

VB.NET, while it can be considered a "first class" .NET citizen, is really
unnecessary to the .NET platform other than the fact that Microsoft didn't
want to leave 4 million classic VB programmers with no easy path to the .NET
platform (IMHO).
Peter
C# is 'unnecessary to the .NET platform' as well - the platform is
language-agnostic (which is quite an important part of its point).

Or would you say all but one of these:
<http://www.dotnetlanguages.net/DNL/Resources.aspxare 'unnecessary' as
well?
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Feb 1 '07 #5

P: n/a
Larry,
That is absolutely try in the strict interpretation of the comment. But, C#
was actually designed from the ground up as the target language for the .NET
platform, submitted to and ratified by ECMA. That's the point I was heading
at.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Larry Lard" wrote:
Peter Bromberg [C# MVP] wrote:
This is a very old and tired subject which has been covered -- literally --
HUNDREDS of times in this and other newsgroups if you care to search.

VB.NET, while it can be considered a "first class" .NET citizen, is really
unnecessary to the .NET platform other than the fact that Microsoft didn't
want to leave 4 million classic VB programmers with no easy path to the .NET
platform (IMHO).
Peter

C# is 'unnecessary to the .NET platform' as well - the platform is
language-agnostic (which is quite an important part of its point).

Or would you say all but one of these:
<http://www.dotnetlanguages.net/DNL/Resources.aspxare 'unnecessary' as
well?
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Feb 1 '07 #6

P: n/a
I believe that large parts of both VS and the framework were written in C#.
I know that Microsoft.Practices.EnterpriseLibrary was written in C# - you
can download the source code.

Mike Ober.

"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:DA**********************************@microsof t.com...
Larry,
That is absolutely try in the strict interpretation of the comment. But,
C#
was actually designed from the ground up as the target language for the
.NET
platform, submitted to and ratified by ECMA. That's the point I was
heading
at.
Peter

--
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net


"Larry Lard" wrote:
>Peter Bromberg [C# MVP] wrote:
This is a very old and tired subject which has been covered --
literally --
HUNDREDS of times in this and other newsgroups if you care to search.

VB.NET, while it can be considered a "first class" .NET citizen, is
really
unnecessary to the .NET platform other than the fact that Microsoft
didn't
want to leave 4 million classic VB programmers with no easy path to the
.NET
platform (IMHO).
Peter

C# is 'unnecessary to the .NET platform' as well - the platform is
language-agnostic (which is quite an important part of its point).

Or would you say all but one of these:
<http://www.dotnetlanguages.net/DNL/Resources.aspxare 'unnecessary' as
well?
--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version

Feb 1 '07 #7

P: n/a
Here is a 1.1 List:

http://groups.google.com/group/micro...c310d7b4b443b8

OR by this google search:
http://groups.google.com/groups/sear...+regions+sloan

...

Alot of people think going from vb6 to vb.net is easiest. I think "you
bring your bad habits with you".
C# forces a clear/clean "to OO" break.

Another good read:
http://www.google.com/search?hl=en&q...+VB+Article%22
http://www.codeproject.com/dotnet/CSharpVersusVB.asp
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
hi i would like you all to let me now some pro's and con's
between vb.net and c#
I want my company to get away from vb6 and move into c#
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages

tia
mark

Feb 1 '07 #8

P: n/a
Hi,
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
| hi i would like you all to let me now some pro's and con's
| between vb.net and c#
| I want my company to get away from vb6 and move into c#
| we do alot of online transactions mssql2005
| back end services, processing ,email, fpt, vpn etc.
| and front end web reporting, ftp, information pages

In short there are not too many differences. Both use the same framework.

Use the one that you like the most
--
Ignacio Machin
machin AT laceupsolutions com
Feb 1 '07 #9

P: n/a
Hi,
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:DA**********************************@microsof t.com...
| Larry,
| That is absolutely try in the strict interpretation of the comment. But,
C#
| was actually designed from the ground up as the target language for the
..NET
| platform, submitted to and ratified by ECMA. That's the point I was
heading
| at.
| Peter

I read somewhere that C# was for those who are too machos for Vb.net and too
weak for C++ :)

Jokes apart I like the syntax that's why I use it. In completely honestly I
do not remember to have used a C# only feature ever.
--
Ignacio Machin
machin AT laceupsolutions com
Feb 1 '07 #10

P: n/a
Well thanks all for you responses......
Ive done c,c++ the most of my last few years was
using visual objects (ca-vo) wich is completly OOP and native compiler...but
time to go to net....
I personally like c#......Ive Never liked VB....

again Thanks for all the responses....
Mark

"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:eS****************@TK2MSFTNGP06.phx.gbl...
Hi,
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
| hi i would like you all to let me now some pro's and con's
| between vb.net and c#
| I want my company to get away from vb6 and move into c#
| we do alot of online transactions mssql2005
| back end services, processing ,email, fpt, vpn etc.
| and front end web reporting, ftp, information pages

In short there are not too many differences. Both use the same framework.

Use the one that you like the most
--
Ignacio Machin
machin AT laceupsolutions com


Feb 1 '07 #11

P: n/a
"Mark" <an*******@yahoo.comwrote in message
news:3K******************@newssvr27.news.prodigy.n et...
Well thanks all for you responses......
Ive done c,c++ the most of my last few years was
If that's the case you might take a look at C++/CLI, another powerfull .NET language.

Willy.

Feb 1 '07 #12

P: n/a
Ignacio Machin ( .NET/ C# MVP ) wrote:
Hi,
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:DA**********************************@microsof t.com...
| Larry,
| That is absolutely try in the strict interpretation of the comment. But,
C#
| was actually designed from the ground up as the target language for the
..NET
| platform, submitted to and ratified by ECMA. That's the point I was
heading
| at.
| Peter

I read somewhere that C# was for those who are too machos for Vb.net and too
weak for C++ :)
I'm definitely remembering that one :)
Jokes apart I like the syntax that's why I use it. In completely honestly I
do not remember to have used a C# only feature ever.
Anonymous delegates make some things very nice, and I can't see how you
could readily (and 'nicely') express them in a Basic-like syntax...

--
Larry Lard
la*******@googlemail.com
The address is real, but unread - please reply to the group
For VB and C# questions - tell us which version
Feb 1 '07 #13

P: n/a
If your company is making software to sell and the languages have mostly the
same functionality then you may want to choose a language based on the
outside perception. We chose to port our large VB6 application to C#
because it "sounds" better than Visual Basic to non-technical people.
Again, this is only if you do not have a preference to a language. I
personally prefer the case-sensitivity and syntax structure of C#, it makes
it easier to read, so I am glad that we went with it.

Dan
"Mark" <an*******@yahoo.comwrote in message
news:GX*****************@newssvr11.news.prodigy.ne t...
hi i would like you all to let me now some pro's and con's
between vb.net and c#
I want my company to get away from vb6 and move into c#
we do alot of online transactions mssql2005
back end services, processing ,email, fpt, vpn etc.
and front end web reporting, ftp, information pages

tia
mark

Feb 1 '07 #14

P: n/a
Hi,

"Larry Lard" <la*******@googlemail.comwrote in message
news:52*************@mid.individual.net...
| Ignacio Machin ( .NET/ C# MVP ) wrote:

|
| Anonymous delegates make some things very nice, and I can't see how you
| could readily (and 'nicely') express them in a Basic-like syntax...

I do not know the answer to that question, I haven't worked in VB.net for at
least a year and beside, I totally hate VB syntax.

I totally agree with Peter than MS was forced to create "something" and
called it VB something. Otherwise the VB folks would complain like crazy.
Feb 1 '07 #15

P: n/a
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:uz**************@TK2MSFTNGP04.phx.gbl...
I do not know the answer to that question, I haven't worked in VB.net for
at
least a year and beside, I totally hate VB syntax.
Likewise.
I totally agree with Peter than MS was forced to create "something" and
called it VB something. Otherwise the VB folks would complain like crazy.
Yes but, playing devil's advocate here, imagine if VB.NET had been the top
..NET language and C# merely a sop to the VC++ community...;-)
Feb 1 '07 #16

P: n/a
I hated the basic language even back in the day...many moons ago in
college....would not program with it then or under windows....but thats
me....

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
"Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
message news:uz**************@TK2MSFTNGP04.phx.gbl...
>I do not know the answer to that question, I haven't worked in VB.net for
at
least a year and beside, I totally hate VB syntax.

Likewise.
>I totally agree with Peter than MS was forced to create "something" and
called it VB something. Otherwise the VB folks would complain like crazy.

Yes but, playing devil's advocate here, imagine if VB.NET had been the top
.NET language and C# merely a sop to the VC++ community...;-)

Feb 2 '07 #17

P: n/a
Hi,

"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:%2***************@TK2MSFTNGP05.phx.gbl...
| "Ignacio Machin ( .NET/ C# MVP )" <machin TA laceupsolutions.comwrote in
| message news:uz**************@TK2MSFTNGP04.phx.gbl...
|
| I do not know the answer to that question, I haven't worked in VB.net
for
| at
| least a year and beside, I totally hate VB syntax.
|
| Likewise.
|
| I totally agree with Peter than MS was forced to create "something" and
| called it VB something. Otherwise the VB folks would complain like
crazy.
|
| Yes but, playing devil's advocate here, imagine if VB.NET had been the top
| .NET language and C# merely a sop to the VC++ community...;-)
|

That's is a good one :)

Yes, I think that it could had been like that. But IMO this would had given
the impression of a less than powerful and maybe less profesional framework.
cause everybody knows that VB has not half the power than C++.
Unfortunately C++ is very difficult to learn and exploit. so there is Java,
that was like the "perfect" compromise. So MS basically create a Java
competitor.


--
Ignacio Machin
machin AT laceupsolutions com
Feb 5 '07 #18

This discussion thread is closed

Replies have been disabled for this discussion.