Results 1 to 5 of 5

Thread: Store Code -- Alternatives Wanted

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166

    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:
    1. A.  Use a program such as CodeBook.
    2.  
    3.       Advantages
    4.  
    5.       1.  Code all in one place
    6.       2.  Listbox is available for a sorted list
    7.       3.  Search routine to look for code
    8.  
    9.       Disadvantages
    10.  
    11.       1.  Stored in a separate file (normally DB) so subject to corruption.
    12.       2.  Code must be formatted according to CodeBook requirements
    13.       3.  Lengthly code examples with multiple functions/subs are not easily handled.
    14.  
    15.  
    16. B.  Store as a BAS Module.
    17.  
    18.       Advantages
    19.  
    20.       1.  Code all in one place (Module)
    21.       2.  Listbox is available as built into VB
    22.       3.  Search routine to look for code (VB)
    23.       4.  Stored as text
    24.  
    25.       Disadvantages
    26.  
    27.       1.  Lengthly code examples with multiple functions/subs are not easily handled since they not kept together (eg. events)
    28.  
    29. C.  Stored as  separate files on HardDisk
    30.  
    31.       Advantages
    32.  
    33.       1.  Code all in one place
    34.       2.  Search routine to look for code (Explorer)
    35.       3.  Can be Stored as text or zip or whatever format
    36.       4.  Lengthy code examples can be kept together
    37.  
    38.       Disadvantages
    39.  
    40.       1.  Large number of small files which uses up a lot of HD space.

  2. #2
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662

    Re: Store Code -- Alternatives Wanted

    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.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Agent:

    Thanks for response. Using the harddrive has always been my preference but never liked the wasted slack space due to cluster size.

    I am interested about your comment

    --------
    because explorer treats zip files like a folder...
    ---------

    If has always been my understanding that folders (directories) are handled the same way as any file. Yes -- I know they are kept tract of by the FAT, BUT I THOUGHT each folder/directory took up the same cluster size as any file (eg. 1 byte file = 1 cluster).

    Am I in ERROR?

  4. #4
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180
    How about using this codetree. It is created by Rick Bull, and it works great!

    You can store all kinds of code in it, nicely sorted into subsections.

  5. #5

    Thread Starter
    PowerPoster
    Join Date
    Jul 2001
    Location
    Tucson, AZ
    Posts
    2,166
    Thanks for the reference. Will take a look see.
    What I'm really interested in is WHY (Advantages/Disadvantages) you made re the decision to use a separate program to store your code instead of just using the harddisk and accessing using explorer.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width