Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!pt.cs.cmu.edu!o.gp.cs.cmu.edu!andrew.cmu.edu!ea08+ From: ea08+@andrew.cmu.edu (Eric A. Anderson) Newsgroups: comp.lang.c Subject: Re: Coding Standards. Message-ID: Date: 8 Dec 90 21:40:44 GMT References: <2055.27469abd@iccgcc.decnet.ab.com> <1990Nov21.182209.23578@clear.com> <2753F21B.2F6@tct.uucp>, <1990Nov30.180913.20890@clear.com> Organization: Carnegie Mellon, Pittsburgh, PA Lines: 19 In-Reply-To: <1990Nov30.180913.20890@clear.com> >From: rmartin@clear.com (Bob Martin) >The alternative of not demanding the comments on closing braces >exposes you to the danger of a function that has grown to span >(god forbid) multiple pages and has no comments telling you where >the braces line up. This is why you can run programs like gnu-emacs which will auto format your code for you, and tell you if things don't match up. But I happen to be of the theory that a function should never be longer than a screen, there is seldom any point, and breaking it up allows some amount of reusability. -Eric ********************************************************* "My life is full of additional complications spinning around until it makes my head snap off." -Unc. Known. "You are very smart, now shut up." -In "The Princess Bride" *********************************************************