473,395 Members | 1,956 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 .Net or C#? Why choose one over the other?

VM
Although I program in C# and all of the projects I work on are in C#, I was
just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer
choose one over the other? The reason I chose C# is because it's somewhat
similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links
with info would be greatly appreciated.

Thanks.
Nov 15 '05 #1
6 3527
VB.NET is much more different from VB6 than VB.NET and C# are. There is not
'real' reason. If you have a bunch of C/Java developers, the learning curve
will be shorter with C#. If you have VB programmers and they are real
programmers (See Option Strict ON) you'll get the same results. VB is more
verbose....C# is a ball buster with case sensitivity.

If they are even asking, they don't need to go to .NET. IL, which it all
compiles to in the end is almost identical. See Dan Appleman's ebook on the
subject, he covers it in depth.

The managed environment is a new paradigm (If I sound like a KPMG
consultant, please forgive me) and the differences between C# and VB.Net are
trivial. Any top notch VB.NET programmer can be a top notch C# programmer
in under two or three weeks and vice versa. Any Top notch VB6 or C++
programmer can be a top notch .NET developer, but it'll take a few more
weeks.

HTH

Bill
"VM" <vo******@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Although I program in C# and all of the projects I work on are in C#, I was just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer
choose one over the other? The reason I chose C# is because it's somewhat
similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links
with info would be greatly appreciated.

Thanks.

Nov 15 '05 #2
VM.... To a beginer I recommend C# simply because it uses the "C"
syntax. This makes it easier to switch between C++, C#, Java,
JavaScript,
Objective-C and C projects.

Regards,
Jeff
The reason I chose C# is because it's somewhat

similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer.<

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3
IF you choose C#...it's can almost port seamlessly to Java

HUGE ADVANTAGE........

Also, if you have Java, you can easily port that to C#......

And if you have JavaScript...that too can be easily ported to C#

BIG Advantage......

"VM" <vo******@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Although I program in C# and all of the projects I work on are in C#, I was just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer
choose one over the other? The reason I chose C# is because it's somewhat
similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links
with info would be greatly appreciated.

Thanks.

Nov 15 '05 #4
And if you don't want to wait all day for a Java Applet to run or don't want
well performing .NET apps porting to Java....

I primarily write in C#, but none of your reasons ever crossed my mind. J#,
which is almost as lame as Pure Java ports identically depending on the OS.
But dude didn't even mention Java........so why do you bring it up?
"nospam" <n@ntspam.com> wrote in message
news:eG*************@TK2MSFTNGP12.phx.gbl...
IF you choose C#...it's can almost port seamlessly to Java

HUGE ADVANTAGE........

Also, if you have Java, you can easily port that to C#......

And if you have JavaScript...that too can be easily ported to C#

BIG Advantage......

"VM" <vo******@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Although I program in C# and all of the projects I work on are in C#, I

was
just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer choose one over the other? The reason I chose C# is because it's somewhat similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links with info would be greatly appreciated.

Thanks.


Nov 15 '05 #5
If you want "world-class" ide, use vb.net (I say this only with envy of the
vb.net ide as I tend to write more c# code). As was said at a recent dotnet
user's group meeting I attended in Dallas, Texas:
"All .Net languages are created equal" -- "But not all IDE's are created
equal"

For example, you seldom have to type out an enum name in vb.net, it knows
automagically. It compiles as you code and highlights errors (which is a lot
better than the vb6 where it wouldn't let you leave a line with an error -
very annoying, but also an advantage over C# because errors as you code are
easily visible in the Tasks box. And if there are no errors in the Tasks box
as you code, then you're pretty much guaranteed that it will compile fine).
I could name many other exmaples, including properties, if / end if, event
handling for windows / web forms, implementing methods of parent classes,
etc.

However, there are some things you can do in C# that you cannot do in
vb.net. For example, if you want/need operator overloading or unsafe code
(pointers) then c# is the way to go. So far, I've only ever overloaded ==
and !=, and could have done just as well with .Equals() had that been my
only option. But some projects (math-oriented especially) would benefit from
the overloading. And if you (like me) have a C++ and/or Java background, the
{}'s will probably "feel" better than If__ End If, Sub__ End Sub, etc.

I admit my list above is 99% about the developer - not necessarily the
client. I can't think of too many things that would actually affect a
client, and I think that's because the end result will be pretty much the
same to them.

--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"VM" <vo******@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Although I program in C# and all of the projects I work on are in C#, I was just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer
choose one over the other? The reason I chose C# is because it's somewhat
similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links
with info would be greatly appreciated.

Thanks.

Nov 15 '05 #6
VM,
Kathleen Dollard summed it up rather well in the Guest Opinion of the
October 2003 Visual Studio Magazine.

http://www.fawcette.com/vsm/2003_10/...ments/guestop/

I choose VB.NET over C# for most of the reasons she lists. And yes! I am
looking forward to Whidbey so I can have generics & overloaded operators in
VB.NET!

Just a thought
Jay
"VM" <vo******@yahoo.com> wrote in message
news:eq**************@TK2MSFTNGP11.phx.gbl...
Although I program in C# and all of the projects I work on are in C#, I was just wondering why someone would choose VB .Net or C#.
Since VB .Net is as similar to VB6 as C# is toVB6, why would a programmer
choose one over the other? The reason I chose C# is because it's somewhat
similar to C (and I've never liked VB6).
I've had clients ask me that but I don't have a definite answer. Any links
with info would be greatly appreciated.

Thanks.

Nov 15 '05 #7

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

Similar topics

12
by: rhmd | last post by:
Just found Python and I love it. What an elegant language! I would like to use it for various applications, but the mathematical calculations are way too slow (a million sines 8 seconds in Python...
1
by: Daniel M. Fichtner | last post by:
Hello, due to performance reasons I need to know whether the xsl:when-Statement has an implied "break" statement, so that the parser do not touch the other when statements or if it is similar to...
2
by: Volker Grabsch | last post by:
Hi! I noticed that many packages in the PyPI are using the PSF License. Does this have a special reason? Is this the common "standard" license for Python libraries? I'm just asking because...
1
by: Pujo Aji | last post by:
Hello, I use ManualResetEvent to stop and allow a thread running by setting: public static ManualResetEvent mre = new ManualResetEvent(false); So if I use mre.WaitOne(); this let the thread...
12
by: Steve | last post by:
Can the Choose function be used to set the criteria for a field in a query to either "Is Null" or "Is Not Null" based on the value of an option Group on a form? Such as:...
74
by: ljh | last post by:
Why would you choose SQL Express (which requires an installed application to work) over the simplicity of an Access database which has no dependencies?
11
by: Genalube | last post by:
I am new to access, so I figure this is an easy question to answer. I just can't find it on my own. Background: Two tables with a one to many relationship (irelevantField1 is a place holder,...
7
by: Diego F. | last post by:
Hello. I have a windows forms application with one form. I added other class files too. By default, the applications starts in the form class, but I want it to start from other class. How can I do...
1
by: hr833 | last post by:
I was wondering whether i could allow the user to choose the table that the entries are to be inserted into. I'm using a SQl command to insert the new records into a table that consists of other...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.