Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free.

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

So I am in the middle of making (and maintaining) my own code library with quick snippets to make life easier.

I'm assuming a lot of other people do this to help.

My question is, what sort of things do you store in this so called library

Also, Do you use any tools to organise this library?

share|improve this question
You will learn that creating a good library is hard. How will you need to use any given non-trivial function in years to come? – user1249 May 10 '11 at 6:53
up vote 2 down vote accepted

I found this to be a great program for managing different code snippets:

"The Scripter's Scrapbook is a fully-featured cross-platform personal reference library, source code repository and information organizer that integrates the convenience of the desktop with the resources of the web."

I am not affiliated with this at all, just thought it was cool. I've actually set my sights on making my own.

share|improve this answer
Looks nice. Maybe I should go about developing my own ;) – MattyD May 10 '11 at 4:29

I have various libraries. Each library has its own subject, such as mathematics, hashing, security, bit manipulation. As I program in different languages and not all code is portable, I just tend to keep those libraries near the developing environment, as they clutter up quickly.

Each library consists of one or more well commented and well named functions. They range from Counting the number of set bits in a 32bit int, to deriving some unique machine id from the network interfaces and corresponding MAC addresses.

Projects (this is handy in .NET environments, you can load them everywhere) and compiled libraries (.dll).

share|improve this answer

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.