Thread: Storing Code Snippets

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    21

    Storing Code Snippets

    Hi. I've just reintroduced myself to C with a nice application, I'd like to save some of the snippets and I'm wondering how other people do this - a member here mentioned a backup of their c library and i thought it was a neat idea.

    I've found a couple of applications that try to help organise snippets (kjots, basket etc)
    though the ones I've used don't feel right (not exactly a long trial). I've also read that some people store many text files, others store all the snippets in a single text file, and others use a database.

    Which method(s)/application(s) do you guys at cprogramming.com use?

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    I create libraries, not snippets. Code worth keeping is worth cleaning up and putting into a library. Snippets encourage copy-paste programming.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Joining these code snippets
    By spadez in forum C Programming
    Replies: 4
    Last Post: 02-07-2009, 04:07 PM
  2. Values changing without reason?
    By subtled in forum C Programming
    Replies: 2
    Last Post: 04-19-2007, 10:20 AM
  3. Obfuscated Code Contest
    By Stack Overflow in forum Contests Board
    Replies: 51
    Last Post: 01-21-2005, 04:17 PM
  4. Interface Question
    By smog890 in forum C Programming
    Replies: 11
    Last Post: 06-03-2002, 05:06 PM
  5. Couple Code Snippets
    By Unregistered in forum Game Programming
    Replies: 1
    Last Post: 01-22-2002, 02:23 AM