473,385 Members | 1,470 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Sample Code - C# or VB?

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

Nov 15 '05 #1
18 1322
Chad,
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.


So why not provide both. The C# people will be happy with the C#
encantation and the VB people will be happy with the VB encantation.

Regards,

Randy
Nov 15 '05 #2
If you figure out the secret of life be sure you come back to let
everyone know.

Seriously, I would say you should be more concerned with appealing
to those who have to pay for the development and present your choice
based on the costs of paying for those who will be most responsible for
developing, modifying, and maintaining the code.

You can tip the scale towards C# which is currently easier and more
efficient to document. When maintenance costs become a considerable
topic in the presence of those who write the paychecks I have observed
silence from those sitting on the VB side of the table. Maybe it was because
the pizza had just been delivered? ;-)

--
<%= Clinton Gallagher
A/E/C Consulting, Web Design, e-Commerce Software Development
Wauwatosa, Milwaukee County, Wisconsin USA
NET cs*********@REMOVETHISTEXTmetromilwaukee.com
URL http://www.metromilwaukee.com/clintongallagher/

LaGarde StoreFront 5 Affiliate: e-Commerce Solutions
SEE: http://www.storefront.net/default.as...RER=-201499070

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1...
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

Nov 15 '05 #3
"Randy A. Ynchausti" <ra*************@msn.com> wrote in news:OrNu#BC6DHA.2412
@TK2MSFTNGP10.phx.gbl:
So why not provide both. The C# people will be happy with the C#
encantation and the VB people will be happy with the VB encantation.


As I stated in the message there are dozens of demos, and both porting as
well as maintaining existing and future ones is too time intensive.
--
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

Nov 15 '05 #4
"clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in
news:ey**************@TK2MSFTNGP12.phx.gbl:
Seriously, I would say you should be more concerned with appealing
to those who have to pay for the development and present your choice
based on the costs of paying for those who will be most responsible for
developing, modifying, and maintaining the code.
Its a mix of C# and VB developers. Ratio unknown - or lets say same as actual
usage ratio of C# to VB.
You can tip the scale towards C# which is currently easier and more
efficient to document. When maintenance costs become a considerable
topic in the presence of those who write the paychecks I have observed


Im leaning towards C# right now as the VB crowd seems to be used to reading
C#, and a little less "offended" at having to do so vs C# users reading VB.
--
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

Nov 15 '05 #5
WJ
1. VB
a. VB is only working on MS platform. Therefore, portability is zero.
b. VB is not in ISO nor ECMA.
c. VB is too verbose. It can be thought of as "Cobol" of IBM in the
past. Tedious coding. Unproductive.

2. c#
a. c# is widely (and continue to be) supported across Non-Microsoft
platforms.
b. Blessed by ISO and ECMA.
c. Coding style and or syntax is similar to Java, C, JScript. Eliminate
learning effort.

3. Modern Acronym interpretation
a. c# denotes "Do major/C#" in music. Therefore, when c# is pronounced,
it can be understood easily by programmers and musician. :)
b. While VB=Very Bad! ;)

John
Nov 15 '05 #6
"WJ" <JW***@Msn2.Com> wrote in news:ur**************@TK2MSFTNGP10.phx.gbl:
c. VB is too verbose. It can be thought of as "Cobol" of IBM in the
past. Tedious coding. Unproductive.


While I agree - its irrelevant to this decision. :)

MAny of your other points were very good, but again for this decision
irrelevant. Im not choosing which langage *I* will use. Im choosing a
language to present .net demos in to a mixed audience of both C# and VB
developers. Both langauges cannot always be ported - so I need to decide on a
preferred on for the audience. :)

Its leaning towards C# though. VB developers seem to be ok reading C# code if
you dont get cryptic - and since these are demos they will remain rather
simple.
--
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

Nov 15 '05 #7
WJ
"Chad Z. Hower aka Kudzu"
VB developers seem to be ok reading C# code
They better learn fast now. VB days are numbered...
and since these are demos they will remain rather
simple.


I have nothing against your work. However, your guys spoil the VB peoples.
Why not write them all in c# and this will force VB to be c#... ?

John Webbs

Nov 15 '05 #8
I'm curious, why are VB's days numbered?

Rob
"WJ" <JW***@Msn2.Com> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
"Chad Z. Hower aka Kudzu"
VB developers seem to be ok reading C# code


They better learn fast now. VB days are numbered...
and since these are demos they will remain rather
simple.


I have nothing against your work. However, your guys spoil the VB peoples.
Why not write them all in c# and this will force VB to be c#... ?

John Webbs

Nov 15 '05 #9
WJ

"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious, why are VB's days numbered?


Based on job seekers here in my area (Washington). And many of our clients
prefer c# over VB. We as developers also promote c# over VB, this helps.
This trend tends to climb fast in the current market. In addition, based on
tools developed by other non-Microsoft software builders such as Borland,
they do not develope VB, only c# for .Net FrameWork. I know only India is
having lots of VB coders, but they are not software maker. On top of that,
why MS never pushed VB into ISO and ECMA if they intend to see VB as a
potential language ? And why MS on;y did this with c# ? So, the level of
support for c# is likely to stay... for a longtime...

