{"id":2574,"date":"2016-01-24T13:16:57","date_gmt":"2016-01-24T19:16:57","guid":{"rendered":"http:\/\/dev.iachieved.it\/iachievedit\/?p=2574"},"modified":"2016-05-06T10:27:57","modified_gmt":"2016-05-06T16:27:57","slug":"dont-use-the-phrase-all-rights-reserved","status":"publish","type":"post","link":"https:\/\/dev.iachieved.it\/iachievedit\/dont-use-the-phrase-all-rights-reserved\/","title":{"rendered":"Don&#8217;t Use the Phrase All Rights Reserved"},"content":{"rendered":"<p><a href=\"https:\/\/help.github.com\/articles\/about-gists\/\">Gists<\/a> are a popular method of providing code snippets to the community.  These snippets frequently express complete implementations of an algorithm (for example, QuickSort in C) or smaller chunks of examples.<\/p>\n<p>I recently came across <a href=\"https:\/\/gist.github.com\/rayfix\/1fb467981e386ad5797e\">this implementation<\/a> of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Circular_buffer\">circular buffer<\/a> in Swift to help with an upcoming chat client blog post.  Unfortunately I cannot use this code as I pay close attention to the copyright statements of all source code and adhere to their caveats, restrictions, and limitations.  This is one reason I&#8217;m not comfortable with including code that uses the <a href=\"http:\/\/dev.iachieved.it\/iachievedit\/thoughts-on-the-affero-gpl\/\">Affero GPL<\/a>.<\/p>\n<p>The circular buffer gist in question above uses the phrase <a href=\"http:\/\/www.iusmentis.com\/copyright\/allrightsreserved\/\">All rights reserved<\/a> in its copyright statement:<\/p>\n<pre class=\"crayon:false\">\nCopyright (c) 2014 Pelfunc, Inc. All rights reserved.\n<\/pre>\n<p>Strictly speaking copyright law does not require this statement, as all copyright rights are reserved by <i>default<\/i>, regardless of whether or not there is a copyright statement.  In other words, you are granted no rights to a copyrighted work without explicit permission.  The conclusion is I may not copy or use the code in this gist without permission from the author, even if it is for my own personal use.<\/p>\n<p>Now, let&#8217;s be honest.  I seriously doubt that was the intent of the author; after all, the code was posted to a gist.  If the intent wasn&#8217;t for others to make use of the code, why was it posted?  One might argue gists can be used as one&#8217;s own frequently used snippet bucket, but I find that relatively implausible considering that in this case it is a corporation (Pelfunc, Inc.) holding copyright.  The more likely explanation is that people don&#8217;t put much consideration into the copyright statement and reflexively type something they&#8217;ve seen elsewhere, namely the phrase <code>Copyright (c) 2016 Megaco, Inc. All rights reserved.<\/code>.<\/p>\n<h3>Make it Easy for Others to Use Your Code<\/h3>\n<p>Gists are for sharing, and there are ways to make it easy for others to use the code which you&#8217;ve kindly shared with the community.  The easiest method is to add a simple statement referring to the <a href=\"http:\/\/choosealicense.com\/licenses\/unlicense\/\">Unlicense license<\/a> or using the phrase &#8220;This is free and unencumbered software released into the public domain.&#8221;  If you do want to retain some rights, choose from the <a href=\"https:\/\/en.wikipedia.org\/wiki\/MIT_License\">MIT<\/a>, <a href=\"https:\/\/en.wikipedia.org\/wiki\/BSD_licenses\">BSD<\/a>, or <a href=\"https:\/\/en.wikipedia.org\/wiki\/ISC_license\">ISC<\/a> licenses and include a URL to the license text.  And of course, you can always choose from one of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Copyleft\">copyleft licenses<\/a>.<\/p>\n<p>Under almost no circumstances, though, should you use the phrase <i>All rights reserved<\/i> in your gists if you actually <i>want<\/i> to share and have others make use of your code!  I can only think of one exception and that would be if you wanted to get e-mails asking if you&#8217;d please give permission to use.  If that&#8217;s the case go ahead and add that to your gist as the uninitiated might just copy it anyway.<\/p>\n<h3>PostScript<\/h3>\n<p>After writing this post I went on the hunt for another circular buffer implementation in Swift, and found <a href=\"https:\/\/github.com\/tomaszpiekarczyk\/CircularBuffer\">this one<\/a> that has purports to use the MIT license.  Of course I went to lift out the implementation file <a href=\"https:\/\/raw.githubusercontent.com\/iachievedit\/CircularBuffer\/master\/CircularBuffer\/CircularBuffer.swift\">CircularBuffer.swift<\/a> and it has the onerous <i>All rights reserved<\/i> phrase, ostensibly as a result of the defaults set in Xcode.  I genuinely believe the author&#8217;s intent was to provide this as an open source framework, and have issued a <a href=\"https:\/\/github.com\/tomaszpiekarczyk\/CircularBuffer\/pull\/2\">pull request<\/a> to update the license in each of the <code>.swift<\/code> file copyright statements.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gists are a popular method of providing code snippets to the community. These snippets frequently express complete implementations of an algorithm (for example, QuickSort in C) or smaller chunks of examples. I recently came across this implementation of a circular buffer in Swift to help with an upcoming chat client blog post. Unfortunately I cannot [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2945,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-2574","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-copyright"],"_links":{"self":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/2574"}],"collection":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":10,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/2574\/revisions"}],"predecessor-version":[{"id":2607,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/posts\/2574\/revisions\/2607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/media\/2945"}],"wp:attachment":[{"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/media?parent=2574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/categories?post=2574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dev.iachieved.it\/iachievedit\/wp-json\/wp\/v2\/tags?post=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}