Questions tagged [dependency-analysis]

Analyzing the dependencies between components of software systems - classes and interfaces, header files, method or function calls, and external libraries.

Filter by
Sorted by
Tagged with
2 votes
1 answer
276 views

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 ...
Lars Francke's user avatar
0 votes
3 answers
407 views

Orthogonalization vs Dependency Inversion Principle

Is the dependency inversion principle an instance of orthogonalization? Given the class dependency X -> Y a common solution is to introduce interface Z so that the dependencies become X -> Z <...
vergilvsyn's user avatar
-1 votes
3 answers
332 views

Software components tightly coupled or loosely coupled- simple case examples

Imagine you have software component named A which knows component B Lets say knowing each other is via reference or imports, or two of them. Is it safe to tell the following statements: 1. A-->B ...
JavaSa's user avatar
  • 157
14 votes
5 answers
10k views

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 -...
MicroMaster's user avatar
14 votes
5 answers
19k views

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 ...
Elrond's user avatar
  • 301
-1 votes
1 answer
141 views

What are some ways to compare and contrast software architecture strategies?

I am currently working on an Android project that I have concluded needs refactoring done for a core part of the app experience. Let's call this part of the experience "Search". From looking at bug ...
Ryan Simon's user avatar
26 votes
8 answers
2k views

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 ...
Christs_Chin's user avatar
1 vote
1 answer
386 views

Sorting algorithm for Provides/DependsOn objects

I have a set of type rewriters, each modifies a given C# type in a different way. Examples are: Add the XYZ attribute to each property of the class Add an ID property Add two properties and some ...
D.R.'s user avatar
  • 231
53 votes
3 answers
115k views

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 ...
sabrina2020's user avatar
9 votes
4 answers
2k views

How do you approach transitive dependency conflicts that are only known at run-time? [closed]

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 ...
Tyler's user avatar
  • 191
3 votes
1 answer
944 views

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 ...
Heramb Deware's user avatar
3 votes
0 answers
128 views

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 ...
JeffV's user avatar
  • 415
3 votes
1 answer
3k views

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 ...
Fgblanch's user avatar
  • 161
4 votes
4 answers
2k views

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 ...
Pace's user avatar
  • 581
0 votes
1 answer
292 views

Reorganizing code based on dependencies

I'm wondering if there is a tool that can generate a dependency graph between C language object files and then analyze how to turn that graph into a DAG by modifying code that creates cycles, moving ...
markw's user avatar
  • 111
2 votes
2 answers
130 views

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 ...
Rowland Shaw's user avatar
-2 votes
1 answer
196 views

How do you solve large dependencies among files?

So basically I make several programs. Of course one program often used code from another. So I have my own personal "library" Well, I do write jerk codes. Then When I open a project, the project will ...
user4951's user avatar
  • 709
7 votes
3 answers
956 views

Dependency analysis for tests [closed]

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 ...
jbochi's user avatar
  • 384
4 votes
1 answer
1k views

Dependency analysis from C# code through to database tables/columns [closed]

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 ...
user avatar
76 votes
5 answers
84k views

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 ...
Andy Lowry's user avatar
  • 2,392
6 votes
1 answer
2k views

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 ...
Joshua Slocum's user avatar