views:

192

answers:

6

Which language is preferred by most developers especially targeting .NET & silverlight? Is it C# or VB.NET?

Are there any advantages/disadvantages of both languages when compared with each other?

+1  A: 
  • Are there any advantages/disadvantages of both languages when compared with each other?

Yes, yes there are.

Oded
+1  A: 

i would favor C# ... just because i never liked the syntax of VB, don't know why but i never liked VB since my early days when i was learning programming.

and about (dis)advantages? they both have their own, and i think it's like comparing apples and onions

Gabriel
Gabriel, that's a pretty poorly constructed opinion right there mate. Surely you must know *why* you don't like VB. If you don't know *why*, it probably means you're not used to VB, which in turn means your opinion is irrelevant.
David Rutten
+2  A: 

The answer to your first question is more .NET developers use C# than VB.NET VB.NET than C# (according to this). Most tutorials, code samples, and sample projects tend to be written in C# instead of VB.NET though, so C# might be a bit easier to learn.

Paperjam
Amusing and all as the post may be, unless you put a giant proviso on this, it deserves downvotes - lots of things have changed since that article was published.
Ruben Bartelink
Fixed. I probably should have checked the date...
Paperjam
The answer to the first question is **wrong**. In fact Lisa Feigenbaum, a Microsoft PM in the .NET Managed Languages Group, said in mid 2009 that there were slightly **more** VB.NET developers than C# developers. http://www.infoq.com/news/2009/06/Future-VB.NET
MarkJ
Fixed. My answer was based on observations from my second sentence.
Paperjam
+1  A: 

C# is a better choice.. More seriously, pointless question. As we all know, C# and VB.NET compiles to the same IL code, so it's just a matter of personal preference.

Bolek Tekielski
A: 

C# is good for programmers which be familiar with C++. But if you have been used VB6, you can switch to VB.NET more easily.

I think C# is more future language, because it is developed after Java, C++, Visual Basic, ... And so that, it is combined advantages of the above languages. Example: C# use OOP concepts of Java & C++, like as: inheritance, interface, abstract, & C# don't use pointer like C++. C# also use designer like VB.

Lu Lu
Lu Lu, I don't agree with your reasoning here. VB and C# are almost completely interchangeable. It's only when you use *unsafe* that you start running into problems.Microsoft certainly wants C# to become the future default, but it remains to be seen to what extend they'll succeed. Just look at the names: Visual *Basic* vs. C *Sharp*. Which sounds like the friendlier language to you? As long as Visual Basic remains more forgiving, it will still be the language of choice for many teaching institutions.
David Rutten
Hello David Rutten, I don't know the plans of Microsoft. And I am not sure about future of any languages. So I don't have any words. You can see: VB.NET is familiar VB programmers, C# is for C++ programmer, J# is for Java programmers.It depends on your choice. With me, C# is my choice. At the moment, I only want to learn about MS' technologies like as: WPF, ... I am creating skin controls on WinForm but it is more difficult than you use WPF. So I also don't sure about future of WinForm ...
Lu Lu
+1  A: 

It depends a bit which market you're talking about. Most of our clients are architects and whenever they learn programming they tend to start with (and stick to) VB.NET. However, architects don't care much for Silverlight development...

I'm merely pointing this out since it's a break from the standard behaviour.

My background is VBScript and VB6, but these days I'm equally proficient in C# and VB.NET. The more I learnt about C#, the less I liked it. Sadly, the more I learnt about C#, the less I liked VB as well. If only there was a way to combine the best bits...

David Rutten