473,395 Members | 2,796 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VB vs C# vs C++ vs J#

Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum are
normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System
Dec 6 '05 #1
32 1982
let the flame war begin.

if you know VB, might as well stick with VB so you can leverage (some)
of the knowledge.

i like C#, as I think it's very elegant.

other than style though, not too many differences, when it comes to the
resulting CLR code.

Dec 6 '05 #2
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Are there any advantages of using one language over another?
Almost none...
I currently use VB, but notice that most code samples on the internet and
this forum are normally in C# (I think).


C# has one important feature which is not supported in VB.NET, namely
unmanaged code e.g. pointers etc.

I've never needed to use unmanaged code.
Dec 6 '05 #3
Microsoft uses C#. The framework is written primarily in C#. Major
parts of Vista is written in C# (various WPF components). Microsoft
Expression is written in C#.

You do the math...

Dec 6 '05 #4
C# can do some things that VB.Net cannot. Most developers don't need to do
these things. If you're asking this question, you probably don't need to do
these things either. Otherwise, they are simply different languages that
compile to (virtually) the same MSIL.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System

Dec 6 '05 #5
A terrible lack again for VB's like me.
Byte pointers etc are so handy.
Another hit for us, MS keeps putting us in the child corner this way.
Well, at least they gave us a few handy things like the stringbuilder which
helps a little.
of course calling the winapi using some asp.net structures is going so bad.
Not trivial at all.
Examples... hopeless!

I still use PowerBASIC for unmanaged parts.
Unf. the dll loading is another bad issue.

Poor!
"Mark Rae" <ma**@markN-O-S-P-A-M.co.uk> schreef in bericht
news:OH****************@TK2MSFTNGP15.phx.gbl...
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Are there any advantages of using one language over another?


Almost none...
I currently use VB, but notice that most code samples on the internet and
this forum are normally in C# (I think).


C# has one important feature which is not supported in VB.NET, namely
unmanaged code e.g. pointers etc.

I've never needed to use unmanaged code.

Dec 6 '05 #6
Use whatever you feel comfortable with. Most code samples are in C# as
those developers are more comfortable with C# probably because they
come from a C++ or Java background. However, I do encourage you to
learn how to read C# since more code samples are in C#. One word of
warning. Once you learn C# you probably won't use VB as your primary
language anymore. I fell into this trap.

Dec 6 '05 #7
> Are there any advantages of using one language over another?

YES !
The one you know always works better :)
Dec 6 '05 #8
I am a VB.NET person, although I do believe that most ASP.NET developers
should learn to read, if not write, in both, because you may be forced to
use one language or the other depending on where you work. As for when you
have the choice, I would recommend, like most of the other people that
responded to this thread, that you use whichever one you are most
comfortable with. As far as the unmanaged code thing, it is true that you
will rarely, if ever, need it. However, I would expect that the rare
situations that you do would be when writing custom classes that would be
used for many different applications. Because of this, I would simply make
an entirely separate project so that you can still use your preferred
language for the application, and simply include the .dll from the custom
class which you write using whatever language it requires.
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System

Dec 6 '05 #9
Can you specify some of those things?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
C# can do some things that VB.Net cannot. Most developers don't need to do
these things. If you're asking this question, you probably don't need to do these things either. Otherwise, they are simply different languages that
compile to (virtually) the same MSIL.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System


Dec 6 '05 #10
That is kinda what I thought, but just had to make sure. As for unmanaged
code...what is it?
I have learned to read C# and translate it to VB, but can only write VB.
Thanks for everyone's input.

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System

Dec 6 '05 #11
chuckdfoster wrote:
Just wondering this...

Are there any advantages of using one language over another? I
currently use VB, but notice that most code samples on the internet
and this forum are normally in C# (I think).


In addition to what you've already heard, C++ is not used for writing
ASP.NET applications and J# does not support partial classes.

--
Jim Cheshire
JIMCO Software
http://www.jimcosoftware.com

Merry Christmas from JIMCO Software!

Dec 6 '05 #12
C# supports use of unmanaged code, such as C code, with pointer support. C#
supports operator overloading, although I've heard that VB.Net 2005 supports
this. I haven't had a chance to check it out for myself. C# supports
anonymous methods.

