VB.NET与C# [英] VB.NET vs C#

查看:68
本文介绍了VB.NET与C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在和一位coleague就C#与VB.net的工作进行辩论。


他确定VB是一个玩具而C#是如此优秀

表现明智。


我告诉他我不相信这一点以及我所看到的所有内容

对话/研究,差异似乎微不足道,但VB.NET有更多的IDE支持,并且坦率地说更容易使用,除非你来自C

背景在哪种情况下C#将是自然的选择。


他说只是做一个空循环,VB代码与C#代码不同

并且表现不佳。


由于骄傲地选择了很多人使用C#

而出于傲慢,或者看似恐慌比非VB阵营的许多人更好的态度。

态度。


对此有何评论?链接到一些数字/统计数据,以证明任何

的差异都是微不足道的,VB会和C#一样好 - 而且

考虑到我们是VB商店 - 对于

重写更合乎逻辑的选择,也会受到赞赏。


谢谢,


Shane

I have been having a debate with a coleague at work about C# vs. VB.net.

He is determined that VB is a toy and that C# is so much better on
performance wise.

I told him that I don''t believe that and from all that I had seen in
conversations/research, the differences seem to be trivial, yet VB.NET has
more IDE support and is frankly easier to use, unless you are from a C
background in which case C# would be the natural choice.

He said that just in doing an empty loop, that the VB code was a different
from the C# code and underperformed it.

I am kind of aggravated by the prevelent choice of so many people using C#
just out of arrogance, or intimidation by the seemingly "better-than-thou"
attitudes from many from the non-VB camp.

Any comments on this? Links to some numbers/statistics to prove that any
differences would be trivial and that VB would be just as good as C#--and
considering that we are a VB shop--would be the more logical choice for a
rewrite, would also be appreciated.

Thanks,

Shane

推荐答案



2005年1月10日


我的立场在Visual Basic .Net开发人员的问题上,两者都是b#和C#和VB相等。编译时,它们都作为托管代码运行。它们具有隔离执行,suberb异常处理以及非常容易的部署等优点。

。两者都可以使用卓越的技术,例如:

ADO.Net,Xml Web服务,XML,ASP.Net,.Net Remoting,Windows服务和

服务组件。根据我的经验,应用程序的性能和质量并不是由于特定的.Net语言,而是在

知识渊博的应用程序开发人员中。我相信

语言之间的区别不在于语言本身,而在于实现

语言的开发人员。总而言之,我相信两者都是平等的,尽管有些像VB一样有点可读。 :)

Joseph MCAD


" SStory"写道:

Jan. 10, 2005

My stance on the issue as a Visual Basic .Net developer is that both
C# and VB are equal. Both, when compiled, run as managed code. They have the
same benefits of isolated execution, suberb exception handling, and very easy
deployment among others. Both can use exceptional techologies such as:
ADO.Net, Xml Web Services, XML, ASP.Net, .Net Remoting, Windows Services, and
Serviced Components. It is my experience that the performance and quality of
an application is not much due to the specific .Net language, but in the
knowledgable application developer. I believe that the difference between the
languages is not in the language itself, but in the developers that implement
the language. In conclusion I believe both are equal although some are a bit
more legible like VB. :)
Joseph MCAD

"SStory" wrote:
我一直在和一位关于C#与VB.net的coleague进行辩论。

他确定VB是一个玩具, C#在性能方面表现得更好。

我告诉他我不相信这一点以及我在
对话/研究中看到的所有内容,差异似乎微不足道,但VB.NET有更多的IDE支持,坦率地说更容易使用,除非你来自C
背景,在这种情况下C#将是自然的选择。

他说,只是做一个空循环,VB代码与C#代码不同,并且表现不佳。

我有点因为选择不当而更加恶化很多人使用C#
只是出于傲慢,或者是来自非VB阵营的许多看似比你更好的态度的恐吓。

对此有何评论?链接到一些数字/统计数据,以证明任何
差异都是微不足道的,VB将与C#一样好 - 而且
考虑到我们是VB商店 - 将是更合乎逻辑的选择对于
重写,也将不胜感激。

谢谢,

I have been having a debate with a coleague at work about C# vs. VB.net.

He is determined that VB is a toy and that C# is so much better on
performance wise.

I told him that I don''t believe that and from all that I had seen in
conversations/research, the differences seem to be trivial, yet VB.NET has
more IDE support and is frankly easier to use, unless you are from a C
background in which case C# would be the natural choice.

He said that just in doing an empty loop, that the VB code was a different
from the C# code and underperformed it.

I am kind of aggravated by the prevelent choice of so many people using C#
just out of arrogance, or intimidation by the seemingly "better-than-thou"
attitudes from many from the non-VB camp.

Any comments on this? Links to some numbers/statistics to prove that any
differences would be trivial and that VB would be just as good as C#--and
considering that we are a VB shop--would be the more logical choice for a
rewrite, would also be appreciated.

Thanks,

Shane



两种语言之间确实没有显着的性能或功能差异

。你的同事误解了.NET是什么以及它是如何在低水平运行的。

