tag:blogger.com,1999:blog-12546956.post7394450666018979041..comments2024-03-09T20:43:59.063-05:00Comments on The Language Lover's Blog: Misspelled variable namesLanguage Loverhttp://www.blogger.com/profile/17095286029520305813noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-12546956.post-21299317127551691322010-02-16T11:57:18.529-05:002010-02-16T11:57:18.529-05:00Case sensitivity means that totalDifferenceofAmoun...Case sensitivity means that totalDifferenceofAmounts is not the same as totalDifferencesOfAmounts, and (unfortunately) it is not unknown to dynamically create a property with meaning to in today's squishy (loosely-typed) languages.<br /><br />Pascal tends to use CorrectCase (rather than camelCase) instead of underscores.<br /><br />Misspelling a name, especially in abbreviation, can actually create a different meaning: totRpt vs. totRqt.<br /><br />Although it might be annoying to see the word DELIMITER spelled out, the cost to the project of one reader misunderstanding a word (or taking a few times extra to understand it) is far greater than your occasional annoyance with the lack of written jargon.<br /><br />CheersRichard C Havenhttps://www.blogger.com/profile/02059190792567198390noreply@blogger.comtag:blogger.com,1999:blog-12546956.post-72392190960501180192010-02-14T17:52:06.756-05:002010-02-14T17:52:06.756-05:00Thank you for your comment, Richard! I like the c...Thank you for your comment, Richard! I like the case sensitivity of C/C++/Java, if only because it allows for easy reading of multi-word variable names without using underscores everywhere. <br /><br />What do you mean by "etymological failures"? I hear what you're saying about IDEs making variable replacement easy (and I would also add that they detect case sensitivity errors quickly ;) ). The cases I'm talking about are not usually ones where the typo prevents understanding of the variable name. I know what my fellow programmer meant by "DELIMETER"; it's just annoying to see.Language Loverhttps://www.blogger.com/profile/03288480400454374958noreply@blogger.comtag:blogger.com,1999:blog-12546956.post-36749763688985574392010-02-09T13:57:42.025-05:002010-02-09T13:57:42.025-05:00Coming from Delphi (Object Pascal), I find case-se...Coming from Delphi (Object Pascal), I find case-sensitivity of the rest of the world's languages annoying: human beings are not very case-sensitive.<br /><br />I find misspellings as deserving of correction as etymological failures. Most IDE's help with refactoring, and a good variable name helps with code's effectiveness and durability.<br /><br />Ideally, a variable should not need a explanatory comment because its name explains its use.<br /><br />CheersRichard C Havenhttps://www.blogger.com/profile/02059190792567198390noreply@blogger.com