home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!mksol!mccall
- From: mccall@mksol.dseg.ti.com (fred j mccall 575-3539)
- Subject: Re: Function definition style
- Message-ID: <1992Dec31.140636.24072@mksol.dseg.ti.com>
- Organization: Texas Instruments Inc
- References: <1992Dec31.054359.13226@leland.Stanford.EDU>
- Date: Thu, 31 Dec 1992 14:06:36 GMT
- Lines: 29
-
- In <1992Dec31.054359.13226@leland.Stanford.EDU> dkeisen@leland.Stanford.EDU (Dave Eisen) writes:
-
- >>>I try to use the style in ansi k&r, but I notice that others are using this
- >>>style and I assume they aren't all using pre-ansi compilers.
- >>
- >>IMHO, one should be *very* careful in picking up coding habits from other
- >>programmers. Often a programmer will use a particular feature or style
- >>out of laziness or ignorance of superior alternatives.
-
- >Or for other perfectly valid reasons like portability. There
- >are still a fair number of folks left who use compilers that
- >don't understand prototypes.
-
- >But Dave's point is valid. You shouldn't use a particular style
- >just because other programmers use it --- their needs may be
- >different from yours so they may have chosen their style for
- >reasons that don't apply to you.
-
- Unless, of course, those other programmers are the other people on the
- same project you're working on, in which case a consistent coding
- style is a big win for maintainability of the final product somewhere
- down the road, since the maintainer will only have to get used to ONE
- arbitrary coding style instead of a dozen.
-
- --
- "Insisting on perfect safety is for people who don't have the balls to live
- in the real world." -- Mary Shafer, NASA Ames Dryden
- ------------------------------------------------------------------------------
- Fred.McCall@dseg.ti.com - I don't speak for others and they don't speak for me.
-