C#.net和VB.NET,哪一个更好,为什么它更好? [英] C#.net and VB.NET, which one is better and why it is better?

查看:435
本文介绍了C#.net和VB.NET,哪一个更好,为什么它更好?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C#.net和VB.net,哪一个更好,为什么它更好?

我正在考虑学习其中一种语言,你能告诉我们吗?我这些语言的优点和缺点是什么?我应该选择哪一种?



我尝试过的方法:



我个人认为当我找工作时,Visual Basic会更好,但我不确定。

解决方案

学习C#因为文章和博客文章中的大多数示例都在C#中。 VB.Net和C#在语法上非常相似,所以如果你找到一篇VB.Net文章,你可以很容易地将它转换成C#。



我实际上是从VB开始的在我做C#之前.Net很容易转换到C#。


当你去编程工作时,C#将是更好的选择。

如果你第一次想学习,那么VB可能是更好的选择 - 它取决于什么是更好的可读性。

在这两种情况下:你必须学习的不是编程语言 - 您需要学习的是.Net-Framework的使用,不同类型对象的使用和意义以及它们如何结合在一起。这部分独立于编程语言,因为两种语言都以相同的方式使用它(如RyanDev所描述的)C#可以很容易地转换为VB,反之亦然...


< blockquote>显然有点主观,哪个更好,但我怀疑大多数知道两者的人会表达对C#的偏好。我当然这样做,它在语法上更好,并且通常更好用。



如果您考虑就业前景,C#将是明显的赢家。它的需求量更大,而且您更有可能完成新项目而不是支持遗留代码。我不能看到VB就像C#一样..



如果你知道C#,那么选择其他语言会更容易Java,C和C ++。 VB有点特殊,虽然它可能是C#的一个很好的跳板,但它并不能真正帮助你使用非.NET语言。



我还要强调RyanDev的观点,即社区对C#的支持要多得多。这是一个非常重要的因素。


C#.net and VB.net, which one is better and why it is better?
I am thinking about learning one of these languages, can you guys tell me what are the advantages and disadvantages of these languages and which one should I choose?

What I have tried:

I personally think Visual basic is better when I will go for a job, but I am not sure.

解决方案

Learn C# since most examples online in articles and blog posts are in C#. VB.Net and C# are very similar in syntax so if you do find a VB.Net article you can easily convert it into C#.

I actually started out with VB.Net before I did C# and it was very easy to transition to C#.


When you will go for a job in Programming then C# will be the better choice.
If you first want to learn then VB could be the better choice - it depends on what is better readable for you.
In both cases : what you have to learn is not the programming-language - what you have to learn is the use of the .Net-Framework, the use and the sense of the different types of objects and how they come together. This part is independent from the programming-language because both languages work with it in the same way AND (as described by RyanDev) C# could be easily converted to VB and the other way round ...


It's obviously a bit subjective as to which is better but I suspect that most people who know both would express a preference for C#. I certainly do, it's much nicer syntactically and generally nicer to work with.

If you're thinking in terms of employment prospects, C# would be the clear winner. It's much more in demand and you're more likely to wind up working on new projects rather than supporting legacy code. I can't see VB being around for anything like as long as C#.

If you know C#, it'd be a lot easier to pick up other languages like Java, C and C++. VB is somewhat idiosyncratic and whilst it might be a good springboard to C# it won't really help you with non .NET languages.

I'd also underline RyanDev's point that there is far more community support for C#. That's a very important factor.


这篇关于C#.net和VB.NET,哪一个更好,为什么它更好?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