Skip to main content

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
0 votes
2 answers
104 views

Terminology to indicate that a software component does not seem to belong inside a library

What is the standard or commonly used terminology used in software engineering circles for this scenario that uses "widgets" and "FFT" as a fictitious concrete example: I have a ...
bgoodr's user avatar
  • 119
1 vote
1 answer
268 views

How small is too small for a library or package?

Background I came across this question about whether few big libraries, or many small libraries is better. I tend to agree with the accepted answer, that many small libraries is better. However, since ...
Tyler's user avatar
  • 31
2 votes
4 answers
285 views

How would I go about writing my own implementation of Win32 functions?

So I am currently coding a C program for Windows and come across a little bit of a problem. I've been compiling using the mingw-w64 toolchain. In my program, I am attempting to remove as many ...
baron's user avatar
  • 55
1 vote
1 answer
136 views

How should projects that interact with or depend upon external binaries handle version specific failures?

I have encountered this scenario twice recently, in two different projects and languages: A python project defined an is_interactive() function that used os.isatty() to know whether it could actively ...
Rob's user avatar
  • 380
2 votes
4 answers
213 views

How to avoid circular dependency in my scenario?

For example, I have a Business Intelligence (BI) microservice, it reads data from other microservices, and displays the data as a bar chart or some other styles. My problem is, the BI microservice ...
NingLee's user avatar
  • 230
1 vote
1 answer
259 views

What techniques can help me identifying unused dependencies for a production build?

I have certain dependencies in my project like sequelize-auto which are not required in production, since we only need to generate the models once during development. Even if we make changes to the ...
SelloBello106's user avatar
-2 votes
1 answer
323 views

Decoupling thirty dependencies for projects that reference each other in a sequence

I am working on a simple interface to SharePoint via Graph API. I have created a project that references Azure.Core, Azure.Identity, Microsoft.Graph, and other dependencies required to make calls via ...
Sigmundur's user avatar
  • 105
7 votes
1 answer
1k views

Matching dependency versions across multiple Python projects

I have about 60 repos containing Python packages, currently using setuptools in a setup.py (run via pip install) to manage third-party dependencies. Most of these packages need to be installed on a ...
Jason C's user avatar
  • 465
1 vote
1 answer
136 views

Open source projects, SBOMs and security

I was just reading a StackOverflow question here, about extracting the version number from a node package.json file. And the simple 'read in the json and access the property in your build tool' got ...
zola25's user avatar
  • 131
7 votes
3 answers
2k views

Writing a separate package vs copy pasting small amount of reused code

I have two npm packages that build on top of our core software platform. Their core functionality is mostly different, except for how they serialize data. This is and will predictably stay identical ...
Ahri's user avatar
  • 279
-1 votes
3 answers
314 views

Connection between code coverage and defects per KLOC

Most of the articles I read state that the average number of defects per KLOC is 10-15 (most of the data seems to come from Microsoft). How does that number correlate with code coverage? If my project ...
ihi's user avatar
  • 9
-1 votes
1 answer
41 views

How to use versions-maven-plugin with shared contracts?

Context: We have Java maven Multi Microservices Project. The structure for each microservice is a contracts package and a service package. When we update a version of a specific microservice the ...
shanif's user avatar
  • 101
2 votes
3 answers
558 views

Why is the dependency flow in the onion architecture are the way they are?

Why does the infrastructure layer depend on the application layer, and the application layer depend on the domain layer in the onion architecture ? In its definition, the dependency flow inwards. But ...
EEAH's user avatar
  • 174
0 votes
1 answer
191 views

Dependencies traveling through hierarchical viewmodels

Often I want to open a new window from within some view. I see opening a window as view logic. So I don't want code in my viewmodel that creates/opens/changes Windows or anything else that interacts ...
user2190492's user avatar
0 votes
1 answer
97 views

How to avoide too many dependencies when flow use many call to external vendor

I'm trying to design mediator micro-service which will have around 20-30 different http requests to an external vendor. My general high level thoughs are on creating a BaseService class which will ...
YanivHer's user avatar
-1 votes
1 answer
109 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 ...
Meck3l's user avatar
  • 17
1 vote
3 answers
1k 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 ...
Mathias A.'s user avatar
0 votes
0 answers
65 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 ...
Peter Dongan's user avatar
1 vote
1 answer
1k 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 ...
Akaisteph7's user avatar
1 vote
0 answers
41 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 ...
Remirror's user avatar
  • 129
1 vote
1 answer
108 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} ...
Remirror's user avatar
  • 129
0 votes
1 answer
181 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& ...
Mote's user avatar
  • 9
-1 votes
1 answer
33 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 ...
Sachith Muhandiram's user avatar
1 vote
2 answers
160 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'...
m0hithreddy's user avatar
3 votes
0 answers
99 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 ...
run_the_race's user avatar
5 votes
1 answer
1k 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 ...
Andrey Tsarev's user avatar
1 vote
2 answers
671 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 ...
user2190492's user avatar
3 votes
0 answers
136 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 ...
turnip's user avatar
  • 1,677
3 votes
3 answers
482 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 ...
David Gamboa's user avatar
0 votes
2 answers
341 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. ...
cactus's user avatar
  • 111
1 vote
2 answers
180 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 ...
Filipe Rodrigues's user avatar
3 votes
3 answers
1k 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 ...
Eric Ouellet's user avatar
1 vote
2 answers
245 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 ...
user3717741's user avatar
-1 votes
1 answer
91 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 ...
amarsha4's user avatar
  • 176
0 votes
4 answers
268 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 ...
MaxxOr's user avatar
  • 67
3 votes
3 answers
626 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, ...
SirensOfTitan's user avatar
-2 votes
1 answer
176 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 ...
Antonio Santoro's user avatar
5 votes
3 answers
1k 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 ...
George T's user avatar
  • 295
4 votes
3 answers
382 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 ...
ekolis's user avatar
  • 521
0 votes
0 answers
311 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 ...
ekolis's user avatar
  • 521
2 votes
1 answer
185 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 ...
Psirus's user avatar
  • 147
2 votes
1 answer
303 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. ...
Jasmine's user avatar
  • 39
0 votes
0 answers
58 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 ...
Demolition Architect's user avatar
0 votes
1 answer
4k 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 ...
Jojomatik's user avatar
3 votes
1 answer
640 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, ...
Mattias's user avatar
  • 173
39 votes
8 answers
10k 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 ...
Dan's user avatar
  • 615
-1 votes
1 answer
51 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 ...
Jim Panse's user avatar
  • 398
0 votes
2 answers
606 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 ...
WoJ's user avatar
  • 1,593
-2 votes
1 answer
2k 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.
Antonio Santoro's user avatar
2 votes
1 answer
436 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 ...
Codifier's user avatar
  • 171

1
2 3 4 5