Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: Confused.... question on code scalability (reusing functions, etc)

by Anonymous Monk
on Feb 27, 2003 at 10:03 UTC ( [id://239042]=note: print w/replies, xml ) Need Help??


in reply to Re: Confused.... question on code scalability (reusing functions, etc)
in thread Confused.... question on code scalability (reusing functions, etc)

Nice list :). Any reason for the 'more than twice' rather than more than once? Anytime I find myself rewriting code, I put it in a module and don't wait for the third time. Also:

If it feels like a monkey could do it, check the above list to see what you missed

I'd argue that if it feels like a monkey could do it, you're using the right tool ;-). Then again, if it feels like it would bore a monkey, you're definately going about it wrong.

  • Comment on Re: Re: Confused.... question on code scalability (reusing functions, etc)

Replies are listed 'Best First'.
Re: Re: Re: Confused.... question on code scalability (reusing functions, etc)
by Elian (Parson) on Feb 27, 2003 at 13:50 UTC
    The reason for "more than two" (really three or more) is that I've found, doing a lot of support programming over the years, that tasks come in three forms--the one-off, the one-off you screwed up and have to redo, and the repeater. (Or the one, two, and many times cases)

    I know the traditional CS counting scheme is "0, 1, or many", and that's more or less true for counts on data instances, but I've found in practice for writing code segments it's more "0, 1, 2, not again!"

    The monkey comment was there to make people realize that, if the job requires no brain at all (we're presuming the monkey isn't smarter than the person doing the task) then a program should be doing the task, and you'd be far more effective writing a program to do the task rather than just doing the task. (Time permitting, of course, and it often doesn't)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2024-04-24 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found