Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pdcawley (485)

  (email not shown publicly)
AOL IM: pdcawley (Add Buddy, Send Message)

Journal of pdcawley (485)

Monday June 11, 2001
09:44 AM

More Proverbs

[ #274 ]
I got some mail from Mark Fowler about the last journal entry. He's not keen on the "Use 'foreach', not 'grep'" proverb, and I kind of see his point as it cuts slightly against the "Optimize for readability" proverb.

But proverbs are allowed to be contradictory. The point of the 'foreach not grep' proverb is that you should use try and use the most appropriate of the ways to do a thing. And Mark further points out that List::Util (there would be a link here, but some bugger just hacked the site) has some neat, clear, tools for 'hiding' the foreach behind a clearer abstraction. Which is nice.

He also suggests another proverb for the list.

Good is good, but done is better

Which is another way of saying 'The Best is the enemy of the good', or 'Worse is better', or... But it's a good new way of saying it.