Questions tagged [common-code]
17 questions
4
votes
6 answers
When does creating a library become worth it?
I have been developing iOS apps for about a year. In that time, I have developed a fair number of classes that I frequently recycle from app to app. For example, I have a bunch of classes related to making it easier to write table views to control…

William Jockusch
- 26,513
- 49
- 182
- 323
2
votes
4 answers
Including one Xcode project in another -- linker errors
I am trying to do this, and running into problems. The parent project needs to access the class SettingsViewController from the child project. I have put the child project path into my header search paths. Everything compiles OK, but I get linker…

William Jockusch
- 26,513
- 49
- 182
- 323
2
votes
3 answers
How to distinguish files of two separate programs with common file
I've project where I need to distinguish files belongs to linux daemon (witten in C) and simple linux program (written in C++). Those two projects used 2 shared files (helpers_functions). Daemon and program has different logging system. Daemon write…

maslokarol
- 43
- 7
2
votes
1 answer
Git - Branching and a shared code base
Well, till now, I used common git operations like push, pull, commit and clone.
But now, I need a git repo with different branches to test certain features but all these features require the same library which should be included in the repo.…

Henrik P. Hessel
- 36,243
- 17
- 80
- 100
2
votes
6 answers
C++ refactor common code with one different statement
I have two methods f(vector& x, ....) and g(DBConn& x, ....)
where the (....) parameters are all identical.
The code inside the two methods are completely identical except for one statement
where we do different actions based on the type of…

user231536
- 2,661
- 4
- 33
- 45
2
votes
1 answer
Common code can be used in C and Javascript
For the project, i will recieve data from the server(May be JSON/XML), and there are two individual client application which will process the data to do the similar things. One application will be a web based and the logic will write in JavaScipt,…

user1360099
- 35
- 1
1
vote
0 answers
How to import specific packages from common/shared folder?
I am relatively new to python and am trying to find a good way to share common code amongst multiple projects.
Say I have folder structure below and both Proj1/Proj2 have their own environments (left out for simplification):
/Development
…

russ_user123
- 11
- 1
1
vote
2 answers
.NET 2 ASMX Web Service - Invoked via .NET 3.5 Service Reference - Common Class Reuse
I have a .NET 2 web service with a single web method that looks something like this:
[WebMethod]
public Common.foobar DoSomething(Common.foobar foo)
The foobar class is defined in a common .NET 2 assembly that is also available (as a project…

MrEyes
- 13,059
- 10
- 48
- 68
1
vote
1 answer
Google Vision API conflict with android commons-codec
I was just trying to add google Vision API in my android app in java. As a part that, When I am trying convert a bitmap into image , I am getting one exception as follows...
java.lang.NoSuchMethodError: No static method…

Biswajit
- 323
- 4
- 15
1
vote
1 answer
Maven, Microservices, (Common) Modules
The problem I encountered is pretty standard: I need to have some common code base between micro-services despite the fact that this approach is discouraged as I've heard. At the moment I have common code as separate module that's built into jar and…

Aleksandr Kravets
- 5,750
- 7
- 53
- 72
1
vote
1 answer
Is it possible to copy a div from a website to another?
is it possible to copy a div from a site to another? Managing many websites I need to copy some static portions of code (e.g. a common footer) without having to go on every website and change it.
I was looking to use jQuery, I know about the…

tabris963
- 110
- 2
- 14
1
vote
0 answers
Having common code for both phone and tablet Android
For our project we our supporting from android 2.3 onward on phone and as well as for tablets 3.0 onward.
I would like to have common code base and UI for both. But found that from 3.0 onward. some classes like fragments, loaders are support…

Mamatha
- 53
- 1
- 6
0
votes
2 answers
Common Groovy Scripts at the Project Level in ReadyAPI
Looking for a way to have common groovy scripts at a project level.
I see that one can have common scripts across ReadyAPI as a whole, but I'm looking for something on the project level.
There's lots of shared groovy code so we'd prefer having it…

Tbuddy
- 73
- 5
0
votes
1 answer
International iOS App - common code base with different versions
We have an iOS App which has millions of users in the US and needs to be Internationalized and made available in 11 different countries (many with a different language). Have worked out all technical details for exposing hiding features as…

CoolDocMan
- 637
- 7
- 29
0
votes
2 answers
Common class for singleton
I am currently writing a program in which about 12 classes need to be a singleton, due to that they are using a messaging service which needs different types. My question is, instead of basically copy and pasting the singleton code for each for…

jgr208
- 2,896
- 9
- 36
- 64