John W
Nov 15 '05 #10
Hi John,

You mentioned Borland, a while ago they came out with their C# Builder
product based on the Microsoft C# compiler but they also are about to
release (or have just released) Delphi for .NET. It's clear that Borland
plans on supporting and enhancing both tools for their customers.

The same holds true for Microsoft, they plan to support and enhance both VB
and C# for their customers. All of the major language/IDE enhancements
coming in the next version of .NET (e.g. generics, partial classes,
expansions/snippets, refactoring, etc.) are being implemented for both VB
and C#.

Visual Basic is still one of the most popular development tools worldwide
(not just in India) and many people from Microsoft have stated their
commitment to keeping it that way.

I use both languages depending on the project/client I'm working for. I
happen to prefer VB because I think I'm more productive with it but I'm
prefectly happy to use either one.

Rob

"WJ" <JW***@Msn2.Com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...

"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious, why are VB's days numbered?

Based on job seekers here in my area (Washington). And many of our clients
prefer c# over VB. We as developers also promote c# over VB, this helps.
This trend tends to climb fast in the current market. In addition, based

on tools developed by other non-Microsoft software builders such as Borland,
they do not develope VB, only c# for .Net FrameWork. I know only India is
having lots of VB coders, but they are not software maker. On top of that,
why MS never pushed VB into ISO and ECMA if they intend to see VB as a
potential language ? And why MS on;y did this with c# ? So, the level of
support for c# is likely to stay... for a longtime...

John W

Nov 15 '05 #11

"WJ" <JW***@Msn2.Com> wrote in message
news:OM**************@TK2MSFTNGP09.phx.gbl...

"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
I'm curious, why are VB's days numbered?

Based on job seekers here in my area (Washington). And many of our clients
prefer c# over VB. We as developers also promote c# over VB, this helps.
This trend tends to climb fast in the current market. In addition, based

on tools developed by other non-Microsoft software builders such as Borland,
they do not develope VB, only c# for .Net FrameWork. I know only India is
having lots of VB coders, but they are not software maker. On top of that,
why MS never pushed VB into ISO and ECMA if they intend to see VB as a
potential language ? And why MS on;y did this with c# ? So, the level of
support for c# is likely to stay... for a longtime...
Although the language spec is of value, I tend to disagree with this.
Many(if not most) of the asp.net jobs I see in my area(Chicago) are VB.NET
only. While much of the desktop world seems to want C#, the web companys all
seem to be centering around VB. Thankfully I'm not a web developer, but that
certainly suggests to me that VB is being used actively in some markets.
As for the reasoning behind not standardizing VB, I would suspect that is
because VB, more than anything else, is Microsofts proprietary language. It
always has been. Just on that merit alone a standard starts to make less
sense(its fairly rare that OSS advocates are thrilled to have the name VB
involved in anything, for examplem, why standarize if non-windows platforms
will shun it?). However, there are fledgling projects for mono to produce a
VB.NET compiler, as well as work in #Develop to add VB projects(or there is
supposed to be, I havn't kept up). Also while C# is the hot product right
now its certainly not set in stone that Borland or any other company will
not producing a product for VB(if licensing from MS allows it). John W

Nov 15 '05 #12
"WJ" <JW***@Msn2.Com> wrote in news:Ol**************@TK2MSFTNGP12.phx.gbl:
VB developers seem to be ok reading C# code


They better learn fast now. VB days are numbered...


You are very optimistic. :)

Whatever C# developers think of VB, its going to be around for a LONG time to
come.

--
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

Nov 15 '05 #13
"WJ" <JW***@Msn2.Com> wrote in news:OM**************@TK2MSFTNGP09.phx.gbl:
Based on job seekers here in my area (Washington). And many of our clients
prefer c# over VB. We as developers also promote c# over VB, this helps.
Not a representative sample world wide. Many companies want VB because there
are so many VB developers and they are cheaper.
tools developed by other non-Microsoft software builders such as Borland,
they do not develope VB, only c# for .Net FrameWork. I know only India is


Not only C#, but Delphi.net too.

--
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

Nov 15 '05 #14
"WJ" <JW***@Msn2.Com> wrote in news:OM**************@TK2MSFTNGP09.phx.gbl:
having lots of VB coders, but they are not software maker. On top of that,
why MS never pushed VB into ISO and ECMA if they intend to see VB as a
potential language ? And why MS on;y did this with c# ? So, the level of


This one is easy - MS wants one language that they can change and add to at
will. Putting it in ECMA limits that a lot.
--
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

Nov 15 '05 #15
"Rob Windsor [MVP]" <rw******@NO.MORE.SPAM.bigfoot.com> wrote in
news:OW**************@TK2MSFTNGP10.phx.gbl:
product based on the Microsoft C# compiler but they also are about to
release (or have just released) Delphi for .NET. It's clear that Borland


