Wednesday, November 11, 2009

3.8 Consistency and Organization




I l@ve RuBoard










3.8 Consistency and Organization



Good style is only one element in creating a high-quality program.
Consistency is also a factor. This book is organized with the table
of contents at the front and the index at the back. Almost every book
printed has a similar organization. This consistency makes it easy to
look up a word in the index or find a chapter title in the table of
contents.



Unfortunately, the programming community has developed a variety of
coding styles. Each has its own advantages and disadvantages. The
trick to efficient programming in a group is to pick one style and
use it consistently. That way you can avoid the problems and
confusion that arise when programs written in different styles are
combined.



Good style is nice, but consistency is better.









    I l@ve RuBoard



    No comments:

    Post a Comment