Other than those few items, they are functionally the same. I find the
unmanaged code aspect to be useful to me, but I have often run into
situations in which I need it. Again, most developers do not. It is useful
particularly if you work with graphics a lot.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Vaibhav" <co************@yahoo.com> wrote in message
news:ec****************@TK2MSFTNGP10.phx.gbl...
Can you specify some of those things?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
C# can do some things that VB.Net cannot. Most developers don't need to
do
these things. If you're asking this question, you probably don't need to

do
these things either. Otherwise, they are simply different languages that
compile to (virtually) the same MSIL.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
> Just wondering this...
>
> Are there any advantages of using one language over another? I currently > use VB, but notice that most code samples on the internet and this
> forum
> are normally in C# (I think).
>
> --
> Chuck Foster
> Programmer Analyst
> Eclipsys Corporation - St. Vincent Health System
>



Dec 6 '05 #13
"tdavisjr" <td******@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
One word of
warning. Once you learn C# you probably won't use VB as your primary
language anymore. I fell into this trap.


You say that like it's a bad thing... ;-)
Dec 6 '05 #14
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
I have learned to read C# and translate it to VB, but can only write VB.


Do yourself a *HUGE* favour, and learn to write in C#. For one thing, your
earning potential doubles instantly! Since you posted in an ASP.NET forum,
I'm assuming that you can already write client-side JavaScript, so writing
C# should be an impossible task for you...
Dec 6 '05 #15
Well, with .NET 2.0 the languages are no longer equal and can now
collaborate
on an assemble. VB has the My namespace, C# has anonymous methods, C++/
cli produces optimized MSIL, is especially good at interop and has
compile time
templates and const behavior. A C# programmer should have no trouble
reading
the new C++/cli syntax and a C++ programmer should have no trouble
reading
C# code. A C++/cli programmer and C# programmer can collaborate on a dll
generating netmodules and linking to a single assembly. A C# programmer
can
call code in C++/cli:safe netmodule compiling to an exe that contains
the C++/
cli:safe netmodule and vice versa.

Regards,
Jeff

*** Sent via Developersdex http://www.developersdex.com ***
Dec 7 '05 #16
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time because
you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which is
just as capable as C# (if not more so) in all things that really matter to
most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System

Dec 7 '05 #17
The only reason Microsoft does so much of their development in C# is because
they are migrating from a C++ environment so the switch is more natural.

On the other hand, Chuck is migrating from VB, therefore a VB.NET migration
will be more natural for him. This is why Microsoft made both C# and
VB.NET. So I suggest you recalculate your "math".

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ag******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Microsoft uses C#. The framework is written primarily in C#. Major
parts of Vista is written in C# (various WPF components). Microsoft
Expression is written in C#.

You do the math...

Dec 7 '05 #18
> VB.NET has more functions than C# can therefore save you more time because
you write less code.
Come on, now, Steve. That's just not intellectually honest. All of these
functions are available to C# through the Microsoft.VisualBasic namespace!
;-)

--

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl... C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time because
you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which is
just as capable as C# (if not more so) in all things that really matter to
most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System


Dec 7 '05 #19
RCS
There is a much bigger issue with the VB.NET vs C# war - and that is with
finding answers to problems -or- learning how to do something. On the
newsgroups and many websites - there are FAR more examples in C#, than
VB.NET - I suspect because VB.NET developers are typically not the types to
go into deeper subject matter. They are the "crank out a working
application" type of developers.

For example, I was working on making my own validator (inheriting from
BaseValidator) - and I found next to no examples in VB - everything was in
C#. And likewise, *all* of the VB.NET developers I know - would've just
"done it another way", rather than create their own validator (which now
works great, by the way!)

So - one thing to factor, is if you are a developer who frequently likes to
push the envelope or extend existing functionality - language choice should
be a consideration. Because if I was writing everything in VB.NET - I'd
spend half of my time translating examples and help from newsgroups from C#.

Oh - and one thing that is key, regardless of your language of choice - it
is critical for you to be comfortable in both languages. I blew a half-day
trying to find what the VB.NET version of "extern" was - and another
half-day trying to find how to manually wire an event (the equivalent of
+=)...

