Kernighan and Plauger’s The Elements of Programming Style was an important and rightly influential book.  But sometimes I feel its concise rules were taken as a cookbook approach to good style instead of the succinct expression of a philosophy they were meant to be.  If the book claims that variable names should be chosen meaningfully, doesn’t it then follow that variables whose names are small essays on their use are even better?  Isn’t MaximumValueUntilOverflow a better name than maxval I don’t think so.

Continue




Author:
admin
Time:
Friday, June 6th, 2008 at 5:50 am
Category:
C
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation:

Leave a Reply