Analyzing the dependencies between components of software systems - classes and interfaces, header files, method or function calls, and external libraries.
Questions tagged [dependency-analysis]
21 questions
76
votes
5 answers
What are the benefits of using Dependency Injection and IoC Containers?
I'm planning to do a talk on Dependency Injection and IoC Containers, and I'm looking for some good arguments for using it.
What are the most important benefits of using this technique, and these tools?

Andy Lowry
- 2,392
- 2
- 19
- 16
52
votes
3 answers
How to solve circular dependency?
I have three classes that are circular dependant to each other:
TestExecuter execute requests of TestScenario and save a report file using ReportGenerator class.
So:
TestExecuter depends on ReportGenerator to generate the report
ReportGenerator…

sabrina2020
- 687
- 1
- 5
- 7
26
votes
8 answers
Is there a programming paradigm that promotes making dependencies extremely obvious to other programmers?
I work in a Data Warehouse that sources multiple systems via many streams and layers with maze-like dependencies linking various artifacts. Pretty much every day I run into situations like this: I run something, it doesn't work, I go through loads…

Christs_Chin
- 369
- 2
- 4
14
votes
5 answers
How to avoid bidirectional class and module dependencies
To give some context, I'm using python. We have the following package structure:
/package_name
/request.py # defines class Request
/response.py # defines class Response
Let also assume that we have a bidirectional dependency at class and…

MLguy
- 301
- 1
- 3
- 7
12
votes
5 answers
Cyclic dependencies in microservices
Just wanted to know if cyclic dependency is something that one should avoid in microservice design.
For example, let's say we have a simple web store that sells fruit.
It could have:
Account Service - where all information about accounts is…

MicroMaster
- 137
- 1
- 4
9
votes
4 answers
How do you approach transitive dependency conflicts that are only known at run-time?
How do you normally approach transitive dependency issues that occur at run-time in large software projects?
For the past three weeks, I have been trying to start a component of a large piece of software within another component of the software,…

Tyler
- 191
- 6
7
votes
3 answers
Dependency analysis for tests
Google built a testing system that can infer which tests need to be run after a change. In their own words:
... we built a
continuous integration system that
uses dependency analysis to determine
all the tests a change transitively
affects and then…

jbochi
- 374
- 2
- 8
6
votes
1 answer
What is dependency Analysis and how is it done?
I saw this in a job posting for an ASP.net developer.
"An understanding of basic software development practices such as ...and Dependency Analysis."
I read the wikipedia entry for Dependency Analysis and understand that it basically means one thing…

Joshua Slocum
- 191
- 2
- 4
4
votes
1 answer
Dependency analysis from C# code through to database tables/columns
I'm looking for a tool to do system wide dependency analysis in C# code and SQL Server databases. It's looking like the only tool available that does this might be CAST (CAST software), which is expensive and it does lots more besides that I don't…
fpdave
4
votes
4 answers
Justification for bidirectional relationship
I typically try and avoid bidirectional relationships at all costs. Recently I've been trying to follow a more domain centric design philosophy and I'm looking for advice in the best way to solve a specific problem.
I am implementing a basic 2d…

Pace
- 571
- 6
- 17
3
votes
1 answer
How to calculate number of indirect dependencies of a class?
Most of the static code analysis tools which analyse class dependencies generate dependency pairs of classes where each pair represents a direct dependency between two classes. Given those dependency pairs, it is straight forward to calculate number…

Heramb Deware
- 33
- 3
3
votes
0 answers
How to track dependencies when a reported bug affects multiple products containing shared components?
If you have multiple products that contain some shared components, how do you track dependencies to work out which other products a bug affects?
For example, product A, B and C use a CRC library module. A bug is found and filed in the module in…

JeffV
- 415
- 4
- 10
3
votes
1 answer
How to find method and class usages along git repositories
We got some code in a git repository that's used along different projects (with git different repositories), the problem is that we got now so many different projects that's difficult to track which projects will be affected and how when there is a…

Fgblanch
- 161
- 1
- 5
2
votes
1 answer
Should a library or an application exclude logging libraries and include SLF4J bridges?
The SLF4J documentation says that it's best practice for libraries to not include a concrete logging binding.
I'm wondering what to do about transitive dependencies though.
Let's say my library A depends on another library B which depends on…

Lars Francke
- 123
- 4
2
votes
2 answers
Is it possible to analyse the API surface of a set of class libraries to automatically determine inter-assembly dependencies?
I'm sure we've all been in the situation where we've inherited code that was "overly public", becomes obsolete or needs to be refactored. In these situations, it is easy to spend many days analysing the API surface to see where methods or classes…

Rowland Shaw
- 338
- 1
- 11