Sample Code - C# or VB?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chad Z. Hower aka Kudzu

    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/
    "Programmin g is an art form that fights back"


    ELKNews - Get your free copy at http://www.atozedsoftware.com

  • Randy A. Ynchausti

    #2
    Re: Sample Code - C# or VB?

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

    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


    Comment

    • clintonG

      #3
      Re: Sample Code - C# or VB?

      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 csgallagher@REM OVETHISTEXTmetr omilwaukee.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" <cpub@hower.org > wrote in message
      news:Xns94817C5 EBD3DDcpub@127. 0.0.1...[color=blue]
      > 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[/color]
      two[color=blue]
      > versions of them will be very maintainance intensive.
      >
      > Some of the very basic ones I have provided in both C# and VB. However[/color]
      moving[color=blue]
      > forward, time just does not permit. So I have to choose - C# or VB? For[/color]
      me,[color=blue]
      > 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#[/color]
      users[color=blue]
      > 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[/color]
      C#[color=blue]
      > 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[/color]
      neither[color=blue]
      > one.
      >
      > Comments? Suggestions? Corrections?
      >
      >
      > --
      > Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
      > "Programmin g is an art form that fights back"
      >
      >
      > ELKNews - Get your free copy at http://www.atozedsoftware.com
      >[/color]


      Comment

      • Chad Z. Hower aka Kudzu

        #4
        Re: Sample Code - C# or VB?

        "Randy A. Ynchausti" <randy_ynchaust i@msn.com> wrote in news:OrNu#BC6DH A.2412
        @TK2MSFTNGP10.p hx.gbl:[color=blue]
        > 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.[/color]

        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/
        "Programmin g is an art form that fights back"


        ELKNews - Get your free copy at http://www.atozedsoftware.com

        Comment

        • Chad Z. Hower aka Kudzu

          #5
          Re: Sample Code - C# or VB?

          "clintonG" <csgallagher@RE MOVETHISTEXT@me tromilwaukee.co m> wrote in
          news:eyIyVFC6DH A.1504@TK2MSFTN GP12.phx.gbl:[color=blue]
          > 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.[/color]

          Its a mix of C# and VB developers. Ratio unknown - or lets say same as actual
          usage ratio of C# to VB.
          [color=blue]
          > 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[/color]

          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/
          "Programmin g is an art form that fights back"


          ELKNews - Get your free copy at http://www.atozedsoftware.com

          Comment

          • WJ

            #6
            Re: Sample Code - C# or VB?

            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


            Comment

            • Chad Z. Hower aka Kudzu

              #7
              Re: Sample Code - C# or VB?

              "WJ" <JWebb@Msn2.Com > wrote in news:ur4uNbC6DH A.2380@TK2MSFTN GP10.phx.gbl:[color=blue]
              > c. VB is too verbose. It can be thought of as "Cobol" of IBM in the
              > past. Tedious coding. Unproductive.[/color]

              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/
              "Programmin g is an art form that fights back"


              ELKNews - Get your free copy at http://www.atozedsoftware.com

              Comment

              • WJ

                #8
                Re: Sample Code - C# or VB?

                "Chad Z. Hower aka Kudzu"[color=blue]
                > VB developers seem to be ok reading C# code[/color]

                They better learn fast now. VB days are numbered...
                [color=blue]
                > and since these are demos they will remain rather
                > simple.
                >[/color]

                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



                Comment

                • Rob Windsor [MVP]

                  #9
                  Re: Sample Code - C# or VB?

                  I'm curious, why are VB's days numbered?

                  Rob


                  "WJ" <JWebb@Msn2.Com > wrote in message
                  news:OlDloRF6DH A.1672@TK2MSFTN GP12.phx.gbl...[color=blue]
                  > "Chad Z. Hower aka Kudzu"[color=green]
                  > > VB developers seem to be ok reading C# code[/color]
                  >
                  > They better learn fast now. VB days are numbered...
                  >[color=green]
                  > > and since these are demos they will remain rather
                  > > simple.
                  > >[/color]
                  >
                  > 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
                  >
                  >
                  >[/color]


                  Comment

                  • WJ

                    #10
                    Re: Sample Code - C# or VB?


                    "Rob Windsor [MVP]" <rwindsor@NO.MO RE.SPAM.bigfoot .com> wrote in message
                    news:%23FN0oJH6 DHA.1592@TK2MSF TNGP10.phx.gbl. ..[color=blue]
                    > I'm curious, why are VB's days numbered?
                    >[/color]

                    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


                    Comment

                    • Rob Windsor [MVP]

                      #11
                      Re: Sample Code - C# or VB?

                      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" <JWebb@Msn2.Com > wrote in message
                      news:OMf3GyH6DH A.2496@TK2MSFTN GP09.phx.gbl...[color=blue]
                      >
                      > "Rob Windsor [MVP]" <rwindsor@NO.MO RE.SPAM.bigfoot .com> wrote in message
                      > news:%23FN0oJH6 DHA.1592@TK2MSF TNGP10.phx.gbl. ..[color=green]
                      > > I'm curious, why are VB's days numbered?
                      > >[/color]
                      >
                      > 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[/color]
                      on[color=blue]
                      > 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
                      >
                      >[/color]


                      Comment

                      • Daniel O'Connell [C# MVP]

                        #12
                        Re: Sample Code - C# or VB?


                        "WJ" <JWebb@Msn2.Com > wrote in message
                        news:OMf3GyH6DH A.2496@TK2MSFTN GP09.phx.gbl...[color=blue]
                        >
                        > "Rob Windsor [MVP]" <rwindsor@NO.MO RE.SPAM.bigfoot .com> wrote in message
                        > news:%23FN0oJH6 DHA.1592@TK2MSF TNGP10.phx.gbl. ..[color=green]
                        > > I'm curious, why are VB's days numbered?
                        > >[/color]
                        >
                        > 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[/color]
                        on[color=blue]
                        > 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...
                        >[/color]
                        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).[color=blue]
                        > John W
                        >
                        >[/color]


                        Comment

                        • Chad Z. Hower aka Kudzu

                          #13
                          Re: Sample Code - C# or VB?

                          "WJ" <JWebb@Msn2.Com > wrote in news:OlDloRF6DH A.1672@TK2MSFTN GP12.phx.gbl:[color=blue][color=green]
                          >> VB developers seem to be ok reading C# code[/color]
                          >
                          > They better learn fast now. VB days are numbered...[/color]

                          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/
                          "Programmin g is an art form that fights back"


                          ELKNews - Get your free copy at http://www.atozedsoftware.com

                          Comment

                          • Chad Z. Hower aka Kudzu

                            #14
                            Re: Sample Code - C# or VB?

                            "WJ" <JWebb@Msn2.Com > wrote in news:OMf3GyH6DH A.2496@TK2MSFTN GP09.phx.gbl:[color=blue]
                            > 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.[/color]

                            Not a representative sample world wide. Many companies want VB because there
                            are so many VB developers and they are cheaper.
                            [color=blue]
                            > 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[/color]

                            Not only C#, but Delphi.net too.



                            --
                            Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
                            "Programmin g is an art form that fights back"


                            ELKNews - Get your free copy at http://www.atozedsoftware.com

                            Comment

                            • Chad Z. Hower aka Kudzu

                              #15
                              Re: Sample Code - C# or VB?

                              "WJ" <JWebb@Msn2.Com > wrote in news:OMf3GyH6DH A.2496@TK2MSFTN GP09.phx.gbl:[color=blue]
                              > 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[/color]

                              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/
                              "Programmin g is an art form that fights back"


                              ELKNews - Get your free copy at http://www.atozedsoftware.com

                              Comment

                              Working...