[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::languages

Title:Languages
Notice:Speaking In Tongues
Moderator:TLE::TOKLAS::FELDMAN
Created:Sat Jan 25 1986
Last Modified:Thu May 22 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:394
Total number of notes:2683

56.0. "Coding Standards in PASCAL" by IJSAPL::VANDOORN () Fri Feb 08 1985 03:57

Imagine a project where 4 people are working on design,
coding & implementation (using PASCAL).
On coding there are some discussions, about topics like indentation,
name-giving, etc.

nr. 1 says : I prefer coding standard A (my standard)
nr. 2 says : I prefer coding standard B (my standard)
nr. 3 says : I want to be free
nr. 4 says : I prefer A standard and don't bother about which one

A solution for the problem might be to take a DIGITAL standard on
coding PASCAL. Where do I find one? In our department (SWS in the
Netherlands) there is none.

Another solution could be to use your own coding standard, and format
the source in a standard way just before releasing the software to
the project library. Therefore a pretty printer program would be handy.
Anyone who is using one?

Leen.
T.RTitleUserPersonal
Name
DateLines
56.1SAUTER::SAUTERFri Feb 08 1985 18:3532
There is a document called the "VAX-11 Software Engineering Manual" which 
contains chapters on formatting assembly language, BASIC, BLISS, COBOL and 
FORTRAN.  I expect it could be updated to include PASCAL if anybody were 
interested.  To quote from the preface:

"Over the years, much ado has been made about coding standards and 
conventions.  Everyone believed that conventions are good, so long as they 
are not the other guy's conventions!  COmmittees were formed, and reformed, 
and left to die for lack of consensus.  We repeatedly refused to follow 
conventions that we deemed "imperfect" and consequently we followed none at 
all.

"A great deal of this has been foolish nit-picking on the part of our vast 
multitude of entrepreneurs.  The time has come to stop the foolishness and 
to recognize the reasons for which code uniformity is mandated."

..."All that we ask of you is to convince yourself that these conventions 
are no less reasonable than any other set of conventions.  Then, we hope, 
you will be willing to show sufficient professional maturity to adopt and 
follow these conventions."

The copy I have is dated February 19, 1977, and is marked revision 3.  I 
have never heard of a later revision.  On the first inside page it says

			DO NOT DUPLICATE
		For additional copies, contact:
			   Ike Nassi
			  ML 21-4/E20

Ike Nassi left the company some time ago, so I don't know where you can get 
a copy.  The chapters on BASIC, COBOL and FORTRAN are empty.
    John Sauter
56.2SPIDER::KEANETue Feb 12 1985 23:115
I have a draft copy of some pascal coding conventions written
by Dan Carr, who (I think) is in the ASD North group in ZKO.
Try to get him on NACHO::

Brian
56.3TURTLE::GILBERTWed Feb 13 1985 04:3911
I think a good way for a group to handle the problem of coding conventions
is to have an example 'style' program.  If a particular style consideration
isn't exemplified by the style program, it's probably fairly unimportant.

Note that where there is disagreement on 'style', the programs should be
re-written from scratch (rather than simply taking those from some previous
project).  Anybody complaining about style automatically gets the job of
updating the style program.

Also, the style programs provide a convenient example of a short program
in the particular language.
56.4BABEL::PASCALWed Feb 13 1985 22:264
Hopefully the PASCAL templates for the Language Sensitive Editor will
provide a "standard".  (Assuming that you will use the editor).

	-John
56.5KBOV06::BRANDTWed Aug 07 1985 06:513
There are any News concerning any kind of PASCAL Coding 
Standards/Conventions since February ???
- Karl