Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft launches new open source codeplex foundation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01424841
Message ID:
01426910
Vues:
55
>>>That's a hoot. In 20 years of programming, during which time I have followed up behind a number of programmers, I've never found myself - not even once - worrying about the case of variable names. This issue is so low on the priority list as to be nonexistent. The problems are usually things like a lack of understanding about data normalization, SQL, granularity, boolean logic, and on and on. Once I followed up behind someone that had written what was far and away the worst program I've ever seen. He smashed every rule in the book. It was astounding how bad it was. Not only bad, but there was some really weird "techniques" (if you could call them that) that he used. If you could invert that - make it a great programming example instead of a horrible one - but leave in case inconsistency in his variables, etc. then I wouldn't have a care in the world. I wouldn't criticize it even one billionth of a percent. Could someone make it painful. SuRE tHEY couLD If ThEy WANted To BUt YOU Won'T FinD thAT. It's mainly minor discrepencies.
>>>
>>>Another example: Case-sensitivity in Linux. They brought it over from the programming environment, mistakenly thinking what a great thing it is. You know what they have to do in order to get regular people using Linux. They have to remove it so that when you search for a file name, you don't have to have the case exactly right. Imagine some CEO or CIO looking for the some document related to the big presentation and he/she can't find it because when he typed it into the search field, he didn't use the same case. Do you think Linux would ever get into or stay in that corporation after that? No, he'd never let it in or toss it out and he'd find (or would like to find) the programmers that made that idiotic decision and rip their heads off and defecate down their necks. So the smarter programmers remove that issue from their search tools. And that is probably the best reason not to have it. If it's a problem that needs to be worked around, it's better to fix the root cause than treat the symptoms. Case-sensitivity should have never been invited to the party.
>>
>>Personally I *much* prefer case sensitive languages. One neat feature in VS2010 which couldn't exist if C# wasn't case sensitive is the QuickFind for types which relies on camel casing. Searching for, for example, "MC" will bring up all types such as
>>MyCustomProperty, MyCustomClass, MyCustomMethod etc....
>
>This implies that you are letting case render meaning, which I would consider a very bad technique. Perhaps that's not what you meant, however.

MS guidelines for .NET recommend Pascal casing for Class, Method, Property,Interface and Event names and NameSpaces.
Why would you consider it a bad technique?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform