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

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.


Comment on Re: Should I write your code ?
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 :)

    Simon

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (14)
As of 2014-09-23 18:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (234 votes), past polls