Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Coding superstitions

by Parham (Friar)
on Jan 13, 2002 at 04:52 UTC ( #138364=note: print w/replies, xml ) Need Help??


in reply to Coding superstitions

i do this out of habit, and i have no idea why:
if ($value == 1) { #do something } #my end braces always go on new lines
i can't help it, i just HAVE to have my }'s on new lines, whereas my {'s can be incorperated into other lines.

Replies are listed 'Best First'.
Re: Re: Coding superstitions
by George_Sherston (Vicar) on Jan 13, 2002 at 05:00 UTC
    Yes, I've a feeling the Bogey Man wd get me if I ever did something as heinous as:
    if (Condition()) { Do_This(); Do_That(); } else {Do_The_Other()}


    George Sherston

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://138364]
help
Chatterbox?
marioroy Updated Re^3: RFC: Compiling Gtk+ stack on windows with strawberry perl. Also tested Gtk2 installation on Strawberry Perl v5.22.3.1. Installing Tk and Tk::Zinc works fine on Perl v5.22.3.1.
[marioroy]: Hi karlgoethebier. Folks can comment feasibly if asking the review via a meditation (imho).
[marioroy]: karlgoethebier Ah, am not sure if tiny meditation or a cool use. ;-)

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2017-09-24 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (273 votes). Check out past polls.

    Notices?