Ninthwave has asked for the wisdom of the Perl Monks concerning the following question:

I have some code that I wrote that I don't really see going very far. But as it is in use and will be maintained for a bit, how should one credit code that was suggested by perlmonks. I always try to credit the source of any code I use be it from a book or the web. And even though the code changes or is adapted I try to refer to the original. So is there an accepted way of crediting perlmonks or is their a community view on this. And if there is already a view on this where is it my searches really didn't yield anything yet.

"No matter where you go, there you are." BB

Replies are listed 'Best First'.
Re: Courtesy
by liz (Monsignor) on Nov 23, 2003 at 17:11 UTC
    Add an ACKNOWLEDGEMENTS section to the pod in the source and mention the specific Perl Monks in there, or mention the Monastery (maybe with a URL) more generally. You do have pod in your source, don't you? ;-)


      Let's pretend I'm stupid.... OK, I am. Pod?

      Is it fair to stick a link to my site here?

      Thanks for you patience.

Re: Courtesy
by jeffa (Bishop) on Nov 23, 2003 at 17:13 UTC
Re: Courtesy
by pg (Canon) on Nov 23, 2003 at 19:52 UTC

    You can do this:

    • Send a message to the author, I think nothing would make the author more happy than knowing his/her code is appreciated by another monk.
    • Add a link to the author's home node. But check with the author first, see whether he/she wants his/her home node to be linked.
Re: Courtesy
by TomDLux (Vicar) on Nov 24, 2003 at 05:29 UTC

    Giving credit to people is nice, but my concern as a programmer is helping readers understand my program. I don't worry about plagiarism, people know I didn't invent red-black trees. But a reference to wherever I looked up while writing aa module is useful becuase people can better understand my thinking.

    I would suggest having a link to the root of the discussion thread that improved your code, so people can see the whole stream.


Re: Courtesy
by Ninthwave (Chaplain) on Nov 24, 2003 at 10:33 UTC

    Taking the suggestions here I will have a link to the node that gave ideas for my choice of code. And a link to the offering plate. The link to the node will be in the comments for the section of code in question, and in the pod acknowledgements. In the pod acknowledgements will be the link to this site and the offering plate.

    Thank you

    "No matter where you go, there you are." BB