LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How do you store you code? (https://www.linuxquestions.org/questions/programming-9/how-do-you-store-you-code-841033/)

hattori.hanzo 10-28-2010 04:33 PM

How do you store you code?
 
Over the years I have been collecting snippets of code and have written my own but have never come up with a good system to store the code. I am not an everyday programmer but code adhoc to get things done.

I have been been just storing in text files but have been considering either a personal wiki (Dokuwiki) or a CVS (overkill?). So how do you store your personal code?

Thanks & Regards,

dugan 10-28-2010 04:35 PM

http://bitbucket.org/

ee437 10-29-2010 03:29 PM

For my job, i do write my own code, but i'm not a programmer by trade. mostly, i don't know how to write code for multiple systems, and i am usually the only user of my code.

i have a scheme to document and save my codes. i do use cvs, for code, for TeX documents, for many things.

i think what is most important is that, if you do feel code is worth saving, save documentation for it as well. maybe most people here would say, "of course!" document, but for a long time, i didn't document my work.

a personal wiki is interesting, find something you are comfortable with. i screwed up CVS a few times, it took a little time to get used to it. i find cvs makes me stay organized. a wiki would be another way to stay organized.

i hope that helps. it would be interesting to hear what others have to say.

devnull10 10-29-2010 06:51 PM

CVS is useful if you are making changes to code but if all you want to do is store it then i's not really much different than creating a folder and sticking everything in there in some kind of hierarchy. I'd say only use CVS if you plan on actually version controlling.

theNbomr 10-31-2010 02:04 PM

When I'm working on code for personal purposes, I like to store it in a CVS repository once it is at a satisfactory level of polish and usefulness. This makes it easy to keep track of, and back up. Otherwise, it just gets lost amongst the myriad of other bits and fragments of maybe-working stuff. It's really just an organizational tool, more than a rigorous versioning system.
--- rod.

udaman 10-31-2010 02:23 PM

FORGET IT, THIS LOOKS TERRIBLE........

My hierarchy looks like this....


C -- Golden
Test
C++ -- Golden
Test

Programming --

Perl -- Golden
Test

Pascal -- Golden
Test

That's it, no muss, no fuss.

Sergei Steshenko 11-01-2010 01:14 AM

Maybe this: http://rosettacode.org/wiki/Main_Page can be used as an example. Useful site, by the way, for not reinventing wheels.


All times are GMT -5. The time now is 04:45 PM.