www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/06/17/20:14:28

Xref: news-dnh.mv.net comp.os.msdos.djgpp:411
Path: news-dnh.mv.net!mv!news.sprintlink.net!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!netline-fddi.jpl.nasa.gov!goonsquad.spies.com!uuwest!alcyone!max
From: max AT alcyone DOT darkside DOT com (Erik Max Francis)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CODING STANDARDS: A GUIDE
Date: Fri, 16 Jun 95 06:22:13 PDT
References: <DA8r5w DOT EHv AT jade DOT mv DOT net>
Organization: &tSftDotIotE
Lines: 22
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

dj AT delorie DOT com (DJ Delorie) writes:

> The rule being that matching braces are always in the same column, and
> nothing else is ever on the line with them.  This makes it easier to
> find matching braces visually and adds whitespace that makes the code
> easier to deal with.

I absolutely agree.

> Note that I prefer two-space indents rather than tabs, as code tends
> to wander off the right side of the screen too fast with tabs.

I use tabs, because I deal with a variety of editors on several 
platforms.  Since you can get editors whose tab stops are 
adjustable, if you use tabs, everybody wins; they get to choose their 
own tab width.


Erik Max Francis, &tSftDotIotE ...!uuwest!alcyone!max max AT alcyone DOT darkside DOT com
San Jose, CA  ...  GIGO, Psi, Universe  ...  ICBM: 37 20 07 N  121 53 38 W  _
H.3`S,3,P,3$S,#$Q,C`Q,3,P,3$S,#$Q,3`Q,3,P,C$Q,#(Q.#`-"C`- ftmfbs kmmfa mc2 / \
Omnia quia sunt, lumina sunt.  ("All things that are, are lights.")   -><- \_/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019