---------------------------------------- > Date: Sun, 16 Mar 2008 22:35:48 -0700 > From: [EMAIL PROTECTED] > > Most of the C code I've dealt with - and a lot of Open Source code - has > been full of bad variable names. I guess this is a case of YMMV, but > I've known a lot of experienced engineers and programmers that have > found the same thing - code that is not self documenting and variables > names that are just crap. > The code I've had the worst trouble with variable names with hasn't been C, it's been perl. I had a project at Amazon that really should have been posted to www.thedailywtf.com. It tends to depend on the programmer. However since a lot more code is written in C, especially open source code, it tends to stick out.
Although I do take issue with the idea of self documenting code. Good variable names and function names are very important, I hate to deal with code without them. But it does not make code "self documenting". Self documenting code is a myth- there is no substitute for good documentation. Gabe _________________________________________________________________ Shed those extra pounds with MSN and The Biggest Loser! http://biggestloser.msn.com/ -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-lpsg
