Code needs a license
2011-06-15Disclaimer: IANAL (I Am Not A Lawyer)
First off, I have to say that the majority of this is paraphrased/ripped off from a short talk that Jacob Kaplan-Moss ( @jacobian) gave to a local user group I had attended. Basically all of the credit goes to him, but I thought it was important enough to make sure it found its way onto the internet in some form or another.
License your code!
The default license for anything published in the United States (and from the US) is All Rights Reserved. That basically means that if someone copies and pastes code that someone uses as example code on their blog, later, if they feel like it, they can sue you. That is obviously very bad, and likely not what the original poster intended. However, the fix for this is simple. Just include a license statement, either with the code itself or a generic one (like the one at the bottom of this page) that gives a default license for code on your site. Even if your code is on GitHub, Pastebin, etc... the default license is STILL All Rights Reserved, which means you can't use it w/o fear of legal repercussions.