It will make you a more valuable developer to be solid in both languages.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time because
you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which is
just as capable as C# (if not more so) in all things that really matter to
most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I currently
use VB, but notice that most code samples on the internet and this forum
are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System


Dec 7 '05 #20
True, but how many C# developers do you know that humble themselves by
resorting to that? Most of them rewrite these functions themselves so they
can stay "pure" even though its a big waste of time.

Anyway, why not just use VB.NET if you're going to be using its functions
anyway?

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
VB.NET has more functions than C# can therefore save you more time
because you write less code.


Come on, now, Steve. That's just not intellectually honest. All of these
functions are available to C# through the Microsoft.VisualBasic namespace!
;-)

--

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time
because you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which is
just as capable as C# (if not more so) in all things that really matter
to most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I
currently use VB, but notice that most code samples on the internet and
this forum are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System



Dec 7 '05 #21
I think you're exagerating.
Maybe there are *slightly* more examples in C# on the web than in VB.NET,
but I see it as about a 60% / 40% mix.
So yours is not a very convincing argument if you ask me.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"RCS" <rs****@gmail.com> wrote in message
news:Ha*****************@newssvr22.news.prodigy.ne t...
There is a much bigger issue with the VB.NET vs C# war - and that is with
finding answers to problems -or- learning how to do something. On the
newsgroups and many websites - there are FAR more examples in C#, than
VB.NET - I suspect because VB.NET developers are typically not the types
to go into deeper subject matter. They are the "crank out a working
application" type of developers.

For example, I was working on making my own validator (inheriting from
BaseValidator) - and I found next to no examples in VB - everything was in
C#. And likewise, *all* of the VB.NET developers I know - would've just
"done it another way", rather than create their own validator (which now
works great, by the way!)

So - one thing to factor, is if you are a developer who frequently likes
to push the envelope or extend existing functionality - language choice
should be a consideration. Because if I was writing everything in VB.NET -
I'd spend half of my time translating examples and help from newsgroups
from C#.

Oh - and one thing that is key, regardless of your language of choice - it
is critical for you to be comfortable in both languages. I blew a half-day
trying to find what the VB.NET version of "extern" was - and another
half-day trying to find how to manually wire an event (the equivalent of
+=)...

It will make you a more valuable developer to be solid in both languages.
"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time
because you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which is
just as capable as C# (if not more so) in all things that really matter
to most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I
currently use VB, but notice that most code samples on the internet and
this forum are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System



Dec 7 '05 #22
LOL! I can't beleive we are going down this road again. Microsoft,
look what you have done! Forget the language, lets just keep coding as
thats what we do best.

Dec 7 '05 #23
Let's not get all religious about this, Steve. If people want to code in
VB.Net, that's fine. If they don't, that's fine. I don't see the need for
any "wars" (to quote another contributor) over it. The whole debate is
rather silly. As a developer, all I care about is having the tools I need to
do what I need to do, and knowing how to use them. I don't care what sort of
skin they wear. And I'm not advocating one over the other. What I *do*
advocate is that people who develop software know what the heck they are
doing, and why. That is what makes or breaks a programmer. The best tools in
the world don't make the best developers. And that's got nothing to do with
what language one writes in.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
True, but how many C# developers do you know that humble themselves by
resorting to that? Most of them rewrite these functions themselves so
they can stay "pure" even though its a big waste of time.

Anyway, why not just use VB.NET if you're going to be using its functions
anyway?

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
VB.NET has more functions than C# can therefore save you more time
because you write less code.


Come on, now, Steve. That's just not intellectually honest. All of these
functions are available to C# through the Microsoft.VisualBasic
namespace! ;-)

--

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time
because you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which
is just as capable as C# (if not more so) in all things that really
matter to most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
Just wondering this...

Are there any advantages of using one language over another? I
currently use VB, but notice that most code samples on the internet and
this forum are normally in C# (I think).

--
Chuck Foster
Programmer Analyst
Eclipsys Corporation - St. Vincent Health System



Dec 7 '05 #24
Thanks Kevin!
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
C# supports use of unmanaged code, such as C code, with pointer support. C# supports operator overloading, although I've heard that VB.Net 2005 supports this. I haven't had a chance to check it out for myself. C# supports
anonymous methods.

