Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errrhhh ..... CSharp or VB
Message
From
26/09/2011 09:01:43
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01524423
Message ID:
01524718
Views:
84
>>>>>If that's an issue, your development problems are bigger than that.
>>>>>
>>>>>
>>>>>>Why do you like case sensitivity? That's not a leading question, nor is it a big issue to me. It just seems like asking for trouble if two variables differ only by case.
>>>>
>>>>LOL.. I was gonna say something along those lines, but you beat me to it...
>>>
>>>Seems like a reasonable comment to me by Mike. So why do you think that ?
>>
>>Because c# forces you into not be a sloppy coder. I programmed in fox for 15 years and it amazed me to see the sloppy code that no typing allowed you to produce. If you're worried about case-insesitive then you need to re-examine your coding techniques. Its never been a problem to me with c# because of the strong typing...
>
>I fully agree that FoxPro allows sloppy coding. What no one has explained to me yet is why allowing variables to differ only by case is a good thing. Again, I bet there's a good reason. I would just like to understand it.

Well, these are not the same thing anywhere if you get right down to it.
myValue
MYVALUE
myvalue
And most VFP developers would not do this:
Do Case
   Case myValue = 1
      * Process something ...
   Case myvalue = 2
      * Process something ...
   Case MYVALUE = 3
      * Process something ...
   OtherWise
      * Process something ...
EndCase
I am not sure why this is a discussion, Foxpro ignored case sensitivity as do some other compilers. Many, maybe most do not. It shouldn't change how you craft your code. Think of it as a built in rule to prevent you from doing sloppy work.
Timothy Bryan
Previous
Reply
Map
View

Click here to load this message in the networking platform