Coding Standards. was: a style question
Bob Martin
rmartin at clear.com
Sun Nov 11 06:18:40 AEST 1990
In article <14369 at smoke.brl.mil> gwyn at smoke.brl.mil (Doug Gwyn) writes:
>
>Often, because it was written by amateurs, or at any rate hackers who
>have not learned the magnitude of the maintenance problem for
>production software.
The lack of standard coding practice IS a big problem for software
maintenance. At Clear we have instituded a style standard which
all our engineers follow. This standard specifies how indenting
should be done, how variables, functions and types should be named.
I specifies that functions should have single entrance and single
exit points, and that functions should not be much longer then
one page. It specifies a documentation style and demands that
comments always be placed on closing braces. etc. etc.
One might think that engineers would resist this kind of "infringement
on their creativity" But in fact we have found that most engineers
want to have standards like this since they can then read each others
code easily and channel their creativity towards the problem instead
of towards the style.
--
+-Robert C. Martin-----+---------------------------------------------+
| rmartin at clear.com | My opinions are mine. They aren't anybody |
| uunet!clrcom!rmartin | elses. And thats the way I want to keep it.|
+----------------------+---------------------------------------------+
More information about the Comp.lang.c
mailing list