Coding Style Issues

When you write code, you have two audiences: the compiler and other programmers. The compiler doesn't care at all about your coding style. As far as it's concerned, white space is meaningless. Your peers, however, will curse your soul if you make your code unreadable. Write every line as if someone else will maintain it. When you return to it a few months later, you'll be very glad you did.

If you are working as a team, create a document which details your style decisions; this helps reinforce the fact that, while the decisions may be arbitrary, they are worth following.

© 1998 by Wrox Press. All rights reserved.