Questions tagged [dependency-management]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
0answers
83 views

C++ dependency management across projects

We are developing a benchmarking framework in C++, with Make and CMake as build tools. The aim of the framework is to allow others who build algorithms to perform head-to-head comparison against prior ...
1
vote
1answer
136 views

Avoiding instantiating the whole application at startup when using a composition root

In a typical non-DI application, when you enter a section of code the necessary objects are constructed and when you leave it they are deconstructed. However, when doing dependency injection with a ...
4
votes
2answers
148 views

Is it a bad idea to model dependencies using a project's directory structure?

Let's say I have three classes: A, B, and C. All of these classes are simple and they create a cohesive unit. In addition, B depends on C and C depends on A. Most people would put these classes into ...
1
vote
1answer
214 views

What is the right algorithm to solve this problem?

The problem is - We have a series of boxes (A, B, C, D, ...). Each box contains bricks of different colours. For eg. Box A - red, blue Box B - blue, red, green ... and so on... and there are ...
3
votes
2answers
124 views

Critical dependency is preventing me from updating my app to latest framework version

My project relies on a specialized component which is stuck (by its configuration) to an older version of the framework my project is using. This makes updating to the latest version of the framework ...
3
votes
2answers
171 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 ...
1
vote
1answer
377 views

Best practice of c/C++ dependency management on build servers?

I develop largely in java which has maven or ant/ivy. Is there a recommended way to manage build dependencies for c++ projects? I'm setting up the build on our build server right now but the thing ...
1
vote
1answer
82 views

Managing a third party library that is used by multiple independent libraries

I am working on configuring the build environment for a C++ project that uses multiple libraries. These libraries are independent of each other, but they all depend on the same 3rd party library (...
1
vote
1answer
72 views

working with multiple libraries and versions using nuget local feed

so I am in a position where I doubt my solution to the following problem: - we are developing a wpf desktop application with c# and have a decent plugin system. This increases the libraries we have ...
0
votes
0answers
207 views

Structuring dependencies for .Net core across Nuget packages

I am working on a microservices system in c# (.Net Core) where for simplicity we place each microservice in it's own repo. Some services are very generic and some are very similar (although for ...
4
votes
3answers
3k views

Resolving circular dependency between two classes

I am trying to resolve a circular dependency between two components in my system. The Messenger component is responsible for sending and receiving messages on a web socket. The Controller component ...
67
votes
9answers
16k views

Why prefer a package manager over a library folder?

When I think about the pros and cons of a static library folder and a package manager I feel like the library folder is a better approach. Pros I see with a library folder: No need for an external ...
1
vote
0answers
282 views

How to manage multiple NuGet packages in GitHub and Artifactory?

My colleagues and I are in the process of re-architecting our system. The old system is a ASP.NET monolith using TFS for source control. The new system is made up of ASP.NET Core microservices using ...
2
votes
1answer
87 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 ...
3
votes
1answer
255 views

Multiple Git repos practices for distributed environment

In a nutshell what I need is a simple good practice for multiple (loosely coupled or tightly coupled), git repositories I would love to hear there is a good framework for that, but I have read a ...
3
votes
2answers
1k views

“Crossing Boundaries” in Clean Architecture

I am a layman without any programming-like education but I spent the better part of my free time to get into programming bots for some games in first AutoIt and then C++. I was introduced to ...
0
votes
3answers
425 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); } ...
-1
votes
3answers
253 views

Refactoring - Resolve dependencies between legacy code used by third parties

