I program simple tasks everyday, but I have a hard time finding the scripts, and code snippets I write. Is there an manageable way to keep track of this sort of thing?
|
closed as not a real question by gnat, Walter, ElYusubov, Robert Harvey, Dynamic Dec 11 '12 at 22:53
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.
|
I use Mercurial for this. My work is on both Linux and Windows, so I have such small code snippets for both the system. I have created a repository on windows, on which I save all this scripts and then the clone of this on linux. I keep both in sync. |
|||||
|
|
Try bookmarking your code with reminder comments. That will help you a lot. Also there are a variety of great source control management systems available in the market. |
|||
|
|
|
As others have already said, a VCS alone is not enough for this. What your really need is a "database" of (possibly versioned) snippets or, even better, a "knowledge base" or a "wiki" of snippets like github's gist. If you are in my same position, most likely you are not allowed to publish your code. In this case, you have to setup your own gist, either on your PC or on a server on your LAN. Have a look at gitpaste for this: https://github.com/justinvh/gitpaste There are other gist clones that can be used for this task, out there. You can also use one of those "desktop wiki" (or "mind mapping") programs that were so fashionable some years ago. Everything that can help you to create a small, managed (and possibly versioned) "snippet base" will work fine. Of course, if you are allowed to publish your snippets, you can just use gist. |
|||
|
|