Other than those few items, they are functionally the same. I find the
unmanaged code aspect to be useful to me, but I have often run into
situations in which I need it. Again, most developers do not. It is useful
particularly if you work with graphics a lot.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Vaibhav" <co************@yahoo.com> wrote in message
news:ec****************@TK2MSFTNGP10.phx.gbl...
Can you specify some of those things?
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:O$**************@TK2MSFTNGP10.phx.gbl...
C# can do some things that VB.Net cannot. Most developers don't need to
do
these things. If you're asking this question, you probably don't need to
do
these things either. Otherwise, they are simply different languages

that compile to (virtually) the same MSIL.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
> Just wondering this...
>
> Are there any advantages of using one language over another? I

currently
> use VB, but notice that most code samples on the internet and this
> forum
> are normally in C# (I think).
>
> --
> Chuck Foster
> Programmer Analyst
> Eclipsys Corporation - St. Vincent Health System
>



Dec 7 '05 #25
Am I being religious? I use both languages regularly, and although I prefer
VB.NET for most things, C# has its merits too and I don't hate working with
it. (version 2 is a very nice improvement too)

There are not enough people defending VB.NET and its benefits however, and
so if I have a crusade, I guess that is it.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ef****************@tk2msftngp13.phx.gbl...
Let's not get all religious about this, Steve. If people want to code in
VB.Net, that's fine. If they don't, that's fine. I don't see the need for
any "wars" (to quote another contributor) over it. The whole debate is
rather silly. As a developer, all I care about is having the tools I need
to do what I need to do, and knowing how to use them. I don't care what
sort of skin they wear. And I'm not advocating one over the other. What I
*do* advocate is that people who develop software know what the heck they
are doing, and why. That is what makes or breaks a programmer. The best
tools in the world don't make the best developers. And that's got nothing
to do with what language one writes in.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
True, but how many C# developers do you know that humble themselves by
resorting to that? Most of them rewrite these functions themselves so
they can stay "pure" even though its a big waste of time.

Anyway, why not just use VB.NET if you're going to be using its functions
anyway?

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
VB.NET has more functions than C# can therefore save you more time
because you write less code.

Come on, now, Steve. That's just not intellectually honest. All of these
functions are available to C# through the Microsoft.VisualBasic
namespace! ;-)

--

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
C++ is only for propeller heads and I can barely understand why J# even
exists.

That brings it down to the only two languages that matter for web
development, VB.NET and C#.

VB.NET has more functions than C# can therefore save you more time
because you write less code.

So I suggest you save yourself headaches by sticking with VB.NET which
is just as capable as C# (if not more so) in all things that really
matter to most web developers.
Note that it wouldn't hurt to hedge your bets by learning enough C# to
understand the differences between the two languages.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:Oa****************@TK2MSFTNGP09.phx.gbl...
> Just wondering this...
>
> Are there any advantages of using one language over another? I
> currently use VB, but notice that most code samples on the internet
> and this forum are normally in C# (I think).
>
> --
> Chuck Foster
> Programmer Analyst
> Eclipsys Corporation - St. Vincent Health System
>



Dec 7 '05 #26
Don't forget that VB.NET has features that C# doesn't have.

Here are just a few:
* dozens of extra functions
* dozens of extra code snippets
* late binding ability
* a more descriptive syntax
* The largest user base of any language in the world (if you include VB
classic)

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Vaibhav" <co************@yahoo.com> wrote in message
news:eN****************@TK2MSFTNGP14.phx.gbl...
Thanks Kevin!
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:uk**************@TK2MSFTNGP09.phx.gbl...
C# supports use of unmanaged code, such as C code, with pointer support.

C#
supports operator overloading, although I've heard that VB.Net 2005

supports
this. I haven't had a chance to check it out for myself. C# supports
anonymous methods.