I am developing two libraries in .Net Firs one it's a library with core functionality (named it Library.Core.dll) Let's focus in User class public class User { //set of constructors and ...
4
votes
1answer
6k views

Singleton with dependency injection ,is that a good practice in some cases?

It's a good idea to have a Singleton implementation with dependency injection? I have some classes that performs some heavy tasks on instantiation (related to database loading). I would like to use ...
1
vote
2answers
2k views

Remove circular dependency

I have 2 classes that have dependencies. public class AuditManager { //set of methods public static AuditManager Singleton= new AuditManager(); public int AuditEvent(int x){ ...
0
votes
1answer
212 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
166 views

Common libraries in build chain

Like many (most ?) people, we have multiple "common" libraries managing various things (business objects, utilities, external libraries...) for multiple projects (web service, admin/users site, ...
2
votes
1answer
111 views

Organizing code to minimize repetition and external references

I am struggling with how to organize external references in a C# program in order to minimize code repetition. I have application "A1" for which I want to use Microsoft's Unity IoC/Dependency ...
1
vote
1answer
204 views

Where is the composition root for a class library's internal classes?

How do we manage dependency injection in class libraries? Given the following class structure, we would like to inject an instance of Bar into Foo, and we would rather not make this the client's ...
2
votes
1answer
143 views

Automatically update and test npm dependencies

I would like to automate the following sequence of events; A new version of Angular is released on Github 'Something' triggers causing all our angular applications to update their npm dependencies ...
2
votes
1answer
162 views

Design/Architecture for passing cross-cutting parameters via constructors at composition roots?

We have an ASP.NET MVC application and a bunch of libraries that are used by the application. There are cross-cutting concerns and dependencies like loggers, repositories, user tokens etc that almost ...
0
votes
1answer
43 views

Using business objects with composite ID from a different module

We have two modules: D and S. S has a Web Service interface, which is being used by D. S's responsibility is managing a domain of objects held in a folder-like structure. So, it contains a method ...
30
votes
6answers
4k 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 ...
10
votes
2answers
3k views

How to properly manage dependencies for C/C++ project?

I have a project which uses 3-4 different open source C/C++ libraries. I built these libraries for several platforms and checked in include files and static libs for different platforms in my project....
3
votes
1answer
1k views

What are common Java dependency management strategies?

I am currently preparing a presentation for my software engineering class, in which I want to present the idea of package dependency management in Java on the example of "radial encapsulation" (http://...
3
votes
1answer
611 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. ...
5
votes
2answers
4k views

For which problems are dependency exclusions sensible solutions?

I've seen a few build tools in my career, and they've all had their quirks. I'm just now looking into Maven, and came across the idea of "dependency exclusions" for the first time. I honestly don't ...
6
votes
2answers
2k views

Policies on NuGet dependencies versions when developing a library

I'm building a C# library and have some dependencies through NuGet packages. I'm trying to minimise entry barrier and using the very early versions of dependency packages. For example I use Newtonsoft....
2
votes
2answers
683 views

How to keep track of maven dependency updates in projects?

How do you keep track of maven dependency versions? Let's say you are using version 1.0.5 of an library. <dependency> <groupId>groupIdName</groupId> <artifactId>...
1
vote
2answers
164 views

Is cache an optional dependency?

Recently, one of my colleagues stated that the cache should always be required dependency. We should require it in non-null constructor parameter. And we can't use null-object pattern with it. How to ...
3
votes
2answers
2k views

Eliminating cyclic dependency

I want to avoid cyclic dependency in this schema: DbRepository needs IUserDbEntityFactory to create User entity which needs IUserPublishedInfoInitializer to create UserPublishedInfo on request. And ...
2
votes
2answers
68 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 ...
3
votes
2answers
173 views

Detecting breaking changes when modifying shared code

Currently we have about 20 solutions. The majority of these have multiple projects, including share utils projects, data access, etc. We've had a few problems where a contractor changed something in ...
2
votes
0answers
202 views

Is Nested Structure with Spread Responsibilities Not Logical?

Given the following code snippet in a Laravel Controller: $this->userRepository->saveByProject( $this->fileRepository->saveByProject( $this->metricRepository->...
2
votes
2answers
517 views

Why does the development team of IntelliJ IDEA‎ store its dependencies as jars (e.g. JUnit) inside their cvs?

The very popular IntelliJ IDEA‎ has currently saved a lot of dependencies as actual jar files in their git repository e.g.JUnit, which I don't understand. Build tools like Maven provide excellent ...
1
vote
1answer
353 views

How does maven internally manage package dependency?

Can some let me know how does maven internally manages package dependency? Is there any architecture diagram available on the net for the same? I also asked this in Quora and maven user mailing list ...
0
votes
1answer
52 views

Should I add library to my project requirements if this library is already required by other requirement? [duplicate]

Let's say I have some library "foo" and I have it listed as dependency of my project. For example in Python I have requirements file saying foo==1.0 foo library needs "bar" library and it lists it ...
3
votes
2answers
350 views

Revisiting Fowler's “Public versus Published Interfaces” article with regard to versioning and microservices

In this short article Public versus Published Interfaces from 2002, Martin Fowler distinguishes between easily changeable "public interfaces" and harder to change "published interfaces": The key ...
11
votes
2answers
815 views

Is it better to rely on transitive dependencies or explicitly declare them?

I have a project structure like this: My Project - Other Team's Project -Third Party Dependency My Project requires Other Team's Project to function, and both My Project and Other Team's ...
3
votes
1answer
378 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 ...
1
vote
1answer
520 views

How to map references in different VB.Net solutions

I just come to a small company. There are more than 500 solutions in different VS.Net versions and even VB 6.0 projects. They share several dll. Is there a way to map relation between each program? ...
10
votes
3answers
6k views

Using Interfaces for Loosely Coupled Code

Background I have a project that depends on the usage of a certain type of hardware device, while it doesn't really matter who makes that hardware device as long as it does what I need it to do. With ...
6
votes
2answers
7k views

Communication between microservices - distinguishing internal calls safely

I am rearchitecturing and rewriting my monolithic BaaS solution into microservices regarding to scalability and single responsibility rules. Due to the internal dependencies, services are placed on ...
9
votes
1answer
3k views

Node.js dependencies weigh too much

Recently I started playing with node.js. Now, every node tutorial out there states that you should start with npm init and then, say you want some standard server framework, say you choose express: ...
1
vote
1answer
76 views

What Strategy to Employ when Updating a Dependency [closed]

I am working on an application which works with an old version of a dependency. Due to a recent change request, there is a need to update to a newer version. I have the option of not upgrading to the ...