Defining Programming Standards   
for Professional Programmers 
  

         

Home

Contents

1: Standards

2: Psychological Factors

3: General Principles

4: Commenting

5: Naming

6: Code Layout

7: File Layout

8: Language Usage

9: Data Usage

10: Programming Usage

11: Implementing Standards

A: Example Standard

B: References

C: Glossary

Syque

About

Share this page:

Google
C Style
syque.com
Web

 

 

Books and
more at:

USA:

In association with amazon.com

UK:

In Association with Amazon.co.uk

Canada:

In Association with amazon.ca

 

 

CHAPTER 1 : Standards

PART 1 : BASICS

CHAPTER 1 : Standards

1.1 Standards
1.2 Guidelines
1.3 What are standards for?
1.4 What are coding standards for?
1.5 Who are coding standards for?
1.6 Coding standards vs. programming standards
1.7 Using this book

1.8 Summary

<-- Prev page | Next page -->

 

1.7 Using this book

This book does not tell you precisely what is good style and what is not good style. If only it was that easy! Some style points are clearly good or bad, but others are judgement calls, where there are reasonable arguments for two or more alternatives and no clear winner. It would be foolish to pretend that there is only 'one way' to write good code. In these cases the book offers the known arguments for and against, and leaves you to choose. Thus, it is quite reasonable to specify a standard to do things 'your way', just as long as this will not cause problems to other readers.

If you really cannot choose, or just want a set of standards off the shelf, then Appendix B offers a completely biassed set.

The actual need for coding standards and guidelines will vary with each situation. In a large programming team, where the staff turnover is high and the final product is critical and complex, and will require significant maintenance, then detailed standards will probably be needed. Conversely, in a simple small project, with stable staffing, then a few general guidelines are will probably suffice (although large and complex systems often grow from small and simple programs).

If you are using this book to help define a set of coding standards within an organization, then take a diversion now to chapter 11, which offers suggestions on how this task may be performed successfully.

 

<-- Prev page | Next page -->

 

 

  © Syque 1995-2010

Massive Content -- Maximum Speed