P is for Practical | |
PerlMonks |
Re: Conditional style (if, &&) queryby dragonchild (Archbishop) |
on Oct 17, 2001 at 02:47 UTC ( [id://119278]=note: print w/replies, xml ) | Need Help?? |
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*) ------ Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
In Section
Seekers of Perl Wisdom
|
|