Other than those few items, they are functionally the same. I find the
unmanaged code aspect to be useful to me, but I have often run into
situations in which I need it. Again, most developers do not. It is
useful
particularly if you work with graphics a lot.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Vaibhav" <co************@yahoo.com> wrote in message
news:ec****************@TK2MSFTNGP10.phx.gbl...
> Can you specify some of those things?
> "Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
> news:O$**************@TK2MSFTNGP10.phx.gbl...
>> C# can do some things that VB.Net cannot. Most developers don't need
>> to
>> do
>> these things. If you're asking this question, you probably don't need to > do
>> these things either. Otherwise, they are simply different languages that >> compile to (virtually) the same MSIL.
>>
>> --
>> HTH,
>>
>> Kevin Spencer
>> Microsoft MVP
>> .Net Developer
>> You can lead a fish to a bicycle,
>> but you can't make it stink.
>>
>> "chuckdfoster" <ch**********@hotmail.com> wrote in message
>> news:Oa****************@TK2MSFTNGP09.phx.gbl...
>> > Just wondering this...
>> >
>> > Are there any advantages of using one language over another? I
> currently
>> > use VB, but notice that most code samples on the internet and this
>> > forum
>> > are normally in C# (I think).
>> >
>> > --
>> > Chuck Foster
>> > Programmer Analyst
>> > Eclipsys Corporation - St. Vincent Health System
>> >
>>
>>
>
>



Dec 7 '05 #27

Mark Rae wrote:
For one thing, your earning potential doubles instantly!


This doesn't even scratch the surface of reality.

Dec 7 '05 #28
Well, Steve, I just don't believe that facts need defending. They are what
they are. And I believe that technology stands or falls on its own merits.
VB.Net is here to stay. That says enough for me.

I have spoken when people have stated false things about VB.Net (even though
I almost never use it). I suppose you might call that "defending it."
However, I prefer to think of it as "defending the truth." The VB.Net
syntax, for example, has been denigrated as being too "user friendly."
However, I point out that eventually we will talk to computers and give them
instructions in the same language we use to talk to people. So, it might be
argued that the syntax is "ahead of its time." Not surprising, coming from
Bill Gates, who is perennially ahead of his time. ;-)

Again, I use C# because I need some of the things it does that VB.Net does
not. And I have personally availed myself of the Microsoft.VisualBasic
NameSpace from time to time! Why reinvent the wheel, when what you really
want is to build a car as quickly as possible?

--

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
Am I being religious? I use both languages regularly, and although I
prefer VB.NET for most things, C# has its merits too and I don't hate
working with it. (version 2 is a very nice improvement too)

There are not enough people defending VB.NET and its benefits however, and
so if I have a crusade, I guess that is it.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:ef****************@tk2msftngp13.phx.gbl...
Let's not get all religious about this, Steve. If people want to code in
VB.Net, that's fine. If they don't, that's fine. I don't see the need for
any "wars" (to quote another contributor) over it. The whole debate is
rather silly. As a developer, all I care about is having the tools I need
to do what I need to do, and knowing how to use them. I don't care what
sort of skin they wear. And I'm not advocating one over the other. What I
*do* advocate is that people who develop software know what the heck they
are doing, and why. That is what makes or breaks a programmer. The best
tools in the world don't make the best developers. And that's got nothing
to do with what language one writes in.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2*****************@TK2MSFTNGP14.phx.gbl...
True, but how many C# developers do you know that humble themselves by
resorting to that? Most of them rewrite these functions themselves so
they can stay "pure" even though its a big waste of time.

Anyway, why not just use VB.NET if you're going to be using its
functions anyway?

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:%2******************@TK2MSFTNGP09.phx.gbl...
> VB.NET has more functions than C# can therefore save you more time
> because you write less code.

Come on, now, Steve. That's just not intellectually honest. All of
these functions are available to C# through the Microsoft.VisualBasic
namespace! ;-)

--

