Starting a personal reuasable code repository.
Posted
by Rob Stevenson-Leggett
on Stack Overflow
See other posts from Stack Overflow
or by Rob Stevenson-Leggett
Published on 2010-05-09T12:44:13Z
Indexed on
2010/05/09
13:08 UTC
Read the original article
Hit count: 162
Hi,
I've been meaning to start a library of reusable code snippets for a while and never seem to get round to it. At the moment I just tend to have some transient classes/files that I drag out of old projects.
I think my main problems are:
Where to start. What structure should my repository take? Should it be a compiled library (where appropriate) or just classes/files I can drop into any project? Or a library project that can be included? What are the licencing implications of that?
In my experience, a built/minified library will quickly become out of date and the source will get lost. So I'm leaning towards source that I can export from SVN and include in any project.
Intellectual property. I am employeed, so a lot of the code I write is not my IP. How can I ensure that I don't give my own IP away using it on projects in work and at home? I'm thinking the best way would be to licence my library with an open source licence and make sure I only add to it in my own time using my own equipment and therefore making sure that if I use it in a work project the same rules apply as if I was using a third party library.
I write in many different languages and often would require two or more parts of this library.
Should I look at implementing a few template projects and a core project for each of my chosen reusable components and languages?
Has anyone else got this sort of library and how do you organise and update it?
© Stack Overflow or respective owner