http://www.perlmonks.org?node_id=152187


in reply to Should I write your code ?

Hint or rewrite... Often I re-write a piece of code, assuming the user does have a little Perl knowledge, and knows where to find documentation. On the other hand, when it comes to using modules, I just list some modules that might be appropriate. I try to be helpful in my replies, but I'm not always. My replying style differs all the time, I struggle with the same problem.

IRL, I decide based on the question. If the question is "Why doesn't this work", I point out only why it doesn't. If the question is "Is there a better way?", I often re-write code.

U28geW91IGNhbiBhbGwgcm90MTMgY
W5kIHBhY2soKS4gQnV0IGRvIHlvdS
ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
geW91IHNlZSBpdD8gIC0tIEp1ZXJk

Replies are listed 'Best First'.
Re: Re: Should I write your code ?
by ellem (Hermit) on Mar 16, 2002 at 17:28 UTC
    I can vouch for this. I posted some dung-heap of code recently and Juerd simply rewrote my code in a completely diff't way than I had ever thought about my problem and in the process I had to do some research to figure out what it was he/she/it wrote and why it worked at all.

    I _want_ to learn Perl, not just get the latest CGI thingy working so I am the person who will take the time to explore the new code. Not everyone is like me/us. This is neither good nor bad, simply different.
    --
    ellem@optonline.net
    There's more than one way to do it, but only some of them actually work.