Could a programmer use the code that they made for another company?
<p>If someone made a piece of software for another company but never gave away the intellectual property rights or signed anything, could they use that code in other similar software?  Could they sell it?</p>
<p>Assume that they were not an employee of that company and that they never signed a contract of any sort with the company, but that they were paid.</p>

<p>For cases where this occurred within the United States, with works created on or after January 1, 1978:
<sup>(the OP has since clarified that their scenario occurred elsewhere)</sup></p>
<p>By default, the author (the actual creator) of a work is the owner of the copyright.  However, this is not the case if the work is a &quot;work made for hire&quot; for an employer.  In that case, the company is considered the author of the work, and owns the copyright.  From <a href="https://www.copyright.gov/circs/circ09.pdf" rel="noreferrer">US Copyright Office Circular 09</a>:</p>
<blockquote>
<p>If a work is made for hire, an employer is considered the author even if an employee actually created the work. The employer can be a firm, an organization, or an individual.</p>
</blockquote>
<p>Works are considered to be made for hire in two situations, as described by that circular (emphasis added):</p>
<blockquote>
<p>a) a work prepared by an employee within the scope of his or her employment</p>
<p>or</p>
<p>b) a work specially ordered or commissioned...<em><strong>if the parties expressly agree in a written instrument signed by them that the work shall be considered a work made for hire.</strong></em></p>
</blockquote>
<p>If no written agreement was signed and no employment relationship existed, then ownership of the copyright to the software would go to the person who wrote it, and they would be able to do anything that a copyright holder could do with a work, including using it however they want or selling it.</p>
<p>Do note that this would <em>only</em> apply to software or changes made by the person in this situation.  They could not, for example, sell or distribute any other piece of the software written by other people without the copyright holder's permission, even if these pieces are necessary to use the software that this person created.</p>

<h1>This varies with jurisdiction.</h1>
<p><strong>(Since OP appears not to be in the US this is important)</strong></p>
<p>In the <strong>US</strong> the company would retain copyright <strong>IF</strong> you were an employee or if there was a written agreement stating they own the copyright.</p>
<p>However in <strong>NZ</strong> if a company paid you for the work then they own the copyright.</p>
<p>In <strong>AU</strong>, who retains copyright depends on the medium (i.e., journalism is treated differently than software)</p>
<p>When the company is in one country and the author in another, it gets... complicated.</p>
<p>There has been some <strong>US</strong> case law, where the copyright law of the authors country takes precedence. But in that case that was a win for the <strong>US</strong> company. Don't count on that if it meant a <strong>US</strong> company loses next time. [End cynicism]</p>
<p>Please consider also the cost (money and time) if they sue. Even if you win it is going to be a PITA.</p>
<p>Also the next company you do work for is not going to be happy if they get sued (even if they win).</p>
<p>This could have long term damage to your reputation and perceived reliability.</p>

<p>There was a contract between you and the company, it just wasn’t written down. If the company sued you for copyright infringement - which the can do whether they own the copyright or not - the judge would decide based on the actual facts what kind of contract there actually was. And that would decide who is the copyright owner and what rights you and the company have.</p>

