为何选择C#? [英] Why C#?

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

问题描述

来自一个简单的头脑的简单问题所以请不要激怒我。

我是.NET的新手,我正在用VB .NET完成一个课程。他们试图制作

我相信.NET允许我用我选择的任何语言进行编程,并且

最终得到相同的结果或者我认为它是如何。所以我的问题

学习C#有什么好处?也许是为了找工作还是可以用b $ b $做多吗?我已经学习了C ++和Java课程,看到了我自学的VB 6的差异。

Simple question from a simple mind so don''t flame me, please.
I am new to .NET and am finishing a class in VB .NET. They try to make
me believe that .NET allows me to program in any language I choose and
end up with the same result or that''s how I perceive it. So my question
is what is the advantage to learning C# ? Maybe for job hunting or can
C# do more than VB? I have taken classes in C++ and Java and see the
differences from VB 6 which I taught myself.

推荐答案

如果你扫描这些组,你会发现很多关于这个主题的讨论。

有些人会坚决认为VB.Net更好,其他人会说C#

是更好。


每种语言都有一些其他可能缺乏的功能,但是IMO,它只需归结为你觉得最合适的语法。这是'b $ b'在你熟练掌握其中一个之后不难学习,这是IMO最好的行动方案。

If you scan the groups you will find many discussions on this topic.
Some will say adamantly that VB.Net is better, other will say that C#
is better.

Each language has some features that the other may lack, but IMO, it
just boils down to which syntax you feel most comfortable with. It''s
not difficult to learn both after you have become proficient with one
of them, to that''s the best course of action IMO.


Marty,


这个主题有很多线程。


用所有

语言做同样的事情并不完全正确。示例:C ++可以在托管堆中取消装箱,例如C#

总是复制堆栈中的未装箱值,但除了这些小东西,

是的,你是对的,你可以从任何语言得到相同的结果。

实际上我认为C ++是一个很大的例外,因为这是唯一可以生成混合程序集的语言

(不包括IL汇编程序)。


我认为语言的选择更加个性化,就像语言语法一样令人难以理解

- 易用性和可读性。例如,我发现

C#程序比VB.NET和托管扩展程序更紧凑,易于阅读。

C ++。

即使进入具有大C ++经验的.NET我发现托管扩展名

非常混乱和令人困惑(他们说他们改变了.NET2.0中的语法和

现在更清楚,但我不知道,坦白也不在乎。


我个人不喜欢VB.NET对我来说这是不可读的我不觉得

这是我选择的语言,但这只是我。如果我之前使用过VB

我可能继续使用VB.NET。

-


Stoitcho Goutsev( 100)


" Marty" < MC ****** @ gmail.com>在消息中写道

news:11 ********************** @ t31g2000cwb.googlegr oups.com ...
Marty,

There are huge number of threads on this topic.

It is not completely true that you can do the same things with all
languages. Example: C++ can unbox in the managed heap where for example C#
always copy the unboxed value in the stack, but besides such small things,
yes you are right that you can get the same result from any language.
Actually I think C++ is one big exception because this is the only language
(excluding IL assembler) that can produce mixed assemblies.

Choice of language I believe is more personal, like how confortable one is
withe the language syntax - ease of use and readability. For example I find
C# programs more compact, easy to read than VB.NET and the managed extension
of C++.
Even comming in .NET with big C++ experiance I find the managed extension
very messy and confusing (they say they changed the syntax in .NET2.0 and
now is clearer, but I don''t know and frankly don''t care).

I personally don''t like VB.NET for me it is unreadable and I don''t feel that
this my language of choice, but this is just me. If I have used VB before
I''d probably keep using VB.NET.
--

Stoitcho Goutsev (100)

"Marty" <mc******@gmail.com> wrote in message
news:11**********************@t31g2000cwb.googlegr oups.com...
来自一个简单的头脑的简单问题所以请不要激怒我。
我是.NET的新手,正在完成VB .NET课程。他们试图让我相信.NET允许我用我选择的任何语言进行编程,并最终得到相同的结果,或者就是我对它的看法。所以我的问题
是学习C#的优势所在?也许是为了找工作还是可以比C#做更多的事情?我已经学习了C ++和Java课程,看到了我自学的VB 6的差异。
Simple question from a simple mind so don''t flame me, please.
I am new to .NET and am finishing a class in VB .NET. They try to make
me believe that .NET allows me to program in any language I choose and
end up with the same result or that''s how I perceive it. So my question
is what is the advantage to learning C# ? Maybe for job hunting or can
C# do more than VB? I have taken classes in C++ and Java and see the
differences from VB 6 which I taught myself.



>来自一个简单的头脑的简单问题所以请不要惹我生气。
> Simple question from a simple mind so don''t flame me, please.
我是.NET的新手,正在VB .NET中完成一个课程。他们试图让我相信.NET允许我用我选择的任何语言进行编程,并最终得到相同的结果,或者就是我对它的看法。所以我的问题
是学习C#的优势所在?也许是为了找工作还是可以比C#做更多的事情?我已经学习了C ++和Java课程,看到了我自学的VB 6的差异。
I am new to .NET and am finishing a class in VB .NET. They try to make
me believe that .NET allows me to program in any language I choose and
end up with the same result or that''s how I perceive it. So my question
is what is the advantage to learning C# ? Maybe for job hunting or can
C# do more than VB? I have taken classes in C++ and Java and see the
differences from VB 6 which I taught myself.




.Net环境不会强迫你使用C#或VB.Net。这是个人偏好(或您(未来)

雇主的偏好)您选择的语言。您也可以使用J#(不能称之为

java.net)或JScript.Net或......

Hans Kesting



The .Net environment doesn''t force you to use either C# or VB.Net. It''s
a matter of personal preference (or the preference of your (future)
employer) what language you choose. You can also use J# (can''t call it
java.net) or JScript.Net or ...
Hans Kesting


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

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