Great Circle Associates Majordomo-Workers
(November 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Coding style
From: Arnaud Taddei <Arnaud . Taddei @ cern . ch>
Date: Tue, 26 Nov 1996 17:36:24 +0100 (MET)
To: Dave Wolfe <david_wolfe @ risc . sps . mot . com>
Cc: majordomo-workers @ GreatCircle . COM, Brent @ GreatCircle . COM, tibbs @ hpc . uh . edu, brozen @ webdreams . com, cwilson @ neu . sgi . com, Lionel Cons <cons @ mail . cern . ch>
In-reply-to: <199611261500.JAA19903@miaow.risc.sps.mot.com>


If you are interested about coding style, you may have a look at:

	http://wwwcn.cern.ch/dci/perl/pod/perlstyle.html

and other pointers under:

	http://wwwcn.cern.ch/dci/perl/welcome.html

my $0.01

On Tue, 26 Nov 1996, Dave Wolfe wrote:

> [ Brent Chapman writes: ]
> > 
> > In all seriousness, though, there is a code maintenance principle
> > that, when working on existing programs, you code in the style they
> > were written in, even if that's not precisely your own style.
> 
> In general, I concur with Brent on the principle of using the context
> style, and do try to adhere to it when I can, but I also believe this
> holds true for using the context language, and that principle overrides
> the context style principle. For example, if previous authors appear
> to be trying to write in C using Perl, I feel I'm more than justified
> in using Perl constructs rather than rigidly adhering to C constructs
> expressed in Perl. For that reason I will usually write:
> 
>     print qq(File is "$burfl"\n)    unless defined $foo;
> 
> instead of:
> 
>     if (!defined($foo)) {
> 	print("File is \"$burfl\"\n");
>     }
> 
> (or any whitespaced variants.)
> 
> -- 
>  Dave Wolfe
> 

------------------------------------------------------------
Arnaud Taddei	          tel : +41 22 767 9349 
CN Division 513 1-019	  fax : +41 22 767 7155
CERN			  mail: Arnaud.Taddei@cern.ch
CH-1211 Geneve 23	  URL:  http://wwwcn.cern.ch/~taddei
------------------------------------------------------------



References:
Indexed By Date Previous: approved command
From: "James B. Byrne" <byrnejb@harte-lyne.ca>
Next: Re: Majordomo v1.94: problem with shlock.pl
From: Chan Wilson <cwilson@slurp.neu.sgi.com>
Indexed By Thread Previous: Re: Coding style
From: Dave Wolfe <dwolfe@risc.sps.mot.com>
Next: Over 1000 installations of 1.94 so far
From: Brent Chapman <Brent@GreatCircle.COM>

Google
 
Search Internet Search www.greatcircle.com