Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

So basically I make several programs. Of course one program often used code from another. So I have my own personal "library"

Well, I do write jerk codes. Then When I open a project, the project will require another file. I add that file and that file require another file, then I add that file and that file requires another file. Then, I ended up with so many files the program doesn't need. I ended up having to correct really really old codes that are no longer used on files I do not need. Why? Because I don't bother structure dependency. Well, subject for another question.

What do you do to avoid this problem.

share|improve this question
    
I wonder why is this downvoted? –  Jim Thio Aug 17 '12 at 0:37

1 Answer 1

up vote 2 down vote accepted

You modularize and make libraries. Each library may contain much more than you will need in a project, but it is a single atomic unit that is easy to handle.

For starters, keep the library version number in the file name.

Remember to use a SCM like git. It will be very helpful in the long run.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.