tag:blogger.com,1999:blog-8479767814192247924.post9181996492790353279..comments2023-12-30T02:08:29.043+11:00Comments on Foundation and Empire: Y us crptc var nm?Graham Dodgehttp://www.blogger.com/profile/06880164350187740304noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8479767814192247924.post-58497033079233768072009-12-09T08:03:08.510+11:002009-12-09T08:03:08.510+11:00#1 reason I used to use short variables: No TypeAh...#1 reason I used to use short variables: No TypeAhead in the designer client < 8.5.1 !Unknownhttps://www.blogger.com/profile/14617762824075874473noreply@blogger.comtag:blogger.com,1999:blog-8479767814192247924.post-8282511730916441022009-12-07T09:29:21.850+11:002009-12-07T09:29:21.850+11:00I agree that cryptic names stink however there is ...I agree that cryptic names stink however there is a point at which long names add noise rather than clarity. Descriptive names with sensible abbreviations are my approach.<br /><br />Chapter 2 of <a href="http://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882" rel="nofollow">Clean Code</a>, "Meaninglful names", is 12 pages of pure gold.Dan Sickleshttps://www.blogger.com/profile/08521707575319366335noreply@blogger.comtag:blogger.com,1999:blog-8479767814192247924.post-38976013305657290792009-12-07T08:56:24.726+11:002009-12-07T08:56:24.726+11:00Two reasons:
1. We "old school" develope...Two reasons:<br />1. We "old school" developers remember a day when each character of a variable name took up a byte. Longer variable names = more bytes of code. When you've only got 16K to work in these things matter...obsolete but old habits die hard.<br /><br />2. Typing <i>Num1</i> takes a lot less time than <i>intNumberIThoughtOfYesterday.</i> If I'm working with a couple hundred variables it does save tons of time to use shorter names and comments. Not saying it's best practice by any stretch but developers are human too (mostly). :)Greg Charlandhttp://www.charlandtech.comnoreply@blogger.com