![]() |
|
XP is just a number | |
PerlMonks |
Re: Writing code that looks niceby sblanton (Sexton) |
on Apr 12, 2010 at 14:48 UTC ( #834290=note: print w/replies, xml ) | Need Help?? |
My style preferences are for natural language - I'll lean toward whatever sounds like English. "Print if -d"/"Print, if the directory exists" is a pretty simple English sentence.
Others I know prefer a more mathematical approach, such as I would classify the latter. In order to save time, and with little fear of others having trouble reading my code in my current environment, I may choose a syntax based on the fewest # of characters that do not give me pause. There are a lot of considerations that can go into style decsions...not all may be obvious.
In Section
Seekers of Perl Wisdom
|
|