Relative Content

Tag Archive for code-reuse

What’s a DRY alternative to c++ header files? [duplicate]

This question already has an answer here: How to reuse c++ code? [closed] (1 answer) Closed 10 years ago. In c++, is there any other way, besides header files, to use a function defined in file A.cpp, inside file B.cpp that would be considered good programming practice? c++ code-reuse modules 4 With your restriction of […]

What’s a DRY alternative to c++ header files? [duplicate]

This question already has an answer here: How to reuse c++ code? [closed] (1 answer) Closed 10 years ago. In c++, is there any other way, besides header files, to use a function defined in file A.cpp, inside file B.cpp that would be considered good programming practice? c++ code-reuse modules 4 With your restriction of […]

What’s a DRY alternative to c++ header files? [duplicate]

This question already has an answer here: How to reuse c++ code? [closed] (1 answer) Closed 10 years ago. In c++, is there any other way, besides header files, to use a function defined in file A.cpp, inside file B.cpp that would be considered good programming practice? c++ code-reuse modules 4 With your restriction of […]

What’s a DRY alternative to c++ header files? [duplicate]

This question already has an answer here: How to reuse c++ code? [closed] (1 answer) Closed 10 years ago. In c++, is there any other way, besides header files, to use a function defined in file A.cpp, inside file B.cpp that would be considered good programming practice? c++ code-reuse modules 4 With your restriction of […]

How can I re-use object from another project?

I have a first project has a feature to viewing, inserting and updating an employee record, with this possibly I will create a java class for the UI and another for the database connection with commands for viewing, inserting and updating a record.

How do I manage a JavaScript library with TFS?

I know that I can share files between Visual Studio projects using linked files and assemblies using project references. Is there a good approach for JavaScripts? I’d rather not use linked files since it doesn’t allow projects to have their own version of the script.

How do you wrestle the DRY principle with configs?

For instance, lets say we have an nginx config pointing at foo1, foo2, and foo3, as well as a haproxy config pointing at foo1, foo2, and foo3, and finally, a deployment tool pointing at the same respective servers.