Code Snippet management

Soldato
Joined
1 Feb 2006
Posts
8,188
For the developers on here how do you go about storing/noting down anything new you learn in terms of programming/code snippets?

I am not a pro but as I learn different things I copy the code into separate txt files for reference should I need it again.

Is there a nice organised way of doing this? Do you write and maintain your own utility classes with useful functions? Any good tips to save rewriting previous stuff?
 
Lots of text files doesn't strike me as a very good way of organising all this. If a cloud solution appeals you could set up a Wiki - there are some free ones available, and you can include pictures and so on as well. It would be available to you from anywhere without having to carry a memory stick around.

If you have it you could try OneNote - again you can include pictures.

If I didn't do either of the above I'd do a Word document, just one, and make use of the headings and table of contents generation features.
 
In C# and i find something intresting that i think i may need in the future.

I just create a small project that uses the code in a folder. Then i know what it does and how it works for next time (Even better if i dont end up using it for a long time)
 
I use Evernote for normal note taking and was thinking I could possibly use it. I like the idea of being able to tag snippets so that I know what they are related to and what they do.

As ^^ I maybe could just copy all my solution folders to Dropbox or similar.
 
Not sure what OS you are working from but in windows it stores it's data in C:\Users\username\Application Data\Roaming

I have set that file to sync between my PC and laptop so that I have the same library on each.

I realise that its a bit of a work around, but works our nicely for me.
 
Back
Top Bottom