Questions tagged [dependencies]
The dependencies tag has no usage guidance.
1
vote
0answers
63 views
Reducing dependencies between stories & which branch (GIT) should QA's test on?
Background
We have a team of 8 devs and 1 QA (tester) and we're struggling with dependencies between tickets and causing a lot of merge headaches and/or people waiting around for the next bit of work ...
1
vote
1answer
93 views
How to model attribute dependency “inside one class” in UML class diagram?
I have the following "software reality in working code" (also no access to it):
There is a class Class1 with different attributes
AttributeA - sums up all "ordinary attributes"
EnumType
DataType
...
0
votes
1answer
93 views
Do I include system dependencies when calculating Instability?
Given the formula to calculate instability...
I = (Ce / (Ca + Ce)) with Ce = outgoing dependencies, Ca = incoming dependencies, and I = Instability,
...should I include system dependencies (such as ...
3
votes
2answers
157 views
Adding library as dependency only to use one function
Few months ago I started working in a team that develops software using Node.js. Quite often we encounter the problem that has been already solved by someone else and the solution is already available ...
0
votes
1answer
40 views
External source package - download it into the source directoy or the build directory?
I'm working on a software project, Foo, which uses the code of another project, Bar - through the use of CMake's ExternalProject mechanism.
Now, if I build Foo out of its source location - should I ...
4
votes
1answer
207 views
How to have multiple source copies of a dependency in a C# git project?
In our company, we develop information system software in C#.NET, which has client-server-module architecture. Module project does not depend directly on server/client project, but only on shared ...
1
vote
1answer
109 views
Private/Hiding dependencies between Maven modules
Given three project modules X, Y and Z on a Maven based project, and Y depends of Z and X of Y and X should not know that Y depends of Z, being this:
X -> Y
Y -> Z
X -X> Z
What is the best way to ...
1
vote
2answers
231 views
If a instance method is used in one place only, should I move that method to that place?
For example, suppose I have a ZipCode class:
public class ZipCode{
public value String value;
public boolean validateFormat(){
...
}
public otherMethod1(){
...
}...
2
votes
2answers
2k views
Why should I use foreign keys in database? [closed]
In my 10+ years of experience in the IT field, I have never used foreign keys in any of my project and I never felt the need. I did work with professional databases which had foreign keys constraints. ...
2
votes
1answer
260 views
Git Repository Structure for Interdependent Projects
Note: I've seen several other questions about repository organization, but I haven't found any with this dependency issue
Current Structure
At the moment, we have several distributions (which must ...
0
votes
3answers
146 views
Circular dependency in composition root
I have a MDI MyMDIWinForm that needs an instance of IGUIErrorHanlder for error handling, At the same time IGUIErrorHanlder depends on the MDI MyMDIWinForm for having a place from where to launch pop-...
5
votes
4answers
2k views
What is the correct way of adding third-party code into a C or C++ project?
I want to incorporate some open source libraries into my C project. This is the first time I do that, so I don't know what is the right or most common way of doing it.
I see two possible paths I can ...
6
votes
2answers
291 views
If a method in class A needs extra dependency but not every client uses it, should I move it out of A?
For example, suppose I have a class like that:
public class PlayerInfo{
public loadDataFromDB(){
//some code about DB framework
}
public string name;
public int age;
//...
-1
votes
2answers
83 views
Should I split a single class into multiple classes to reduce dependency if possible? [closed]
For example, suppose I have a class like that:
public class ABC{
private Data data;
public ABC(Data data){
this.data=data;
}
public void ab(A a,B b){
//some codes ...
1
vote
1answer
138 views
How should end-users install dependencies for software [closed]
Suppose I have an application written in C++, which uses WxWidgets (or some other library) for gui. When an end-user installs my application, how do I make sure they also install the necessary ...
2
votes
1answer
79 views
Efficient dependency management between components
Let's say my app depends on lib A that depends on B that depends on C (we are owners of them all). Now, you bump the version of C to 1.0.1 (a bug fix).
How would you propagate the change of C to the ...
7
votes
2answers
622 views
Wrapping enums from a library
I have an external dependency that provides a client library that is subject to change frequently. I'm writing a wrapper class on top of the client library so that all changes with respect to that ...
2
votes
1answer
88 views
Application build needs external “resources” to work: is this bad or… normal?
I was talking with some coworkers about the application build and we have some divergences about what each one consider a good practice or something to worry about.
I learn that a good application ...
1
vote
1answer
148 views
What are the most effective ways to manage rot in your platform's dependencies?
I have a couple of inactive Pinax sites at different versions (0.9.x and 0.7.x). These both started with two common features:
While the version of Pinax was the most recent to have a (nonempty) ...
1
vote
1answer
481 views
Is it right to have dependenties to my Viewmodel from data acces layer and view layer
Context
In my application I use the MVVM pattern. I'll have a ViewModel that can contains information of a student. This viewmodel is used to communicatie between my view and model. I use ASP.net ...
0
votes
3answers
298 views
Inject type as dependency injection, when new instances are required on each method call - How to avoid?
I have a class
public class CertificadoHandler : ICertHandler
{
Type typeAfirmaValidate;
public CertificadoHandler(){
typeAfirmaValidate = typeof(AfirmaValidateCertificate);
}
...
0
votes
1answer
163 views
Is it possible to ship libraries with code?
Is there any way to safely include libraries (either internal or external) in the directory of a project (say in a lib/ folder) when you ship or release code? As far as I can see it would be a lot ...
2
votes
3answers
433 views
How to handle common functionality that is not business logic in clean architecture
The dependency rule in Clean Architecture states that:
... that source code dependencies can only point inwards.
I now came across a problem that I cannot figure out myself.
Lets assume I have a ...
2
votes
4answers
324 views
Workarounds for putting reference into an object passed as parameter to parent
Problem
So I'm making a video game and I'm facing a design problem. I would like to pass the reference of a class being constructed to a constructor of another object and pass this other new object ...
0
votes
4answers
348 views
How to deal with recursive dependencies in OO languages?
I am designating an architecture which uses some differents objects controller which implement an abstract_controller interface.
Their goal is to encapsulate the use of some data.
Some factories are ...
10
votes
1answer
1k views
Avoid dependency version conflicts?
Any Java project that uses my jar, will almost certainly have an additional dependency on another jar, which my jar also contains as a dependancy.
Problem is, that other jar has multiple versions.
...
1
vote
3answers
578 views
Looking for a way to handle Javascript file dependencies
I'm making the transformation from being a web developer whose pages often contain loads of <script> tags to one whose pages contain modular Javascript, encapsulated in functions, etc. I'm ...
2
votes
2answers
138 views
Which of these languages is easier to package for other languages?
I want to create a project that can be added as a dependency to other projects in the following languages:
Java,
C#,
Ruby,
Python,
JavaScript (Node)
For example, I want to create a jar which can be ...
2
votes
0answers
93 views
How to consolidate multiple GitHub repos with dependencies?
I have joined a GitHub project which has many different repositories under one user name. My task is to consolidate these repositories into more logical groupings.
Some repositories have dependencies ...
0
votes
1answer
130 views
Can a low-level type depend on a high-level abstraction?
Context:
This is for a library that reads some old games formats representing 3D models.
Let's call these low-level formats PRM1, PRM2, PRM3 and PRM4.
each of these formats contains the position, ...
1
vote
1answer
97 views
Service dependencies during local development
I'm working on a system split into multiple services. Some services (and especially the front end web server) depend on other services to function. When developing these locally, do you point to the ...
1
vote
2answers
201 views
Can you automatically test if external dependencies (e.g. a website) behave as expected?
I'm in a situation where a part of my application depends on a website which I have no control over. The website might change unexpectedly and without warning, and the changes may or may not break a ...
4
votes
2answers
332 views
Semantic Version Change (to application) when Upgrading Libraries Involved
So I have an application that utilizes 14 different libraries. It's been a while since I have updated this application and one or more of the libraries involved have since experienced a major revision ...
3
votes
1answer
136 views
How to reduce dependency in communication between servers
Background: My team writers back ends, whose job is to receive input, perform calculation and either return the result to the caller or to another server down the line for additional processing. We ...
5
votes
1answer
132 views
Choosing between adding a maven dependency vs. copying the one class I need
My project can benefit from a bit of code from the Apache commons-math3 project. Specifically, my math heavy application would benefit from using the FastMath class which avoids using extremely ...
3
votes
1answer
353 views
Mutually dependant Properties in WPF
I have a WPF view which contains 2 mutually dependant properties; a change in one might trigger a change in the other. My question: How do I write code that cleanly updates both?
More specifically: I ...
1
vote
2answers
2k views
How to manage dependencies for microservices?
We are in the process of slowly splitting out a monolithic application to smaller services and one of the debates we are having is how to manage dependencies. The challenge we have is that service A ...
6
votes
1answer
2k views
Is it a good idea to manage a group of repo microservices as submodules of a master repo?
At the moment of writing I have let's say 4 micro services interoperating in order to build a bigger system.
Every microservice has its own repo.
What I'm thinking is that it would be useful to have ...
-3
votes
1answer
891 views
How to decouple a dependency
I am trying to decouple a dependency from Book Class to BookStorage, but got confused how to do this right. Can someone tell me how to decouple this correctly? Here is my code:
public interface ...
26
votes
6answers
3k views
When should dependencies be updated?
We had two major dependency-related crises with two different code bases (Android, and a Node.js web app). The Android repo needed to migrate from Flurry to Firebase, which required updating the ...
0
votes
3answers
107 views
Constructor containing class dependencies
Is it a best practice to initialize class dependencies in a constructor or should a class be initialized in the method where it is used. Let's say we have the following situation, and PriceCalcService ...
0
votes
0answers
51 views
Is data binding in an SQL RDBMS a fruitful endeavour?
I've found that a common task for web applications I've built is to react to a change in the state of the database. That is, any user interaction that affects the persistent state may change views ...
8
votes
2answers
234 views
Is it ok to have dependencies inside a class that's meant to be exchangable?
Let's say I'm having a domain-model and I want to read and save it from any persistence layer - right now it might be a json file but in the future it could be xml or a database (which might also ...
4
votes
1answer
551 views
Using private NuGet repository and Jenkins to handle dependencies
I am experimenting with using a private NuGet repository and jenkins to deal with dependencies.
Let's say we have exe A and libraries B,C and D.
Exe A depends on library B which depends on C and D.
...
1
vote
0answers
199 views
Methods for Including JavaScript Dependencies in ASP.NET MVC Application
I hope this isn't too subjective, but this question definitely doesn't belong on SO...
I'm currently writing a large ASP.NET MVC 5 application and most views have their own javascript files as to be ...
1
vote
1answer
217 views
Is the word “Dependency” used correctly in DI?
The word "Dependency" is used a lot in programming. But I think we might be using it wrong in many ways. I will use "Dependency Injection" in this post as an example. According to the Dictionary.com, ...
1
vote
0answers
62 views
SonarQube Recommends Unsynchronized Class
I adopt a software architecture where I have one single data access in the persistence layer.
Indeed, the persistence layer is a mere java application (JAR file) that I consider as an dependency, ...
3
votes
4answers
125 views
How to separate the logic of my application into a dependency when it is coupled to the structure of the data?
I am about to start prototyping a 'quiz'-like web application that tests test-scoring methodologies, and I have an interesting architectural question.
Each quiz given to a user needs to use a set ...
2
votes
2answers
61 views
How can I track down a dependency that is causing an X509TrustManager error without having the source?
I am maintaining and Android app that now suffers from an unsafe X509 TrustManager implementation. Since the app doesn't make any HTTPS calls except through dependencies, one of the dependencies is ...
8
votes
3answers
739 views
Is it better to expose or hide dependency in OOP?
Let's say I have an object A, which is too big(having too many methods and variables). So, I break it down to smaller objects. After that, I have Object A, B, and C. Obviously, Object A is from Class ...