|
|
| P is for Practical | |
| PerlMonks |
Re^2: Tact and the Monasteryby Aristotle (Chancellor) |
| on Sep 15, 2002 at 07:55 UTC ( #198009=note: print w/ replies, xml ) | Need Help?? |
|
I find your first example unnecessarily noisy, while the second is too golfish. Balance is key. Mine would look like so:
That way I can't make a mistake in the size of the list vs the constant passed to rand. Nor will I have to figure out why I used 64 there if I read the source again in a year. It also lets me use concatenation vs the noisy and distracting join/slice method. $salt on the other hand is superfluous - that value is trivially calculated on the fly. Makeshifts last the longest.
In Section
Meditations
|
|
||||||||||||||||||||