|
|
| more useful options | |
| PerlMonks |
Re: Best practice or cargo cult?by ikegami (Pope) |
| on Jun 20, 2006 at 15:06 UTC ( #556421=note: print w/ replies, xml ) | Need Help?? |
|
Adhering to a programming style is a form of voluntary cargo cult programming. One adheres to a style to promote readability and maintainability through consistency. The style is not always completely appropriate in all circumstances, but that's a cost the adherant is willing to accept. As long as one knows when it's appropriate to break from the style, it's not cargo cult programming. So the real question is whether the style was created with thought, or whether it was the result of cargo cult programming. In this case, there are merits to always using those switches.
* — I consider having to use \A instead of ^ expensive (in terms of readability), but I already find $ dangerous to use in validation.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||