home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / software / 5065 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.software-eng
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!nastar!phardie
  3. From: phardie@nastar.uucp (Pete Hardie)
  4. Subject: Re: C code Layout
  5. Message-ID: <1992Dec18.155057.11748@nastar.uucp>
  6. Organization: Digital Transmission Systems, Duluth, GA.
  7. References: <1992Dec14.074411@eklektix.com> <1992Dec15.153859.29057@nastar.uucp> <454@casemo.UUCP>
  8. Date: Fri, 18 Dec 1992 15:50:57 GMT
  9. Lines: 23
  10.  
  11. In article <454@casemo.UUCP> keating@casemo.UUCP (John Keating ) writes:
  12. >I prefer the following:
  13. >        if (condition)
  14. >          {
  15. >            statement ;
  16. >            ...
  17. >          }
  18.  
  19. I find it distracting, the two levels of indentation.  Also, it means you
  20. need to have a very small tab, or use spaces, which seems too typing-intensive
  21. for my taste.
  22.  
  23. One thing I have toyed with is using indent and/or cb in combo with SCCS/RCS
  24. to store the source in an unindented format, and let each developer specify
  25. in a file the preferred format s/he would like to see the code in, and have
  26. the check-out process format code for them, and the check-in process remove
  27. all formatting.
  28.  
  29. -- 
  30. Pete Hardie:  phardie@nastar  (voice) (404) 497-0101
  31. Digital Transmission Systems, Inc., Duluth GA
  32. Member, DTS Dart Team           |  cat * | egrep -v "signature virus|infection" 
  33. Position:  Goalie               |
  34.