示例代码 - VB或C#? [英] Sample Code - VB or C#?

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

问题描述

我需要为程序集提供一系列演示。有几十个可能的潜力很多。它们都不是很复杂,但保持两个版本的b $ b将会非常维护。


我在两个版本中提供的一些非常基本的版本C#和VB。无论如何移动

前进,时间不允许。所以我必须选择 - C#还是VB?对我来说,

这并不重要。我对任何一个都很满意。


如果我选择C#,这将疏远VB用户。我的感觉是,更多C#用户

可以轻松读取VB代码,而VB用户可以轻松读取C#代码。


但是如果我选择VB,我可能会疏远C#用户。我的感觉是C#

用户一般都可以阅读VB,但是对它持一般的蔑视感觉如果他们必须阅读VB并且没有C#可用,那么b $ b有点轻视。


我想同样包括两个社区都不喜欢

一个。


评论?建议?更正?

-

Chad Z. Hower(又名Kudzu) - http://www.hower.org/Kudzu/

编程是一种反击的艺术形式

ELKNews - 在 http://www.atozedsoftware.com 上获取免费副本

I need to provide a series of demos for an assembly. There are potentialy
several dozen of them. None of them are very complex, however maintaining two
versions of them will be very maintainance intensive.

Some of the very basic ones I have provided in both C# and VB. However moving
forward, time just does not permit. So I have to choose - C# or VB? For me,
it does not really matter. I am comfortable in either one.

If I choose C#, this will alienate VB users. My feeling is that more C# users
can read VB code easily than VB users can easily read C# code.

However if I choose VB, I might alienate C# users. My feeling here is that C#
users generally can read VB, but hold a general disdain for it and feel
somewhat slighted if they have to read VB and no C# is available.

I would like to equally include both communities with a preference to neither
one.

Comments? Suggestions? Corrections?
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com

推荐答案

嗨Kudzu,


我在这个新闻组中的经验与你说的不同。 />

它应该是,但事实并非如此。


当我在Adonet和我的另一个更通用的新闻组中提供样本时

在VB中做的比我认识的那样C#用户经常不明白这是几乎完全一样的。

(我试着把这些样本放入更少的声明中并且铸造为posible

并且大多数唯一的额外差异是;()和[])


sa我很有见效我在这个最新的小组中有VB用户关于C#

当Herfried支持链接到C#样本时。


我希望这对你有帮助吗? br />

Cor
Hi Kudzu,

My expirience in this newsgroup is different than you say.

It should be, but it is not.

When I contribute samples in another more general newsgroup for Adonet and I
do it in VB than I recognize that C# users often do not understand that is
almost exactly the same.
(I try to put in those samples as less declaration and casting as posible
and than mostly the only extra difference is the ";" the () and [] )

The same expirience I have here in this newstgroup with VB users about C#
when Herfried supports a link to a C# sample.

I hope this helps you?

Cor


" Cor" < no*@non.com>在新闻中写道:我们************** @ TK2MSFTNGP10.phx.gbl:
"Cor" <no*@non.com> wrote in news:us**************@TK2MSFTNGP10.phx.gbl:
当我在Adonet的另一个更通用的新闻组中提供样本时
和我在VB中做的比我认识到C#用户经常不理解那几乎完全相同。


你从C#用户那里得到了什么样的反应?

我在这个最新的小组中与VB用户有关的相同的概念
C#当Herfried支持C#样本的链接时。


当人们在这里发布C#代码时,VB开发人员会有什么样的反应?

我希望这对你有帮助吗?
When I contribute samples in another more general newsgroup for Adonet
and I do it in VB than I recognize that C# users often do not understand
that is almost exactly the same.
What kind of reactions do you get from C# users though?
The same expirience I have here in this newstgroup with VB users about
C# when Herfried supports a link to a C# sample.
What kind of reaction do VB developers have when people post C# code here?
I hope this helps you?




有点 - 我不确定你的用户的反应是什么。 :)

-

Chad Z. Hower(又名Kudzu) - http://www.hower.org/Kudzu/

编程是一种反击的艺术形式

ELKNews - 在 http://www.atozedsoftware.com 上获取免费副本



Kind of - Im not sure what the reactions of your users were. :)
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
ELKNews - Get your free copy at http://www.atozedsoftware.com


乍得,

Chad,

* "Chad Z. Hower aka Kudzu" <cp**@hower.org> scripsit:
我需要为程序集提供一系列演示。有几十种可能的潜力。它们都不是非常复杂,但是保持它们的两个版本将非常维护。

我在C#和VB中提供的一些非常基本的版本。无论如何向前移动,时间只是不允许。所以我必须选择 - C#还是VB?对我来说,这并不重要。我对任何一个都很满意。

如果我选择C#,这将疏远VB用户。我的感觉是,更多C#用户可以轻松阅读VB代码,而VB用户可以轻松阅读C#代码。


我不这么认为。我经常在C#群体和C#中阅读,而不是VB $ b / b /想要/阅读VB.NET代码(bah,它是BASIC)而VB.NET程序员

更经常会读取C#代码以解决问题。

但是如果我选择VB,我可能会疏远C#用户。我的感觉是C#
用户一般都可以阅读VB,但是对它有一般的蔑视,如果他们必须阅读VB并且没有C#可用,他们会感到有些轻视。
我想同样包括两个社区都不喜欢
一个。

评论?建议?更正?
I need to provide a series of demos for an assembly. There are potentialy
several dozen of them. None of them are very complex, however maintaining two
versions of them will be very maintainance intensive.

Some of the very basic ones I have provided in both C# and VB. However moving
forward, time just does not permit. So I have to choose - C# or VB? For me,
it does not really matter. I am comfortable in either one.

If I choose C#, this will alienate VB users. My feeling is that more C# users
can read VB code easily than VB users can easily read C# code.
I don''t think so. I often read in C# groups and C#ies more often don''t
/want/ to read VB.NET code ("bah, it''s BASIC") while VB.NET programmers
more often will read C# code in order to solve a problem.
However if I choose VB, I might alienate C# users. My feeling here is that C#
users generally can read VB, but hold a general disdain for it and feel
somewhat slighted if they have to read VB and no C# is available.

I would like to equally include both communities with a preference to neither
one.

Comments? Suggestions? Corrections?




找一位同事帮助您用

编程语言提供样本。

:-)

-

Herfried K. Wagner [MVP]

< http:/ /www.mvps.org/dotnet>



Look for a coworker who will help you to provide the samples in both
programming languages.

:-)

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


这篇关于示例代码 - VB或C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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