Script Organization

Associate
Joined
25 Feb 2007
Posts
905
Location
Midlands
Hi,

I have lots of SQL scripts that I've written over time and keep finding it difficult to remember which one shows how I've done something!

Anyone have any cool methods of organizing scripts (I suppose it could be any language!) At the moment I've just got them sitting in a directory with semi-meaningful names (usually at the time I wrote them, not so much now)

Cheers!
 
You could re-organise them into sub-folders with short descriptive names, maybe even place comments at the top of each script to say exactly what it does and what situations it's useful in. At the moment I don't really have many scripts, just bookmarks of a few tutorial/information pages. That said, I've only really been using HTML and CSS.

I plan to start learning PHP soon, so I'd use the above method to organise scripts.

Hope this helps. :)
 
One of the guys at work uses Evernote, or something similar. Pops any code snippets that he has written and may wish to reuse in there. Each bit of code is tagged and commented where needed.

It's a good way of doing it as it completely searchable etc.
 
One of the guys at work uses Evernote, or something similar. Pops any code snippets that he has written and may wish to reuse in there. Each bit of code is tagged and commented where needed.

It's a good way of doing it as it completely searchable etc.

Sounds quite good actually. It's the sort of thing I was thinking of (tagging, categories etc.) but I was thinking about some sort of desktop app.

I'll give Evernote a go!
 
Also you could have a private word press or similar install on some webspace somewhere that only you could access. This way you could access from anywhere and or share them. Also consider github or similar, if I remember rightly you can set them to private access.
 
Only those on the site itself. For example http://help.github.com/win-set-up-git/

I prefer my code to be on my computer and backed up organised remotely. More peace of mind. I am a bit paranoid after losing a lot of work once. So once a week I also back it up to disc and take it to my Mums house where she stores it.
 
Back
Top Bottom