Posted Code

Usage of code posted on this website.

Code snippets written by me that are part of a larger, released work

As you may notice on my blog, there are many entries where I have snippets of code. These code snippets will often be accompanied by the originating source code in full and the snippets are simply previews of said source code. If this is the case, the license accompanying the entire source bundle is the license that applies to the snippets. The license I prefer is the MIT License. I will bundle it properly with all code I release under it, but here it is in full, with a copyright line like the one I might use so that you might see what it is like. Of course, "<year>" would be the release year and hinge on what that year happens to be.

Copyright (c) <year> Samuel Horwitz

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Why do I prefer the MIT License to say, the GPL? Well, for starters, the MIT license isn't a novella. It gets the point across in the amount of space you can allot to it at the top of a piece of code in a comment. I am the copyright holder and I'm letting people use and mess with my work as they want. I think the GPL has become somewhat of a bloated joke and you shouldn't need five tons of legalese to the get the point across that you are proud of your creation (hence the copyright as opposed to public domain) but that you want your work to be available to everyone for free. Also, the GPL 3.0 recieved a lot of controversy for various reasons, some of which I agree with.

Note that if I release something under a license other than the MIT License, then that license must be heeded instead.

Cited code snippets written by others

If the code snippets I have posted are from another person's code, then I should have cited them and their licensing rules apply.

Standalone code snippets released by me that have no licensing information

Finally, in the instances in which I post original code snippets with no full source file and no licensing information, it can be assumed that said code is released into the public domain.

No comments:

Post a Comment