in reply to Coding superstitions

Superstitions? Hmm. After two books, countless lines of code, and training several hundred people I couldn't think of anything I did out of a fear of the supernatural. After reading the examples given, I gave it a bit more thought and came up with a few specific to Perl programming. (I have all kinds of OTHER superstitions with programming in general...) Distinguishing these from style is a bit tough. If I cross the line, excuse me. These are what I do, YMMV.

Now I break any/all of these when I'm trying to make a point, compress code that's just a side-show, obfuscate, etc..

Update: typo repaired, few late additions

Replies are listed 'Best First'.
Re: Re: Coding superstitions
by Juerd (Abbot) on Jan 08, 2002 at 14:12 UTC
    Things to the right of => I leave unquoted.
    I don't get it... Doesn't => force what's _left_ of it to be interpreted as a string?

    2;0 juerd@ouranos:~$ perl -e'undef christmas' Segmentation fault 2;139 juerd@ouranos:~$