Kevin Spencer
Microsoft MVP
.Net Developer
You can lead a fish to a bicycle,
but you can't make it stink.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:O8*****************@TK2MSFTNGP09.phx.gbl...
> C++ is only for propeller heads and I can barely understand why J#
> even exists.
>
> That brings it down to the only two languages that matter for web
> development, VB.NET and C#.
>
> VB.NET has more functions than C# can therefore save you more time
> because you write less code.
>
> So I suggest you save yourself headaches by sticking with VB.NET which
> is just as capable as C# (if not more so) in all things that really
> matter to most web developers.
> Note that it wouldn't hurt to hedge your bets by learning enough C# to
> understand the differences between the two languages.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD, MVP
> http://SteveOrr.net
>
>
> "chuckdfoster" <ch**********@hotmail.com> wrote in message
> news:Oa****************@TK2MSFTNGP09.phx.gbl...
>> Just wondering this...
>>
>> Are there any advantages of using one language over another? I
>> currently use VB, but notice that most code samples on the internet
>> and this forum are normally in C# (I think).
>>
>> --
>> Chuck Foster
>> Programmer Analyst
>> Eclipsys Corporation - St. Vincent Health System
>>
>
>



Dec 7 '05 #29
"Paul Bush" <po*******@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Mark Rae wrote:
For one thing, your earning potential doubles instantly!


This doesn't even scratch the surface of reality.


Well it did for me...
Dec 8 '05 #30
RCS wrote:
There is a much bigger issue with the VB.NET vs C# war - and that is with
finding answers to problems -or- learning how to do something. On the
newsgroups and many websites - there are FAR more examples in C#, than
VB.NET - I suspect because VB.NET developers are typically not the types to
go into deeper subject matter. They are the "crank out a working
application" type of developers. Or maybe, we can work out the answers more frequently by ourselves :-)

For example, I was working on making my own validator (inheriting from
BaseValidator) - and I found next to no examples in VB - everything was in
C#. And likewise, *all* of the VB.NET developers I know - would've just
"done it another way", rather than create their own validator (which now
works great, by the way!) Well, I've created validators. I've created HttpModules and
HttpHandlers. Yes, a lot of code samples are in C#. But it's not like
translating is difficult. Step one, copy. Step two, paste. Step three,
hit compile. Start fixing the errors. Snot difficult. (In fact, this is
the way I've taught myself some languages - with the compilers errors
and the online help).
[snip]
It will make you a more valuable developer to be solid in both languages.

Indeed. The framework itself is the largest part of learning either of
these languages coming from an older language. And the framework is
common between them. I use C# in the following circumstances: 1) When I
want to do unsafe code, 2) When I want to knock
off^H^H^H^H^H^H^H^H^Hreuse a large amount of code from elsewhere, or 3)
When I think I might be getting a bit rusty in C#.

I think in large part it depends on your own background, what the
standards are for the company you work in, and how much either of the
two languages "speaks to you". I've heard about as many people claim
that they find the syntax for VB is easier than C# as I have heard it
stated the other way around.

Damien

Dec 8 '05 #31
Actually, I'm not migrating anything. I just wanted some opinions and
wondered if I should switch from VB.NET to C#.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eg***************@TK2MSFTNGP15.phx.gbl...
The only reason Microsoft does so much of their development in C# is
because they are migrating from a C++ environment so the switch is more
natural.

On the other hand, Chuck is migrating from VB, therefore a VB.NET
migration will be more natural for him. This is why Microsoft made both
C# and VB.NET. So I suggest you recalculate your "math".

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ag******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Microsoft uses C#. The framework is written primarily in C#. Major
parts of Vista is written in C# (various WPF components). Microsoft
Expression is written in C#.

You do the math...


Dec 8 '05 #32
RCS
At the very least - you should be fluent enough to translate in both
directions. Which language you ultimately chose, is upto you (and sometimes
your employer). But I vote for C# :-)
"chuckdfoster" <ch**********@hotmail.com> wrote in message
news:uJ*************@tk2msftngp13.phx.gbl...
Actually, I'm not migrating anything. I just wanted some opinions and
wondered if I should switch from VB.NET to C#.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:eg***************@TK2MSFTNGP15.phx.gbl...
The only reason Microsoft does so much of their development in C# is
because they are migrating from a C++ environment so the switch is more
natural.

On the other hand, Chuck is migrating from VB, therefore a VB.NET
migration will be more natural for him. This is why Microsoft made both
C# and VB.NET. So I suggest you recalculate your "math".

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
<ag******@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Microsoft uses C#. The framework is written primarily in C#. Major
parts of Vista is written in C# (various WPF components). Microsoft
Expression is written in C#.

You do the math...



Dec 9 '05 #33

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.