" SStory" <钍******* @ TAKEOUTTHISSPAMBUSTERsofthome.net>在消息中写道

新闻:Ol ************** @ TK2MSFTNGP11.phx.gbl ...
There really are no significant performance or functional differences
between the 2 languages. Your colleague is mis-informed about what .NET is
and how it operates at low levels.
"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
我一直在与coleague就C#与VB.net的工作进行辩论。

他确定VB是一个玩具,并且C#在性能方面表现得更好。

我告诉他我不相信,而且从我在对话/研究中看到的所有内容来看,差异似乎微不足道,但VB.NET有更多的IDE支持和坦率地说更容易使用,除非你来自C
背景,在这种情况下C#将是自然的选择。

他说只是做一个空循环,VB代码是与C#代码不同,并且表现不佳。

我很多人选择使用C#
只是出于傲慢或恐吓而使我感到恶心。看似非常好的态度来自非VB阵营的许多人的态度。

对此有何评论?链接到一些数字/统计数据,以证明任何
差异都是微不足道的,VB将与C#一样好 - 而且
考虑到我们是VB商店 - 将是更合乎逻辑的选择对于
重写,也将不胜感激。

谢谢,

I have been having a debate with a coleague at work about C# vs. VB.net.

He is determined that VB is a toy and that C# is so much better on
performance wise.

I told him that I don''t believe that and from all that I had seen in
conversations/research, the differences seem to be trivial, yet VB.NET has
more IDE support and is frankly easier to use, unless you are from a C
background in which case C# would be the natural choice.

He said that just in doing an empty loop, that the VB code was a different
from the C# code and underperformed it.

I am kind of aggravated by the prevelent choice of so many people using C#
just out of arrogance, or intimidation by the seemingly "better-than-thou"
attitudes from many from the non-VB camp.

Any comments on this? Links to some numbers/statistics to prove that any
differences would be trivial and that VB would be just as good as C#--and
considering that we are a VB shop--would be the more logical choice for a
rewrite, would also be appreciated.

Thanks,

Shane






语言之间显着优势的旧假设可以追溯到

C和VB 3或4之间的差异再次使用C ++和VB5或

VB6。 VB .Net和C#几乎总是创建相同的IL指令,并且两者都具有相同的对象基础和效率。有一些,轻微的
差异。这些差异与亨利詹姆斯和DH劳伦斯之间的差异大致相同;他们不是你在莎士比亚和奥斯卡王尔德之间看到的差异,使用一些文学隐喻,其中差异很大。


HTH,


Bernie Yaeger


" SStory" <钍******* @ TAKEOUTTHISSPAMBUSTERsofthome.net>在消息中写道

新闻:Ol ************** @ TK2MSFTNGP11.phx.gbl ...
Hi,

The old assumption of significant advantage between languages goes back to
the difference between, say, C and VB 3 or 4 and again with C++ and VB5 or
VB6. VB .Net and C# create the same IL instructions almost always, and both
have the same object foundation and efficiencies. There are a few, minor
differences. These differences are about the same as the difference between
Henry James and DH Lawrence; they are not the differences you would see
between Shakespeare and Oscar Wilde, to use some literary metaphors, where
the differences are vast.

HTH,

Bernie Yaeger

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:Ol**************@TK2MSFTNGP11.phx.gbl...
我一直在与coleague就C#与VB.net的工作进行辩论。

他确定VB是一个玩具,并且C#在性能方面表现得更好。

我告诉他我不相信,而且从我在对话/研究中看到的所有内容来看,差异似乎微不足道,但VB.NET有更多的IDE支持和坦率地说更容易使用,除非你来自C
背景,在这种情况下C#将是自然的选择。

他说只是做一个空循环,VB代码是与C#代码不同,并且表现不佳。

我很多人选择使用C#
只是出于傲慢或恐吓而使我感到恶心。看似非常好的态度来自非VB阵营的许多人的态度。

对此有何评论?链接到一些数字/统计数据,以证明任何
差异都是微不足道的,VB将与C#一样好 - 而且
考虑到我们是VB商店 - 将是更合乎逻辑的选择对于
重写,也将不胜感激。

谢谢,

I have been having a debate with a coleague at work about C# vs. VB.net.

He is determined that VB is a toy and that C# is so much better on
performance wise.

I told him that I don''t believe that and from all that I had seen in
conversations/research, the differences seem to be trivial, yet VB.NET has
more IDE support and is frankly easier to use, unless you are from a C
background in which case C# would be the natural choice.

He said that just in doing an empty loop, that the VB code was a different
from the C# code and underperformed it.

I am kind of aggravated by the prevelent choice of so many people using C#
just out of arrogance, or intimidation by the seemingly "better-than-thou"
attitudes from many from the non-VB camp.

Any comments on this? Links to some numbers/statistics to prove that any
differences would be trivial and that VB would be just as good as C#--and
considering that we are a VB shop--would be the more logical choice for a
rewrite, would also be appreciated.

Thanks,

Shane



这篇关于VB.NET与C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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