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

Re: Should I write your code ?

by cjf (Parson)
on Mar 16, 2002 at 13:24 UTC ( #152183=note: print w/replies, xml ) Need Help??

in reply to Should I write your code ?

Question is: When do you decide that the person is off by a little,and try to give him a hint (retaining the faulty code in his program,that you DO see, but not addressess the problem) and when do you rewrite the code ?

Only rewrite the code when you think you can learn something from doing so. Otherwise just point them in the right direction and allow them to discover the answer for themselves. Either way the other person has the opportunity to learn the same amount.

Consider the (fictitious ;) example of someone who posts code on this site. The code is absolutely horrible, no strict, no warnings, flawed param parsing, doesn't check open calls, and so on. Do you rewrite the code for them? or do you point them to related resources on good coding practices? The only reason I would rewrite the code is that I think I could learn something by doing so. Even so, it could be argued that by posting the code I'd be doing them a disservice, so definately don't spend too much time writing code for them if you won't learn anything from the process.

Replies are listed 'Best First'.
Re: Re: Should I write your code ?
by sdyates (Scribe) on Mar 18, 2002 at 18:27 UTC
    I started out in the world of perl a little over a year ago. I knew nothing. However, I knew perl was a useful tool. Little by little I am getting much better at it. I often pull old code and work it into my new code: often improving on it.

    This site has been an excellent resource and has helped me out of many jams. I know the people here know there stuff well and that is why I seek advise. I want to get better and do as time goes by. Help those who are willing to learn and want to learn. Be cautious of those who just want you to write all their code :)


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://152183]
[Discipulus]: the new spam: gdpr consensus mail
[Corion]: Yeah, but the hope is that when I just delete it I won't receive any more mail from them
[Corion]: ... a faint hope, I know
[Discipulus]: ah ah you are still so optimist, Corion ? ;=)
[Discipulus]: here we are a bit late: i'll inject a ransomware to crypt everything and be compliant

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2018-05-25 07:32 GMT
Find Nodes?
    Voting Booth?