Case sensitivity

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bigbob

    #1

    Case sensitivity

    Okay, back in the day, when dinosaurs and TTYs ruled the world, it made
    sense to be as concise as possible. Fast forward to the 21st century, and we
    get a brand new language with case sensitive variables. Hey, you can have x
    and X refer to different things. Isn't that wonderful! Right... What kind of
    a moron wants to remember x versus X? The VB tribe usually types variable
    names in all lower case so that the IDE will convert them. If it doesn't,
    you made a typo. That's a useful feature. Why doesn't C# have an environment
    option to disable case sensitivity? Be honest now, what purpose does it
    serve?


  • Jasper Kent

    #2
    Re: Case sensitivity

    Same reason we have QWERTY keyboards and irregular verbs. It is because it
    was.

    "bigbob" <big@bob.com> wrote in message
    news:eeNgU%23lc DHA.1532@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Okay, back in the day, when dinosaurs and TTYs ruled the world, it made
    > sense to be as concise as possible. Fast forward to the 21st century, and[/color]
    we[color=blue]
    > get a brand new language with case sensitive variables. Hey, you can have[/color]
    x[color=blue]
    > and X refer to different things. Isn't that wonderful! Right... What kind[/color]
    of[color=blue]
    > a moron wants to remember x versus X? The VB tribe usually types variable
    > names in all lower case so that the IDE will convert them. If it doesn't,
    > you made a typo. That's a useful feature. Why doesn't C# have an[/color]
    environment[color=blue]
    > option to disable case sensitivity? Be honest now, what purpose does it
    > serve?
    >
    >[/color]


    Comment

    • Daniel O'Connell

      #3
      Re: Case sensitivity


      "Jasper Kent" <jasper_kent@ho tmail.com> wrote in message
      news:%23f8PBEmc DHA.4020@tk2msf tngp13.phx.gbl. ..[color=blue]
      > Same reason we have QWERTY keyboards and irregular verbs. It is because it
      > was.
      >[/color]
      Damn, this debate has gone on over and over again, and this is the first
      response I've seen that didn't pitch in any religious fervor, lol.
      I like it.
      Hopefully no pundits from either side will turn this into a messy argument
      either, -_-.[color=blue]
      > "bigbob" <big@bob.com> wrote in message
      > news:eeNgU%23lc DHA.1532@TK2MSF TNGP10.phx.gbl. ..[color=green]
      > > Okay, back in the day, when dinosaurs and TTYs ruled the world, it made
      > > sense to be as concise as possible. Fast forward to the 21st century,[/color][/color]
      and[color=blue]
      > we[color=green]
      > > get a brand new language with case sensitive variables. Hey, you can[/color][/color]
      have[color=blue]
      > x[color=green]
      > > and X refer to different things. Isn't that wonderful! Right... What[/color][/color]
      kind[color=blue]
      > of[color=green]
      > > a moron wants to remember x versus X? The VB tribe usually types[/color][/color]
      variable[color=blue][color=green]
      > > names in all lower case so that the IDE will convert them. If it[/color][/color]
      doesn't,[color=blue][color=green]
      > > you made a typo. That's a useful feature. Why doesn't C# have an[/color]
      > environment[color=green]
      > > option to disable case sensitivity? Be honest now, what purpose does it
      > > serve?
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Mickey Williams

        #4
        Re: Case sensitivity

        "bigbob" <big@bob.com> wrote in message
        news:eeNgU%23lc DHA.1532@TK2MSF TNGP10.phx.gbl. ..
        [color=blue]
        > Be honest now, what purpose does it serve?[/color]

        1) Historical reasons. Languages in the C family are case-sensitive. VB
        isn't, Eiffel isn't. C, C++, Java, and C# are. If you claim a language is
        similar to C++ and Java, lexical conventions should probably be similar.

        2) Entertainment value. This thread will generate a great deal of hot air,
        and several people will probably make complete asses of themselves.

        --
        Mickey Williams
        Author, "Microsoft Visual C# .NET Core Reference", MS Press



        Comment

        • William Ryan

          #5
          Re: Case sensitivity

          What is a TTY? It sounds cool.

          I posted a question about this and Eric Gunnerson from MS sent me this link.
          My only gripe with case sensitivity is with Reserved words which I goof up a
          lot b/c I code in C# and VB.NET every day.





          "Jasper Kent" <jasper_kent@ho tmail.com> wrote in message
          news:#f8PBEmcDH A.4020@tk2msftn gp13.phx.gbl...[color=blue]
          > Same reason we have QWERTY keyboards and irregular verbs. It is because it
          > was.
          >
          > "bigbob" <big@bob.com> wrote in message
          > news:eeNgU%23lc DHA.1532@TK2MSF TNGP10.phx.gbl. ..[color=green]
          > > Okay, back in the day, when dinosaurs and TTYs ruled the world, it made
          > > sense to be as concise as possible. Fast forward to the 21st century,[/color][/color]
          and[color=blue]
          > we[color=green]
          > > get a brand new language with case sensitive variables. Hey, you can[/color][/color]
          have[color=blue]
          > x[color=green]
          > > and X refer to different things. Isn't that wonderful! Right... What[/color][/color]
          kind[color=blue]
          > of[color=green]
          > > a moron wants to remember x versus X? The VB tribe usually types[/color][/color]
          variable[color=blue][color=green]
          > > names in all lower case so that the IDE will convert them. If it[/color][/color]
          doesn't,[color=blue][color=green]
          > > you made a typo. That's a useful feature. Why doesn't C# have an[/color]
          > environment[color=green]
          > > option to disable case sensitivity? Be honest now, what purpose does it
          > > serve?
          > >
          > >[/color]
          >
          >[/color]


          Comment

          • William Ryan

            #6
            Re: Case sensitivity

            I had a co-worker that was a total MS Basher and always ran his mouth about
            Perl, Linux and Java. Problem was, he couldn't get anything done in any of
            them. So he informed us that when MS created C#, they assumed that the
            average C# user was more sophisticated then 'lame' VB and VB.NET
            programmers. He said that 'real programmers' <which is usually a phrase you
            hear right before someone makes a complete j4ck4ss out of themselves> want
            that level of case sensitivity.

            It was one of the more ridiculous things I've heard, but typical of the
            'which is better' arguments you see around these issues.

            Cheers,

            Bill
            "Mickey Williams" <my first name at servergeek.com> wrote in message
            news:uzS3ZFmcDH A.2112@TK2MSFTN GP10.phx.gbl...[color=blue]
            > "bigbob" <big@bob.com> wrote in message
            > news:eeNgU%23lc DHA.1532@TK2MSF TNGP10.phx.gbl. ..
            >[color=green]
            > > Be honest now, what purpose does it serve?[/color]
            >
            > 1) Historical reasons. Languages in the C family are case-sensitive. VB
            > isn't, Eiffel isn't. C, C++, Java, and C# are. If you claim a language is
            > similar to C++ and Java, lexical conventions should probably be similar.
            >
            > 2) Entertainment value. This thread will generate a great deal of hot air,
            > and several people will probably make complete asses of themselves.
            >
            > --
            > Mickey Williams
            > Author, "Microsoft Visual C# .NET Core Reference", MS Press
            > www.servergeek.com
            >
            >[/color]


            Comment

            • Manish Agarwal

              #7
              Re: Case sensitivity

              I think it also help in improving the code readability.
              Let say some developer write a function MyTestFunction( ) now all other
              developers are forced to use it as MyTestFunction( ). No one can use it
              like mytestfunction( ) or MYTESTFUNCTION( ) :-)

              -------------------------
              "Manish Agarwal"- <manishkrishan@ hotmail.com>



              *** Sent via Developersdex http://www.developersdex.com ***
              Don't just participate in USENET...get rewarded for it!

              Comment

              Working...