Relative Content

Tag Archive for code-reuse

Handling table name collisions in Django

Django creates a table name by joining the app label with the model name. A project can have many apps. If two have the same label, how can both be used in the same database?

Format text in a generic and reusable way

I would like to write some long text in some structure to allow a set of operations on that text. The question is which structure or format should I use, which suits best the use that I plan to do of that text?

How do you keep track of what classes and functions your team has written?

When working on code, I face many of the same challenges that my teammates do, and I have written some helpful functions and classes, and so have they. If there is good communication, I’ll hear about some great thing someone put together, and six months later when I need it I may remember it and call that function, saving myself time. If I don’t remember it, or never knew about it, I will probably re-invent the wheel.

How to avoid code duplication across unrelated projects [duplicate]

This question already has answers here: Best practices for sharing tiny snippets of code across projects (12 answers) Closed 11 years ago. I’m a contractor at a large Telco where I’m usually working on several different projects at once. The VCSs I use (mainly git and mercurial) tend to make me keep the code bases […]