Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have been into freelance business for more than 2 years. While doing projects for other people, I've build a compilation of common tasks that I implement in projects and put them into code. It's kind of a library with some functions that I can reuse without having to rewrite the same thing dozen times. I'm talking about accessing Access databases, downloading information from FTP and similar stuff.

Is this acceptable from a legal point of view? What's the difference in reusing the old code and rewriting it from the scratch (using you own brain again, therefore the exact same logic)?

I do not hold any copyright to it, of course, and provide the source code for these classes to my clients.

share|improve this question
up vote 8 down vote accepted

Actually, unless you have signed over copyright, you are the copyright holder (of course, this depends on what country you are in - the US and UK give the author automatic copyright).

In general, there is nothing wrong with this practice - just make sure when signing contracts that you are not giving away your rights to this code.

share|improve this answer
I second this. And nothing wrong with that at all. I think that most programmers develop their "me-framework" over time for sure. It is good practice too in my opinion as it allows you to refine your code over time and also become very fluent in it. – Garet Claborn Mar 7 '11 at 8:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.