Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: KISS vs Feature set

by footpad (Abbot)
on Jan 25, 2002 at 21:22 UTC ( [id://141547]=note: print w/replies, xml ) Need Help??


in reply to KISS vs Feature set

A former employer preferred the acronym "LAW" (Least Amount of Work) over "KISS." 1

On its face, it seems like pure semantics. However, there is something to the mental shift. First, few people enjoy being called stupid. Second, if you reduce the amount of work needed to create, maintain, or use something, then you've done a good job. This is the heart of Laziness as a Perl virtue. You don't take shortcuts in your work, you work to provide shortcuts. After all, if software doesn't make something easier, cheaper, or better, then why are we writing it?

Personally, I'd go with keeping the fgrep/fmap/fdo functions and providing an example for your "fgrep_flat" function in your Usage/Examples POD.

--f

1 - He also preferred to say "Well, if I win the lottery..." instead of "Well, if I get hit by a bus..." He had this thing for putting things positively. At the time, I tended to get annoyed at what I called "optimistic sugar-coating;" however, I've since begun to realize that while it's good to plan for the worst, you don't necessarily have to be a sourpuss about it. YMMV.

Replies are listed 'Best First'.
Re: Re: KISS vs Feature set
by Masem (Monsignor) on Jan 25, 2002 at 22:02 UTC
    Just to clarify this, I would combine KISS and LAW, such that fgrep would simply return a flat array in wantarray mode. Hardly any work on my part and it's very simple to remember. And then I'd include the example of building up a hash using fdo, if so desired.

    (Gah, KISS and LAW, what is this, the Ally McBeal School of Programming?? ;-)

    -----------------------------------------------------
    Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
    "I can see my house from here!"
    It's not what you know, but knowing how to find it if you don't know that's important

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://141547]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-03-19 05:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found