Q: I hope that this can not be moved to the software forums.
There are always the scripts / snippets of code that continue to be useful. Do you have somewhere to stash scripts to organize?
Im find a way to keep all this stuff to be found, so the next time I need em, no need flogging the Internet.
Any advice?
Re:I usually remember how to write anything I had written in the past that I find of global interest. Clients generally take issue with you taking their code and applying it to another project
Whenever I have something that I find globally useful for myself I usually write it as a CLI tool and throw it in my dev/bin dir for use.
Re:I push anything that might have future utility into a cvs repository.
But if it's really small/simple and not likely to be used often I don't bother. Might take longer to find it then to just write it again.
Re:~/admin/scripts for actual scripts
~/admin/shell for interresting shell notes
Re:Most of the stuff I write goes into some larger program, I'll reference that.
I only have one script for functions in progress.
Re:If I write a script to, say, batch rename a bunch of files, I'll keep it in my generic scripts directory, and if I need something similar later, I'll look in there for it first…
Re:I do make a copy of my project also, but I save those for my portfolio. But I tend to develop snippets of codes that are generalized, and before I integrate them into my project, I make a copy. So I'm trying to catalog those copies.
Re:I leave all of my code in its respective project, and if I need it later, I go and get it. I suppose if you have written hundreds of thousands of lines of code, it might be difficult to recall where something is, but I haven't had that problem yet.
Re:Haha.. I knew they would move it. Though there are tons of programmers more active in responding in the off topic forum. Anyway.
Thanks for that tip. Sure will help a lot ![]()
Re:Originally posted by: guy
I hope this does not get moved to the software forums.
There are always those scripts/snippets of code that keep coming handy. Do you stash those scripts somewhere and organize it?
I'm trying to find a way to keep all those stuff, so that next time I need 'em, no need scourging the internet.
Any advice?
Yup – save 'em. But make sure you title them by the "result" you are trying to get. Use long titles otherwise you will have 100s of scripts and not know what they do.
0 Comments.