Beaulieu on Periods
Lee Beaulieu sent me the
following remarks (probably before seeing my own discussion of
periods):
In your discussion on commas I would add the same point for using
periods. They should only be used when and where necessary. I also
always put it on a line all by its lonesome. My reasons are:
-
Reduces the change of introducing a bug because of adding, copying
or moving code.
-
Introduces white space in the code that increases readability.
-
Easier to see.
I came up with this convention years ago after researching types and
causes of bug introduction to code. While some programmers hate this
convention you will find that the number of bugs in your code will
decrease.
One's tastes in these matters are not always rational. To me, putting a
period on a line by itself feels about as natural as wearing shoes in
the shower. Chacun a son gout.
Cobol Home
Cobol Style Forum