<p>I am probably the least knowledgeable person in this site when it comes to law, but I do write software for a living.</p>
<p>I believe IP laws and jurisprudence might see code in a way that is similar to other forms of IP. So I will use an example from music.</p>
<p>Last year a federal judge in the US ruled that Katy Perry's song <em>Dark Horse</em> infringed on the copyrights of rapper Flame's song <em>Joyful noise</em>. The songs have nearly nothing in common - the infringement was due to an eight note ostinato that wasn't even the same among the songs.</p>
<p>Music specialists pointed out that a myriad of other songs have the same kind of ostinato, being as similar to <em>Joyful Nise</em> as <em>Dark Horse</em> is. Most examples I could find online are in the public domain because their authors have been dead for a few centuries. A similar lawsuit made against Led Zeppelin had a more sensible outcome, which helped overturn the results of Flame vs. Perry (saving the latter some 2.8 million USD).</p>
<p>I found a couple videos that elaborate on this:</p>
<ul>
<li><strong>Legal Eagle</strong> <a href="https://www.youtube.com/watch?v=zgsL5yW3bao" rel="nofollow noreferrer">explains the legal parts</a>. He litigated on a very similar issue as well.</li>
<li><strong>Adam Neely</strong> <a href="https://www.youtube.com/watch?v=0ytoUuO-qvg" rel="nofollow noreferrer">explains the technical parts regarding music</a>. The general idea applies to software as well.</li>
</ul>
<p>The bottom line is that as with all intellectual property, <strong>some parts of a work are protected, some other parts are not<sup>1</sup></strong>. Consider that when thinking about using code that you wrote for another company. Small functions and variable declarations in code are like sequences of musical notes. What is the threshold that makes one song different from another?</p>
<p>Are you reusing a library that you wrote in your last job, with references to the company by name and everything? Probably a no-no.</p>
<p>Are you using the same algorithms and logic, wrote in a different way, decoupled from the previous company's business? Possibly in a different language, and covering more use cases? Might be worthy talking to a lawyer in person for legal advice, as this has the potential to become a new product, but might still be infringement. You might like to read about <a href="https://en.wikipedia.org/wiki/Google_v._Oracle_America" rel="nofollow noreferrer">Google vs. Oracle America</a> (I read that Google's lawyers were using the same philosophy as I'm using here, but using Harry Potter instead of Katy Perry as an example).</p>
<p>Are you able to solve the same problem with different algorithms? You may be a better coder now than you were before. You can probably outdo your former self and do something that is new and unique enough that you can be more at ease when it comes to copyright. Be mindful about non-competition clauses your old contract might have, though. And again, seeing a lawyer personally will save you a lot of trouble.</p>
<hr />
<p><sup><strong>1</strong></sup> Were it not so I would be a trillionaire. I wrote <code>int i = 0</code> in 1993 and now every single programmer in the world that did the same after I did would own me 25 cents for every day in their lives they have written code :D I might have to pay larger sums to the original C++ authors from the 70's though.</p>

<p>I am inferring your level of legal experience from the way you wrote this.  (which is to say, quite little).  And as you say in comments, you are in Colombia.</p>
<h2>Nope, cannot do it.</h2>
<p>It is a complete lose to even try, because of the hoops and hurdles in your way, many of which are dead-ends.</p>
<p>When an employee creates &quot;work product&quot; as part of their employ, that is property of the company and intellectual property rights go to the company.</p>
<p>You can claim that property right only if you can claim that you were not an employee <em>at all</em>, but some sort of creative contractor (where's your contract, <em>contractor?</em>), and further, that the nonexistent &quot;contract&quot; conferred the IP rights of your paid work to yourself and not the payer.  <em>See where that's a bit of an uphill proof?</em></p>
<p>This will play out in court, one of two ways:  #1. You go to court and ask the court to rule that the intellectual property belongs to you, <em>in advance</em>, before you start using the IP with other companies.  Or, #2, you <em>just go ahead and use it anyway</em>, AND the first company gets wind of this, AND the first company decides they want to sue.</p>
<p>In the first case, you are choosing the fight in a low-impact, low-risk way: worst case the judge says &quot;no&quot; and you pay the old company to license the material, or walk away and create new material.</p>
<p>In the second case, it's less likely to happen, <strong>but if it does happen, it is <em>devastating</em></strong>. You could find yourself being attacked from both sides (because company 2 would feel this is NOT their fault and you misled them). Company 1 would sue for all company 2's profits, and both companies would agree <strong>you</strong> should pay it.</p>
<h2>Is it better to fight, or rewrite?</h2>
<p>And here's how I definitively get to a &quot;nope&quot;.</p>
<p>I don't know how expensive litigation is in Colombia.  But I can tell you, it's a gigantic emotional energy sink <strong>also</strong>.  It devastates your productivity as a creator.  One person wrote amazing tech manuals (site gone), until <a href="http://www.mikeandmabell.com" rel="nofollow noreferrer">this happened</a> and the creative spigot <em>just stopped</em>. See what I mean about &quot;distraction&quot;?</p>
<p>The employer owns your work product; they do not own your mind.  You can re-create the work from scratch.  Turn heel and walk away from the original work and make a new and better one.</p>
<p>And this time, <em>get it in writing</em> lol....</p>

copyright software work-for-hire