• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

To programmers out here... do you organize and keep your scripts?

Juniper

Platinum Member
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?
 
Originally posted by: Juniper
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.

 
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 🙂
 
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.
 
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.


 
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...
 
Most of the stuff I write goes into some larger program, I'll reference that.
I only have one script for functions in progress.
 
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.
 
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.
 
Back
Top