Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: My coding guidelines

by grantm (Parson)
on Nov 25, 2002 at 22:49 UTC ( [id://215750]=note: print w/replies, xml ) Need Help??


in reply to My coding guidelines

10. Interactive programs MUST print a usage message when called with wrong, incorrect or incomplete options or arguments.

I find the Pod::Usage module to be excellent for this purpose and always combine it with Getopt::Long.

Number 24 seems weird to me also.

Replies are listed 'Best First'.
Re: My coding guidelines
by Abigail-II (Bishop) on Nov 26, 2002 at 10:15 UTC
    I wonder what is so strange about rule 24. The perlstyle manual page says: space around most operators. Which is what rule 24 is saying, but it's listing the exceptions. The reason I put space between ++ and -- and its operands is that those operators are "large" (two characters).

    As for ->, it's a binary operator. I put whitespace around other binary operators, so why not ->? If you don't, you can get long blobs of text, without a resting place for the eyes. Perl should look like English, not German. ;-).

    Abigail

      But English is only my third language - while German is my second! :-) (Well, maybe you'd prefer me to code in Greek. :^) )

      Makeshifts last the longest.

        English isn't my first language either. But it's Larry's first language....

        Abigail

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://215750]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-03-28 14:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found