Questions tagged [dependencies]

Dependency is a broad software engineering term used to refer to when a piece of software relies on another one. A requirement & prerequisite that must be fulfilled or installed before your code or software can function.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
39 views

How to handle dependencies between objects/components

Im currently working on a college project on the simulation of magnetic interactions of particles, see physical simulation: design thoughts. Right now im starting to code my system according to this ...
  • 27
0 votes
2 answers
74 views

How to handle dependencies between microservices all called within one large service

We are working on a suite of Python 'services' each of which is basically an application that does some calculations based on a domain (data) model and returns the results. These services are designed ...
0 votes
0 answers
60 views

Unit testing with dependency on Word COM objects: Wrappers & interfaces vs document as an embedded resource

We are developing Word Addins that interact with elements in Word documents. To make it testable, my approach has been to use interfaces and wrappers for UI elements, and then provide mock alternative ...
  • 111
1 vote
1 answer
112 views

What are the benefits of keeping npm packages up-to-date? [closed]

The company I work for is maintaining and developing a web application that uses many Node.js packages. A lot of these packages are really outdated. I can intuitively understand that it is good to ...
1 vote
0 answers
26 views

Peer dependencies vs. (re-)exporting dependencies in abstract hierarchy (framework)

Say I have a module storage-abstract, which contains abstract logic (framework) for storing key/values. I also have some (arbitrarily many) implementations of this abstraction, each in a separate ...
  • 129
1 vote
1 answer
105 views

What to use in B's configuration: A or A's configuration?

When I have a class A in a module amod as follows // module amod type AConfig = { x: number; // ... }; class A { constructor(public config: AConfig) {} // ... } export {A, type AConfig} ...
  • 129
0 votes
1 answer
141 views

Good class design: dependency vs duplication? [closed]

Let's say we have a class( My_Func_Dec ) that models a 'function header declaration' as it might appear in a .h file. const std::string func1 ( const std::string& arg1_, const std::string& ...
  • 9
-1 votes
1 answer
31 views

How to model multiple requirement scenario

I want to store and analyze university course requirements. Lets say, students to register for ABC123 course following requirements should satisfy. Must pass CBA321 Should be taken with XYZ123 Must ...
1 vote
2 answers
101 views

Dependency resolution of tasks which have crontab information

I want to illustrate my problem statement with a use case. I am building a trading system that acts as a container for deploying trading strategies. The trading strategy comprises dependent tasks. Let'...
3 votes
0 answers
86 views

How to structure python modules/packages according to dependecy inversion

If I am working on a project, say it has this file structure: car/ body/ __init__.py doors.py bonnet.py engine/ cyclinderhead/ __init__.py pistons.py ...
3 votes
1 answer
550 views

External dependencies in Domain Driven Design

The application I am working on is written in TypeScript and I need to manipulate DateTime. I always avoid doing date/time calculations manually, because they have a lot of edge-cases. The Date class ...
1 vote
2 answers
351 views

C# WPF - Is it acceptable to have a dependency to PresentationCore.dll in domain layer?

We are working on a .NET desktop application written in C# and WPF, that communicates with a REST API server. The software has a layered design and consists of multiple projects. One project for the ...
3 votes
0 answers
104 views

How to package and distribute a Tensorflow GPU desktop application

I am developing a desktop application that utilises Tensorflow. The aim of the application is to let users easily train a given model and use it for inference within the app. I want to support ...
  • 1,657
3 votes
3 answers
260 views

Is there merit to keeping packages/dependencies in a legacy project up to date?

I have been assigned a ticket to update all node packages and dependencies in a react project to the latest possible version without breaking the application monolith as it is now; no further ...
0 votes
2 answers
153 views

Use deprecated library or copy the code I need from it into my codebase?

I need some code from some deprecated libraries, one small class (150 lines) and two functions (24 lines). The libraries are part of larger set that we use a couple of but both are being deprecated. ...
  • 111
1 vote
2 answers
131 views

Git dynamic merge branch

I'm currently using git to manage a "modpack" for a game, the modpack is made of several smaller mods, each of which is a branch. Some mods may also depend on, potentially multiple, other ...
3 votes
3 answers
567 views

Is there any performance hit associated by the definition of a static constructor or due to availability of it?

