Store Code -- Alternatives Wanted
I'm looking for feedback on how others store code and why they store it the way they do. As I see it the Advantages/Disadvantages of the various methods are:
VB Code:
A. Use a program such as CodeBook.
Advantages
1. Code all in one place
2. Listbox is available for a sorted list
3. Search routine to look for code
Disadvantages
1. Stored in a separate file (normally DB) so subject to corruption.
2. Code must be formatted according to CodeBook requirements
3. Lengthly code examples with multiple functions/subs are not easily handled.
B. Store as a BAS Module.
Advantages
1. Code all in one place (Module)
2. Listbox is available as built into VB
3. Search routine to look for code (VB)
4. Stored as text
Disadvantages
1. Lengthly code examples with multiple functions/subs are not easily handled since they not kept together (eg. events)
C. Stored as separate files on HardDisk
Advantages
1. Code all in one place
2. Search routine to look for code (Explorer)
3. Can be Stored as text or zip or whatever format
4. Lengthy code examples can be kept together
Disadvantages
1. Large number of small files which uses up a lot of HD space.
Re: Store Code -- Alternatives Wanted
Quote:
Originally posted by dw85745
<snip>
C. Stored as separate files on HardDisk
Advantages
1. Code all in one place
2. Search routine to look for code (Explorer)
3. Can be Stored as text or zip or whatever format
4. Lengthy code examples can be kept together
Disadvantages
1. Large number of small files which uses up a lot of HD space.
that disadvantage can be overcome by using zip files (if you're using windows xp, anyway, because explorer treats zip files like a folder... this eliminates the many small files and the associated 'cluster size' issue that causes many small files to clog harddrives.