[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Svn book and sample Perl code style

From: Jostein Chr. Andersen <jostein_at_josander.net>
Date: 2003-12-02 19:43:48 CET

On Tuesday 02 December 2003 18.11, Blair Zajac wrote:

> I don't recall any discussion and policy on the coding style that
> should appear in the book for non-C languages. I've been using the
> Subversion coding style for all the Perl code that I check into the
> svn tree, hence using that for the book. Should we use the default
> code style for Perl instead?

As mentioned a cople of times here: There's no such thing as default code
style for Perl. In fact, the Perl slogan is "It's more than one way to
do it!"

It's many C developers here, so I recommend that a GNU/C stylish as in
packages/win32-innosetup/tools/*.pl. That way, many peope will
understand the code and even be able to fix stuff inside it.

If a Perl program are longer than 20 lines, then everything should be in
sub routines (no sequenctial program flow),

The most cryptic Perl short cuts should be avoided. Even a Perl
programmer will have problems to understand the code if he's away from
perl more two months.

Jostein

-- 
http://www.josander.net/kontakt/ ||
http://www.josander.net/en/contact/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Dec 2 19:46:32 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.