This question is mostly related to the way language implementer do implements static class initalization (pretty specialized question). It is for curiosity and also to potentially improve my code to ...
1 vote
2 answers
145 views

Anemic Domain Model VS coupling and dependencies- design conflict - need an Object oriented advice

on design stage , after finding my main objects , I am always find my self writing "manager" or "controllers" classes in order to handle the connection between them. some of the ...
-1 votes
1 answer
89 views

How can I cleanly express these dependencies?

Consider this hypothetical scenario. I have a user form that has a collection of controls that are made available/unavailable based on certain criteria. One important criterion is product type. On ...
  • 147
0 votes
4 answers
228 views

What is a suitable way to handle dependent instance variables?

In particular I am wondering if it is acceptable to have an instance variable that can be calculated by other instance variables (i.e. during the creation of the object)? On one hand I see the data ...
  • 67
3 votes
3 answers
496 views

Is checking dependencies into source control worth the cost?

For the last several years, I've been checking all dependencies of my team's nodejs project into source control. At first, we stored the archives of all dependencies using yarn v1's offline mirror, ...
-2 votes
1 answer
113 views

Achieving loose coupling

My scenario involves the following classes: I have three types of Peer that creates a RegistryType instance because its methods are needed. Same for Identity class. Each PeerType need 0 or all the ...
5 votes
3 answers
643 views

Should unit tests assert the inputs to dependencies?

tl;dr: Is it a unit test or an integration test, to ensure that the inputs to a mocked dependency were correct? More details: Suppose I'm given a requirement like this: Create a function that returns ...
  • 295
-1 votes
1 answer
278 views

How to manage microservice dependencies in local development?

I'm currently developing two microservices to be deployed on kubernetes, but already facing problems to onboard another person to work on a feature in microservice A. The dependencies are as follows ...
  • 157
4 votes
3 answers
258 views

What do you call a dependency that "leaks" to client code? What do you call one that doesn't?

Let's say you have a library StuffDoer which calls an external library MagicWizard to do its stuff. Then you add a reference to StuffDoer in UsefulApp. In some scenarios, referencing StuffDoer ...
  • 491
0 votes
0 answers
191 views

How can I use the Factory pattern and expose my factories to consuming code without introducing transitive dependencies on the constructed types?

I have a C# class called FileTransferManager. Previously it took some parameters such as a username and password to connect to a FTP server. However now I have an additional requirement to support ...
  • 491
2 votes
1 answer
139 views

What is the relation between edges in a dependency graph and the program call to create a vertex?