It already released and been shipping for about a month now.

--
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

Nov 15 '05 #16
Cor
Hi Kudzu,

I do not see you make so much wrong statements the last days, but this is an
enormous one.
c. VB is too verbose. It can be thought of as "Cobol" of IBM in the
past. Tedious coding. Unproductive.


While I agree


COBOL is absolute no IBM language, it is (and still is) used on almost every
brand of mainframe in the world.

http://www.oevelen.com/eng/cobol/hist/

It has a lifetime of more than 45 years while some languages have even not
proved them selves.

It has always been very productive in the environment for what it was
designed

It has left the C like opponents (algebraic) from the time that it was
designed "Fortran" and "Algol" not even in the minds of people (who are
shorter in business than 25 years)

With what I again say (as you know from the VB group) nothing wrong about C#
although I see in VB.net language more the successor from Cobol than C#.

:-)

Of course as you already know in full respect of you.

Cor
Nov 15 '05 #17
Chad,
Im leaning towards C# right now as the VB crowd seems to be used to reading C#, and a little less "offended" at having to do so vs C# users reading VB.
I suspect that its more true to say Experienced VB.NET developers are less
"offended" by C# samples, I strongly suspect beginner VB.NET developers will
simply ignore C# samples! Also I question how true your statement will be
once VB.NET gains more & more momentum. Where you have VB.NET shops
"oblivious" to C#.

I sincerely hope you did not base your conclusion on this thread in the
VB.NET newsgroup, as I did not at all come out with your conclusion! :-)

As I stated in the other thread your "Best bet" is samples in both. Either
one for one or equal number of both.

Hope this helps
Jay

"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:Xn******************@127.0.0.1... "clintonG" <csgallagher@RE************@metromilwaukee.com> wrote in
news:ey**************@TK2MSFTNGP12.phx.gbl:
Seriously, I would say you should be more concerned with appealing
to those who have to pay for the development and present your choice
based on the costs of paying for those who will be most responsible for
developing, modifying, and maintaining the code.
Its a mix of C# and VB developers. Ratio unknown - or lets say same as

actual usage ratio of C# to VB.
You can tip the scale towards C# which is currently easier and more
efficient to document. When maintenance costs become a considerable
topic in the presence of those who write the paychecks I have observed
Im leaning towards C# right now as the VB crowd seems to be used to

reading C#, and a little less "offended" at having to do so vs C# users reading VB.

--
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

Nov 15 '05 #18
WJ
"Rob Windsor [MVP]"
You mentioned Borland, a while ago they came out with their C# Builder
product based on the Microsoft C# compiler but they also are about to
release (or have just released) Delphi for .NET. It's clear that Borland
plans on supporting and enhancing both tools for their customers.


As I understand, behind Delphi is a Pascal compiler and Pascal is ranked
equiv. with c#. So, it makes sense for Borland to support Delphi too. BTW:
Delphi is proprietary, not Pascal. I would label Delphi as Object Pascal.
Where VB is to MS. So, without VB, the world is still moving :). Anyway, I
did a quick research on this by going to Borland Delphi NG and it appears
that there are lots of Delphi developers who are in EU and Latin America.
Thanks to this thread, I now know one more language out there that works
with MS/.Net FW & CLR. Though they just throw out version 8 but according to
thread discussions, it seems there are lots of bugs! I think I feel very
comfortable with c# for now.

John
Nov 15 '05 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Alexandre | last post by:
Hi, Im a newb to dev and python... my first sefl assigned mission was to read a pickled file containing a list with DB like data and convert this to MySQL... So i wrote my first module which...
6
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something...
5
by: | last post by:
Trying to learn about manipulating collections of objects, and populating these objects dynamically from datasources. Could someone post a code sample that shows the following: Instantiating a...
30
by: Chad Z. Hower aka Kudzu | last post by:
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...
2
by: mirandacascade | last post by:
Situation is this: 1) must write application that does the following: a) creates an xml document, the contents of which, is a request transaction b) send xml document to destination; I am...
4
by: Henry | last post by:
Does anybody have a real-world sample of buiding a treeview control using data from database tables? All the sample code I have found either builds the treeview manually or uses a file directory...
5
by: Will | last post by:
- I know enough ASP and Access to be dangerous :) - I need to put up a data base on our web server with 3 related tables. - They will be accessed by a limited number of people. - Each user will...
5
by: Otto Wyss | last post by:
I've now been looking for a week for a simple but useful sample on how to get a list of entries (persons) via an XMLHttpRequest using Json/PHP on the server. So far I've found about a thousend...
69
by: raylopez99 | last post by:
They usually don't teach you in most textbooks I've seen that delegates can be used to call class methods from classes that are 'unaware' of the delegate, so long as the class has the same...
6
by: WT | last post by:
Hello, Using url rewritting and ajax.net, I tried to circumvent some potential problems with postback url using a code from a sample given by Scott. The idea is to use a control Adapter on...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.