Answers.Body: <p>Don't worry about "similar" code. Copyright is about copying, not about similarity. If you wrote it independently of any other, then there shouldn't be an issue. </p>
  
  <p>But there is also the rule that in some situations there is "only one way" to say something. So if some phrases (or coding patterns) appear in several places it isn't evidence of infringement. The number of ways you can write an iteration through a list is pretty small, after all. Problems recur in computing. So the "natural" programs that solve them also recur. </p>
  
  <p>Also, copyright is about publishing. If you don't publish your code then it won't be an issue either. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T14:30:59.820Z
Answers.LastActivityDate: 2020-01-14T14:30:59.820Z
Answers.UserDisplayName: Buffy
Body: <p>Is there any guidelines how to make sure that code you write won't be copyrighted anywhere? I meet sometimes situations where I write code that does some particular small thing but there is a similar code on the Internet without licenses. Then I need to think alternative more unnatural solution or how to modify the code more messier to avoid copyright issues.</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-14T19:25:57.867Z
Comments.Text: Hi guest, I am moving this question over to Academia, as it does not appear to be about CS education.
Comments.UserDisplayName: Ben I.
Tags: <programming>
Title: How to verify that code you write is not copyrighted anywhere?
ThreadText: # How to verify that code you write is not copyrighted anywhere?
  
  (Asked by: username_0 on 2020-01-14)
  
  Is there any guidelines how to make sure that code you write won't be copyrighted anywhere? I meet sometimes situations where I write code that does some particular small thing but there is a similar code on the Internet without licenses. Then I need to think alternative more unnatural solution or how to modify the code more messier to avoid copyright issues.
  
  **Tags:** programming
  
  > **Comments:**
  > **username_1**: Hi username_0, I am moving this question over to Academia, as it does not appear to be about CS education.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2020-01-14. Score: 1 | Accepted answer
  
  Don't worry about "similar" code. Copyright is about copying, not about similarity. If you wrote it independently of any other, then there shouldn't be an issue.
  
  But there is also the rule that in some situations there is "only one way" to say something. So if some phrases (or coding patterns) appear in several places it isn't evidence of infringement. The number of ways you can write an iteration through a list is pretty small, after all. Problems recur in computing. So the "natural" programs that solve them also recur.
  
  Also, copyright is about publishing. If you don't publish your code then it won't be an issue either.
  
  
  ---
  
  