Re: c#.net or vb.net
From: Cindy Winegarden (cindy_winegarden_at_msn.com)
Date: 12/20/04
- Next message: J. Buelna - Houston, TX: "Re: Microsoft Certified Non-Professional"
- Previous message: Dave Paden: "RE: MCAD beginnings"
- In reply to: concern parent: "Re: c#.net or vb.net"
- Next in thread: Dave Paden: "RE: c#.net or vb.net"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 20 Dec 2004 14:49:13 -0500
"concern parent" <concernparent@discussions.microsoft.com> wrote in message
news:7B7F98A3-05CE-428D-A3F3-11E3512CC00E@microsoft.com...
Hi!
Very interesting comments. My question was why you thought C# was more
"powerful" than VB.NET. Please note that my comments below exclude the issue
of writing unsafe code.
> C# is very easy to learn for C++ and java programmers. Computer science
> majors focus is C++ and Java.
To me ease of learning is not "powerful." VB.NET is easy to learn for some
segments of the population.
> C# was designed to be portable, as the specification is published as ECMA
> Std:
> http://www.ecma.ch/ecma1/STAND/ecma-334.htm and thus there are already
> compilers for non-windows systems
Yes, C# is a standard, unlike VB.NET.
> VB has always been a second-class citizen, and in dotnet it still is.
> Some people feel VB should never have been implemented
> in Dotnet; that C# should have replaced it.
I can see how this opinion might make you want to work with C# rather than
VB.NET, but how does popularity make a tool more "powerful?" Can things be
done in C# that can't be done in VB.NET because it is popular?
> C# is the closest thing to a native language dotnet has.
> I think creating it was a necessary intellectual exercise. C# performs
> slightly better than VB, specially if you don't use VB's Option Explicit.
> That's a fact.
Your thought that creating C# is a "necessary intellectual exercise" is an
opinion. How does this make C# more "powerful" than VB.NET?
I'm confused, perhaps because I'm not that familiar with the nuts and bolts
of IL. Both C# and VB.NET compile to the _same_ IL don't they? Can you give
an example of C# and VB code that compile to the _same_ IL where one
performs better than the other?
Use of Option Explicit is a programmer's choice. Well-written code usually
performs better than poorly written code. The skill level of the software
developers using any particular development tool might make the body of code
written using that tool better or worse, but it has no effect on the
language itself.
> C# is also the language MS decided to use in their internal projects.
I've heard this before, but I've never known which ones. Use of the langage
for a particular project doesn't make the language itself more "powerful,"
although that situation might make it more popular.
> I like C# better because of syntax,
Many people like C#'s syntax. I also know quite a few who hate curly braces.
I even know one who's intention was to be a "C# guy" but he couldn't stand
the curlies and focused his efforts on VB.
> and there are a couple of areas (floating
> point operations specifically) where C# is faster.
Again, I'm confused. I thought both languages compiled to the same IL. Can
you post some demo code?
> But, dont get me wrong C++ should not be forgoten. C++ you can do
> everything.. write code for appliance machines, vendor video games,
> driver's,
> real-time application's, Operating Systems, C++ is the prefer
> language..its
> been here for 10 years now, its a standard. C++ is used in windows.. C++
> is
> used in creating Microsoft products.. So, I will always prefer using C#
> and
> C++ back and worth.. VB.NET to me is to risky.. and since VB.net and C# is
> only used for Windows Platforms you have that sense of limited ability..
> But,
> C++ is used on any platform, Industry Robotics, Appliances, its an endless
> field for C++... so stick with C#... once your good at C# and feel your
> ready
> to learn more advance.. move to C++..
Very interesting, and good reasons for a developer to choose one language
over another and recommend that other people choose to work with one over
another. However, I'm interested in much more in how one is more "powerful"
than the other rather than which one is more appealing since appeal is a
matter of opinion.
-- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy_winegarden@msn.com www.cindywinegarden.com
- Next message: J. Buelna - Houston, TX: "Re: Microsoft Certified Non-Professional"
- Previous message: Dave Paden: "RE: MCAD beginnings"
- In reply to: concern parent: "Re: c#.net or vb.net"
- Next in thread: Dave Paden: "RE: c#.net or vb.net"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|