Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dependencies]

The tag has no usage guidance.

4
votes
1answer
186 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
46 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 ...
0
votes
2answers
219 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(){ ... }...
1
vote
2answers
607 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
152 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
121 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-...
4
votes
4answers
1k 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
286 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
78 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
134 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
72 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
397 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
86 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
143 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
353 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
183 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
138 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
389 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
294 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
300 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
994 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
513 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
137 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
86 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
122 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
184 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
223 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
119 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
114 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
274 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
686 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 ...
25
votes
6answers
2k 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
103 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
50 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
232 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
511 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
181 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
205 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, ...
0
votes
0answers
58 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
121 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
707 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 ...
1
vote
2answers
328 views

Will it be okay for an interface to take a dependency on an interface in this situation?

Background I have an interface defined for a circular-buffer called ICircularBuffer in a separate project. This ICircularBuffer is something that we use all over the place, so it resides in the ...
3
votes
1answer
304 views

What's a good way to manage my code's dependencies on libraries without releases?

I'm writing this small utility, FOSS but not intended for wide deployment, packaging in OS distributions etc. My utility depends on several libraries - some are header-only (it's C++), some are ...
13
votes
3answers
325 views

What to do when critical functionality of a dependency is broken and impedes development?

Yesterday I was working on a Rails 5 API project which is using the acts-as-taggable-on library to allow things to have tags (like questions on SE). Rails 5 is in alpha support right now. There is ...
2
votes
2answers
859 views

Conditionally show questions based on previous answers in a database driven survey

I'm trying to design survey-type application that uses user responses to determine what the next question should be. For simplicity's sake, question types can be either combo boxes (they have a set ...
0
votes
1answer
72 views

Sdk building, declare dependencies inside the assembly or use external?

At my company, we're building an SDK consisting of a number of assemblies. For example, we deliver an assembly called Company.Platform.Security that contains the implementation of our authorization ...