![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Code library (in working progress)
Someone brought up the idea of a code library, and it's been something i've been in desperate need of for a while. I have a large ~/Python directory with no structure, containing around a hundred cryptically named files, so i've started creating my own code library.
I think a really clean, intuitive, and efficient one is needed, so you can get to your code quickly and easily. Here's what i've got so far. Current features implemented are: - Search-as-you-type filter - Filter by category - Source sample adding via drag-n-drop - you can drop a file, an FTP/HTTP link, or a direct snippet, and you'll be greeted with a simple dialog that allows you to select categories and set the title and description. Future features I want in there: - Statistics for each file: lists of classes, functions, and their parameters; creation/modification date (maybe diffs?), etc.. - Backup the library to an archive (zip, rar, tar.gz, tar.bz2, or lzw) Any ideas on what features you think would be cool in there? Be creative ![]() |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
Some work I have done uses an editbox for the code and an associated editbox for notes. The search-as-you-type indexing is a good idea. Right now I have it search a listbox of keywords to speed things up. Of course you have to supply the keywords with each new entry. On the other hand, you can supply keywords that are not necessarily in the code. The keywords do crossreference the various code snippets.
I also made the topline in the code a remark containing the description. It is fished out and diplayed as you go through the title listbox. This way the description can go with the cut and paste of the code. Helpful, if you splice a larger program together from the snippets.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#3 | |
|
Professional Programmer
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4
![]() |
Quote:
|
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
I see your point. I guess you can always copy/paste the description along with the code copy/paste then.
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
looks very good. one of these days I will get around to writing one in C# ...
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|