Solved

C# or VB.NET....which is the best to learn ...????

Posted on 2004-09-10
17
266 Views
Last Modified: 2010-04-17
I'm student....now I decide to learn .NET but I don't know which language is the best to learn and will have a good job in future....show can you show me the way to learn dot NET.....which language I need to learn....to have a job in United State ????

Thanks
0
Comment
Question by:sonbinary
  • 3
  • 3
  • 3
  • +3
17 Comments
 
LVL 19

Accepted Solution

by:
drichards earned 100 total points
Comment Utility
If you don't already know VB (pre-.NET), then C# is definitely the way to go.  It's syntax is close to Java and C++ so it's easier if you know either of these to start with.  Otherwise, it will make branching out into Java and/or C++ easier later on.  VB.NET is a strange mix of old and new VB syntax and to me it seems a bit confusing if you're not already a VB person.  C# is (in my opinion) much cleaner.

Because the .NET class library is used in both VB.NET and C#, it is pretty easy to translate from one to the other.  Going from VB.NET may be a bit tougher if the code uses a lot of the "old" VB syntax rather than the .NET class library functions.  That's why I think it's better to start off with C# if you are not already a VB programmer.
0
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 100 total points
Comment Utility
I tend to agree.

Some other considerations
Where do you want the job?  
   If you have a location in mind check what is hot in that area.

What kinds of programming interest you?
   It tends to be that database driven programs are easier in VB.  C# has its own strengths.

Learn to problem solve and think problems through in a design mode without a language in mind.  2-5 years from now VB.Net and C# will have evolved into something else.  The programmers who survive will be those who can solve problems and design code.  A new language and syntax are relatively easy to pick up.

mlmcc

0
 
LVL 8

Assisted Solution

by:boulder_bum
boulder_bum earned 100 total points
Comment Utility
One magazine article noted that C# programmers tend to make more because, deserved or not, VB has a bad stigma (people see it as a gumby programming language).

Functionally, the languages are necessarily identical because they both compile into the same MSIL code and both use the class library (the .NET Framework). If one language has a certain feature, it's not because it lacks the capability FOR that feature per se, it means it hasn't been implemented.

There are examples of advantages one language has over another, for example C# has an event collection for optimization rather than a set of empty fields, and VB has a built-in template for creating COM compatible objects, but ultimately you should base your decision on what language you are most comfortable with.

This said, if you know one language well, it will take you all of a few hours to learn the other. Remove/add semi-colons and brackets and you're mostly done.
0
 

Author Comment

by:sonbinary
Comment Utility
I want to developt multimedia software..I want developt network software , mobile software, pocket software....design style for my software....so can VB.NET do it ??? Or C# can do it ????
0
 

Author Comment

by:sonbinary
Comment Utility
I studied C, C++ and Java...so with dot Net may I study C# because it very like another....but If I study it I can have a problems with another language........Can you help me to choose which languate I must study..???
0
 

Author Comment

by:sonbinary
Comment Utility
I studied C, C++ and Java...so with dot Net may I study C# because it very like another....but If I study it I can have a problems with another language........Can you help me to choose which languate I must study..??? I don't know VB 6.0...I never ever learn VB 6.0
0
 
LVL 19

Expert Comment

by:drichards
Comment Utility
If you've never learned VB6, then there is noreason to start with VB.NET unless you have a specific job in mind that requires VB programming.  Start with C#, and because with VB.NET you can ignore nost of the legacy VB syntax if you want, picking up VB.NET once you learn C# is not very hard.  If you stick to the .NET framework, VB.NET code and C# code are easy to convert back and forth once you learn a few patterns.  For example, variables are declared differently, and scoping looks different ({} in C# vs. things like 'For/Next' and 'Sub/End Sub' in VB).  Once you learn these types of translations you can write VB code pretty well with some help from intellisense and the VB.NET editor.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 9

Assisted Solution

by:ronan_40060
ronan_40060 earned 100 total points
Comment Utility
Hello Sonbinary

Check out the comprehensive answer available at
http://www1.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20892293.html#10414144

All your doubts will be cleared
Good Luck
Ronan
0
 
LVL 19

Expert Comment

by:drichards
Comment Utility
>> Check out the comprehensive answer available
It's not 100% accurate and in some cases just blatantly wrong, so be careful.
0
 
LVL 9

Expert Comment

by:ronan_40060
Comment Utility
here is what I would say
it makes no much difference. Whether you write code in VB.NET or C#, when you compile, your code will get converted to MSIL (Microsoft Intermediate language). It is this MSIL which you deliver to your customer in the form of a DLL or EXE. The MSIL is executed by the same .NET framework, whether you wrote it originally in C# or VB.NET.

The MSIL generated by C# and VB.NET is almost 99% is the same! Many believe that C# has the power of C++ and VB.NET has the user friendliness of VB. That is not true. Both are equally powerfull and friendly.

VB.NET has backward compatibility with old Visual basic. So, it supports old vb functions. C# is a fresh, clean language. So strongly support using C# instead of VB.NET just for this clean compiler.
0
 
LVL 19

Assisted Solution

by:Desp
Desp earned 100 total points
Comment Utility
Download this white paper as it has all the differences between the two languages:
http://support.microsoft.com/?kbid=308470
0
 
LVL 19

Expert Comment

by:Desp
Comment Utility
*Almost All
0
 
LVL 19

Expert Comment

by:Desp
Comment Utility
Split points among all experts
0
 
LVL 9

Expert Comment

by:ronan_40060
Comment Utility
yes it wud be good thing to split the points among experts
regards
Ronan
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now