A Makefile is a representation of a depency graph. The files are the vertices, for example somefunctions.h, somefunctions.c and myprogram.c are the "input" vertices (is there a formal word ...
  • 147
2 votes
1 answer
210 views

How much of the frontend functionality should be mirrored in the API?

QA here. Relatively new to API testing (manual). Thought I'd turn to the experts to try and figure out if my expectations around how much functionality should sit in the API are more or less valid. ...
  • 39
0 votes
0 answers
36 views

Dependency Injector and Collections

I have been searching for an answer in this topic but I haven’t been able to find a satisfactory one like in other topics, where the consensus is solid. The situation To keep things simple: I am ...
1 vote
1 answer
1k views

May I and should I include my dependencies in the jar i publish online?

I'm developing a java project that I'd eventually like to publish and make open source. To make a executable jar file I use the maven-assembly-plugin. This includes my dependencies in the jar, which ...
3 votes
1 answer
347 views

Method call order dependency

I have two camera devices that are able to find a specific hardware illuminated point in an image, as well as measuring the physical distance to the surface (and some more stuff I chose to leave out, ...
  • 173
39 votes
8 answers
9k views

Is it ok copying code from one application to another, both belonging to the same repository, to keep them independent?

Given a repository which contains two different applications A and B (e.g. bootloader and RTOS), is it ok to copy source code from A to B in order to avoid dependencies (include's, adding A source ...
  • 615
-1 votes
1 answer
48 views

Clean approach for designing data related dependencies between different systems

I have the following situation in my current project: There is a system A which exports data, that will be consumed by system B. System A is something like a webshop which exports data like orders to ...
  • 316
0 votes
2 answers
387 views

Why are minor versions of dependencies pinned, despite possibly having bugs?

I am an amateur developper and I deploy my (home oriented) code to containers. This is usually Python and JavaScript. JavaScript, when saving dependencies for a further npm install, will pin the ...
  • 1,551
-2 votes
1 answer
1k views

Simple circular dependency between three classes

I have this basic design with a circular dependency. Is there any solution for this? The problem is that a Machine cannot be created if a Model for that Team has been submitted.
2 votes
1 answer
239 views

Is there a convenient way to include only a particular snapshot of a git repository inside another project?

Update: I think I may have found one possible solution for this question: git worktree. I'll have to investigate its exact workings a bit more, because I'm not entirely sure yet if it can do what I ...
  • 171
-2 votes
2 answers
94 views

How to abstract my development environment from external depencies

I am trying to build an API server. For the register operation I send an email to the given email address and wait for user to activate his account by using the code in the email that i sent. I use ...
  • 243
3 votes
3 answers
333 views

Layered architecture horizontal dependencies

I'm working on a spring boot REST service. It's divided into three layers: REST controllers, services, persistence/DAO. We have multiple services and persistence repositories. We have the following ...
  • 39
-3 votes
1 answer
337 views

how to manage build and deployments from Multi repos using versions

Consider you have two repos A, B. Let say repo A has some infrastructure code - not needed to be updated always- but it has the code for the service we want to deploy as infra. On the other hand, ...
  • 17
1 vote
0 answers
136 views

Should class dependencies be organized in tree structure?

Is it doable, desirable to organize project classes, dependencies in Tree/DAG structure? To be more specific. In applications (not libraries) we have always some entry point, am I right? Some main ...
  • 117
0 votes
2 answers
781 views

What's the correct Git flow to develop on two independent features + one feature that relies on both?

I'm trying to find the correct flow to manage this kind of development, where A and B are two independent features, and C is a third feature that relies on A and B. An obvious approach would be to ...
  • 133
1 vote
1 answer
241 views

Backward compatibility testing

As a creator of a software library, how can I verify backward compatibility with earlier versions? When using a dependency management (here: Maven), multiple versions of my dependency could be (...
  • 135
44 votes
5 answers
15k views

What is the difference between a library and a dependency?

In this docker beginner video its explained, that different stacks may depend on different libraries and dependencies and that this can be handled with Docker. However, I don't get what the ...
  • 567
3 votes
1 answer
125 views

How do projects manage security with so many dependencies in open source projects?

Some node.js libraries (just as an example) can pull in literally hundreds of dependencies. Some of these dependencies are small packages that only have one contributor. Often times the contributor ...
5 votes
2 answers
528 views

Where can I put project dependencies

I've just finished my studies in Computer Science and now I'm working. The problem is I'm the only computer scientist in my company and I'm probably taking a lot of bad habits. I would like to correct ...
1 vote
2 answers
73 views

Should I pull to another job workspace or should I push from it the 2nd job dependencies?

I have a question regarding CI/CD procedure. I do have 2 Jenkins jobs, the 1st one will build a binary file who is a dependency to the 2nd job build successfully. Should I push this binary from 1st ...
  • 111
2 votes
2 answers
632 views

Risk of NuGet package adding new reference DLL

Had an interesting discussion with our architect. It was related to replacing a plain DLL reference with a NuGet package. His worry was "If it is possible for single NuGet package to add multiple DLL ...
  • 35.9k
2 votes
1 answer
48 views

Should I update the major version of a consumer package if one of its critical dependencies has a major update?

This is a scenario I have seen: I have a shared library with code that fetches data from an api. Let's call this ApiProvider. Currently this ApiProvider is in version 1.1.1 and is currently pointing ...
1 vote
2 answers
134 views

How to show UML component load/discovery and realization relationships

In a UML component diagram I want to show two components (among others). One is the core component that loads contents (classes) from the other. It's much like a testframework loading unit tests/test ...
  • 41
0 votes
1 answer
410 views

Which tree or graph structure to solve this problem?

I have the following interface, it defines a loadable resource that depends on other resources that should be loaded first so it can load itself: It does its job, the Find method allowing to search ...
  • 727

1
2 3 4 5