<p>I've got several modules containing functions, classes and templates that I keep in a directory called (hah!) 'reuse'. I know the content reasonably well, so to find a particular class or bit of code doesn't take too long, but it is slowly growing in size and I need some sensible method to store them for easy search &amp; retrieval.</p>

<p>How should I do this?</p>

<hr>

<p>A related question can be found here: <a href="https://stackoverflow.com/questions/90300/in-house-full-text-search-engine-for-source-code-and-sql-scripts">full text search for source code</a></p>

Group
the sources by
area of use
(network, security, text processing, etc); best in
directories
for easier browsing.
Tag
functions by adding
keywords
into the source documentation. Use an appropriate comment markup system (like javadoc) and create some kind of indexable docs.
Search
by using some kind of full text search (grep -r, google desktop) on your sources.