Michael Jones (mtj++at++isdn-celeste.corp.sgi.com)
Sun, 28 Apr 1996 08:16:51 -0700
Not your favorite indent, bracket, comment, etc style? Well, as you
know there's no pleasing everybody with a coding style. What we did
early on was to agree on a style that has nothing that any Performer
development team member hated and which seemed generally OK to us.
We used the Allman style of brace structuring, which was the not quite
universal vote. The formatting is not automatic. Low-tech as it may
seem to you, we formatted most of the 585,841 lines (in 1274 files) of
IRIS Performer source code by hand. (These stats are by way of find,
xargs, and wc, and were computed just now).
Back at the time we were discussing the formatting, I bought and read a
book that I find to be really great on this subject. It is "C Style:
Standards and Guidelines" by David Straker (of Hewlett-Packard, the
laser printer company) and is an excellent exposition of popular
alternatives and the rationale for and against each. If this topic
interests you, I highly recommend it. There's really little in the book
about C itself, so it's equally well a C++ style discussion too.
Michael
Be seeing you, Phone:415.390.1455 Fax:415.965.2658 M/S:8U-590
Michael T. Jones Silicon Graphics, Advanced Graphics Division
mtj++at++sgi.com 2011 N. Shoreline Blvd., Mtn. View, CA 94039-7311
"Competition is a by-product of productive work, not its goal. A
creative man is motivated by the desire to achieve, not by the desire
to beat others." -Ayn Rand
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:48 PDT