Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Conditional style (if, &&) query

by dragonchild (Archbishop)
on Oct 17, 2001 at 02:47 UTC ( [id://119278]=note: print w/replies, xml ) Need Help??


in reply to Conditional style (if, &&) query

Unless you're really being charged for whitespace, don't use choice A. Of course, if you're doing a whole bunch of these and they're in a regular pattern within a while, for example, try it out and see.

I personally use B, simply because it's succinct and easy to read, but doesn't bring in lesser-known quantities of the application.

If you're going to be working with less-skilled people, use C every time. The idea is to work with them, not show them how much you know (though demonstrating nicely new techniques is always reccomended ... especially for those times when you end up being charged for whitespace. *grins*)

------
We are the carpenters and bricklayers of the Information Age.

Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 05:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found