为什么C#比VB.NET更加困惑。 [英] Why is C# more prfferred than VB.NET.

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

问题描述

为什么软件行业使用C#而不是VB.Net?

准确差异......

这可能是最好的选择..

Why do software industries go for C# than VB.Net ?
Wats the exact difference...
Which can be the best option..

推荐答案

2007年7月24日星期二08:04:03 +0200,Snehal< Sn **** @ discussion.microsoft.comwrote:
On Tue, 24 Jul 2007 08:04:03 +0200, Snehal <Sn****@discussions.microsoft.comwrote:

为什么软件行业使用C#而不是VB.Net?

知道确切的差异...

这可能是最好的选择..

Why do software industries go for C# than VB.Net ?
Wats the exact difference...
Which can be the best option..



我的猜测是与C语法的相似之处(c / c ++程序员转到c#)。使用C / C ++软件的行业将转到C#并且有比cb更多的c / c ++软件......


然而网上有大量的VB.Net代码而且我觉得MSPress有比C#更多的VB.Net书籍,所以...


-

快乐的编码!

Morten Wennevik [C#MVP]

My guess would be the similarity to C syntax (c/c++ programmers go to c#). Industries with C/C++ software would then go to C# and there is more c/c++ software than vb ...

However there is a wast amount of VB.Net code on the net and I get the feeling MSPress has more VB.Net books than C#, so ...

--
Happy coding!
Morten Wennevik [C# MVP]




" Snehal" < Sn **** @ discuss.microsoft.com写信息

新闻:17 ************************ ********** @ microsof t.com ...

"Snehal" <Sn****@discussions.microsoft.comwrote in message
news:17**********************************@microsof t.com...

为什么软件行业使用C#而不是VB.Net?

胜过确切的差异......

这可能是最好的选择..
Why do software industries go for C# than VB.Net ?
Wats the exact difference...
Which can be the best option..



Microsoft编写.NET框架C#。这并不是说VB.NET

不是一个好的语言,像C#/ VB.NET / C ++ / CLI这样的编程语言只需要构建软件的工具和你拥有的工具越多,你可以构建的图书馆/应用程序就越多。很多人都会看到编程语言

作为一种宗教,并会捍卫他们所知道和使用的语言结束。

不要陷入这个陷阱。


许多软件公司都在选择C#,因为它基于C / C ++

种语言。您是否知道.NET框架的大部分内容只不过是C封装C封装。基于Win API的方法?如果你学习VB,那么你将很难学习C / C ++ / C#。如果你倾向于C#,那么你将更容易倾斜C / C ++。在我看来,这是最好的理由来选择C#作为你的第一种编程语言。


另外:

从1994年开始 - 2000 Visual Basic 2.0-6.0永远改变了Microsoft编程世界

(和Delphi一样)。这两种语言是编写

双层数据库应用程序的唯一方法(同样适用于Microsoft技术)。他们

是昨天的RAD(快速应用程序开发)工具。即使在今天

你仍然可以使用VB6构建一个漂亮的双层数据库应用程序(在一个

LAN上)。


我的最后一个评论,希望我不要对此展开一场战争。

微软应该从未编写过Visual Basic.NET


为什么?

因为Visual Basic 6.0和Visual Basic .NET与

没有任何共同之处。 VB 6.0从未有过* true *Object Oriented progamming (不是像对象那样对象)和基于接口的编程技术,比如今天的.NET

语言。这意味着VB 6.0程序员学习C#或C ++ / CLI就像学习VB.NET一样困难。如果他打算使用.NET提供的更强大的功能。我认为微软应该在C#/ C ++ .NET上花费所有VB.NET开发时间。


Russell


Microsoft wrote the .NET framework with C#. Which is not to say that VB.NET
is not a good language, programming languages like C#/VB.NET/C++/CLI are
simply tools to build software and the more tools you have, the more
libraries/applications you can build.Many people view programming languages
as a religion, and will defend the language they know and use to the end.
Don''t fall into this trap.

Many software companies are choosing C# because it is based on C/C++
languages. Did you know that the most of the .NET framework is nothing but
C# wrappers around the "C" based methods of the Win API? If you learn VB, it
will be very difficult for you to learn C/C++/C#. If you lean C#, it will be
much easier for you to lean C/C++. In my opinion this is the best reason to
choose C# as your first programming language.

Additionally:
From 1994-2000 Visual Basic 2.0-6.0 changed the Microsoft programming world
for ever (as did Delphi). These two languages were the only way to write a
two layer database applications (again for Microsoft technologies). They
were the RAD (Rapid Application Development) tools of yesterday. Even today
you can still build a nice two layer database application using VB6 (on a
LAN).

My last comment, and hopefully I don''t start a war over this.
Microsoft should have never written Visual Basic.NET

Why?
Because Visual Basic 6.0 and Visual Basic .NET have nothing in common with
one another. VB 6.0 never had *true* "Object Oriented progamming" (not
Object like) and Interface based programming technologies like today''s .NET
languages. Meaning it would be just as hard for a VB 6.0 programmer to learn
VB.NET as it would be to learn C# or C++/CLI. If he were going to use the
more powerful features that .NET offers. I think Microsoft should have spent
all the VB.NET development time on C#/C++ .NET.

Russell



7月24日上午8:43,Russell Mangel < russ ... @ tymer.netwrote:


< snip>
On Jul 24, 8:43 am, "Russell Mangel" <russ...@tymer.netwrote:

<snip>

您是否知道最多的.NET框架只不过是一个围绕C的C#包装器。基于Win API的方法?
Did you know that the most of the .NET framework is nothing but
C# wrappers around the "C" based methods of the Win API?



我对该声明表示不满。对于框架的* * * *
来说,这是真的,但远非大多数。这个索赔的基础是什么?


Jon

I disagree heartily with that statement. It''s true for a *few* areas
of the framework, but far from most. What''s your basis for this claim?

Jon


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

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