Slashdot Mirror


How Do You Store Your Previously-Written Code?

Asmor asks: "I'm a novice programmer who is largely self-taught. It's never been too much trouble for me to reinvent the wheel constantly before, but now as my ambitions get loftier I'm finding that I could really benefit from maintaining some oft-used code that can easily be reused. The problem is, I really don't have any experience with this and I'm not really sure how I should organize things, how the code should be stored, how it should be implemented, etc. I think this is what people mean when they talk about libraries and/or APIs, but not really sure. I'm specifically curious about PHP and JavaScript, but advice for other programming languages is also helpful! How do you store and maintain your most frequently used code?"

4 of 459 comments (clear)

  1. Re:Oh - My - God by QuantumG · · Score: 0, Troll

    Is he self taught like Plato was self taught or is he like the rest of us, having a wealth of knowledge at his fingertips to draw upon. I think it's ok to be inexperienced but trying to learn. What I don't think is ok is being ignorant and asking others for advice without doing any basic research yourself. Sheesh.

    --
    How we know is more important than what we know.
  2. Don't bother by twistedcain · · Score: 0, Troll

    If you keep reusing the same code it will never get any better, nor will you.

  3. Old code by ENOENT · · Score: 0, Troll

    The best way to save it is "rm -rf". Honestly, if you are happy with a piece of code today, two or three years from now you'll put a brown paper bag over your head if you look at it again.

    This is something called "learning".

    --
    That's "Mr. Soulless Automaton" to you, Bub.
  4. Re:Oh - My - God by cjHopman · · Score: 0, Troll
    How about one I can attribute...

    It is better to keep your mouth shut and appear stupid than to open it and remove all doubt. -Mark Twain