LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-28-2010, 05:33 PM   #1
hattori.hanzo
Member
 
Registered: Aug 2006
Posts: 167

Rep: Reputation: 15
Lightbulb 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,
 
Old 10-28-2010, 05:35 PM   #2
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,902

Rep: Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541Reputation: 1541
http://bitbucket.org/
 
1 members found this post helpful.
Old 10-29-2010, 04:29 PM   #3
ee437
LQ Newbie
 
Registered: Oct 2010
Location: Wisconsin, USA
Distribution: Slackware
Posts: 12

Rep: Reputation: 4
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.
 
1 members found this post helpful.
Old 10-29-2010, 07:51 PM   #4
devnull10
Member
 
Registered: Jan 2010
Location: Lancashire
Distribution: Slackware Stable
Posts: 547

Rep: Reputation: 115Reputation: 115
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.
 
1 members found this post helpful.
Old 10-31-2010, 03:04 PM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 10-31-2010, 03:23 PM   #6
udaman
Member
 
Registered: Oct 2010
Location: New England, USA
Distribution: OpenSUSE/Slackware64/RHEL/Mythbuntu
Posts: 187

Rep: Reputation: 39
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.

Last edited by udaman; 10-31-2010 at 03:27 PM. Reason: bad formating
 
Old 11-01-2010, 02:14 AM   #7
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google hints at native code in Chrome Web Store LXer Syndicated Linux News 0 05-27-2010 05:30 PM
LXer: FSF take on Apple's App Store over GPL2 code LXer Syndicated Linux News 0 05-26-2010 10:20 PM
Information store: What software could I use to store and access various info merixon Linux - Software 2 12-17-2008 12:51 PM
User Preferences: Use HTML code instead of vB code? (vB code is overrated) stefanlasiewski LQ Suggestions & Feedback 5 07-26-2005 02:37 AM
'alsactrl store' doesn't seem to store... endfx Slackware 1 08-20-2004 02:30 AM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration