Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^3: Two simple code style advice questions (short)

by tye (Cardinal)
on Jan 18, 2013 at 17:44 UTC ( #1014097=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Two simple code style advice questions (tye)
in thread Two simple code style advice questions

You also doing java?

Nope. I started trying out "42 == n" in C a long time ago to avoid accidentally writing "if( n = 42 )".

In this case, I wrote "42 == $n" as I find "42" to be the much more interesting part of the expression. I prefer to put shorter things and more interesting things first to speed parsing.

- tye        


Comment on Re^3: Two simple code style advice questions (short)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2014-11-28 22:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls