Questions tagged [dependencies]

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

A dependency exists between two elements if changes to the definition of one element may cause changes to the other.

To quote from the 3rd edition of UML Distilled:

An element C (the client) depends on an element S (the supplier) if and only if changes to the definition of S may cause changes to C.

If the elements are classes, only the direct cause for change (i.e. not through a ripple effect) is called a dependency, i.e. the relation is not transitive.

For packages, C depends on S if a class in C depends on a class in S. Sometimes, the transitive closure is taken, i.e. the dependency of C on a package T can be caused by C depending on S depending on T via class dependencies.

References:

  1. Understanding Dependencies
  2. What is the difference between dependency and association?
11076 questions
4
votes
2 answers

py2exe - How do I reduce dll dependencies?

My program depends on USER32.dll, SHELL32.dll, ADVAPI32.dll WS2_32.dll, GDI32.dll, and KERNEL32.dll. All are in the system32 folder. Is there any way I can include these in my program so it will run on all Windows computers? Or are these dlls…
CamelCaseGuy
  • 291
  • 1
  • 4
  • 9
4
votes
2 answers

How to get a list of version numbers for python packages released up until a specific date?

Consider having a python requirements.txt file with a list of (un-versioned) dependencies (python packages). After you install them (e.g. pip install -r requirements.txt) you can call pip freeze and get a (versioned) list of all installed python…
Chris
  • 2,875
  • 4
  • 24
  • 46
4
votes
2 answers

What does usages mean in mvnrepository.com

While searching for maven dependencies on mvnrepository.com, it shows one column with usages. What does it mean? i.e. https://mvnrepository.com/artifact/org.springframework/spring-context when you click on this link it will show you different jars…
4
votes
0 answers

Gradle Multimodule Project unable to resolve class of depending sub module

The application works fine in Eclipse. But I am not able to build the application via gradle (gradle clean build) The structure is like: financial-calculator (parent) library api api wants to use classes of library My parent's settings.gradle…
Michael Hegner
  • 4,469
  • 6
  • 29
  • 53
4
votes
1 answer

C# Dependency Injection - good practices

I have some problem with understanding how to create injectable classes… Here is my example: public interface IService { string FindSomeData() } Now we create a class which implements the interface: public class FolderService : IService { …
Roofy
  • 69
  • 1
  • 9
4
votes
1 answer

What is the difference between build dependency and runtime dependency

I was told that build dependency and runtime dependency are different. But I don't know why. If some dependency is necessary while building, can't we also say that it is necessary for running? If some dependency is necessary while running, can't we…
Yves
  • 8,474
  • 7
  • 59
  • 114
4
votes
1 answer

Cannot drop a role that is granted to connect database

I am using PostgreSQL 10.4 and I found a strange behavior. If we create an role and grant it to CONNECT the database: CREATE ROLE dummy; GRANT CONNECT ON DATABASE test TO dummy; Then we cannot drop this role, even if it owns no object at all, this…
jlandercy
  • 4,820
  • 1
  • 26
  • 46
4
votes
0 answers

Dynamic install_requires in setup.py

I'm writing a python package with installable sub-packages as is shown below. my_project ├── subpackage1 │ ├── foo.py │ └── setup.py ├── subpackage2 │ ├── bar.py │ └── setup.py └── setup.py [main] My setup.py is like the following: from…
Chenlu
  • 390
  • 5
  • 16
4
votes
2 answers

Rails: Best practice for model dependency class locations?

I have a rails app moving along fairly well, but the fact that I'm doing this myself means that some poor sod is eventually going to see this and say, "What the hell were you thinking? Why did you put this here?!?!" Where is that poor, sorry soul…
Sniggerfardimungus
  • 10,708
  • 10
  • 46
  • 91
4
votes
5 answers

Parallel Tasking Concurrency with Dependencies on Python like GNU Make

I'm looking for a method or possibly a philosophical approach for how to do something like GNU Make within python. Currently, we utilize makefiles to execute processing because the makefiles are extremely good at parallel runs with changing single…
4
votes
3 answers

How do you make javac recompile source files when their dependencies change?

I seem to be getting run-time errors in my project when using javac for incremental builds. Is this type of workflow supported? For example, if A.java depends on B.java, and B.java is modified; will javac recompile A.java because its dependency…
cmcginty
  • 101,562
  • 37
  • 148
  • 155
4
votes
1 answer

Package conflict when installing cx_freeze on anaconda

I am trying to install the cx_freeze using anaconda prompt. Following what's on their website, I used: conda install -c pyzo cx_freeze I get this error: UnsatisfiableError: The following specifications were found to be in conflict: - cx_freeze -…
4
votes
1 answer

Can I provide a relative deps path in my bazel target?

When I specify build rules in bazel, my dependencies are either full paths (from the root of the repo), or just the target name (since its in the same directory): cc_binary( name = "program", srcs = ["main.cpp"], deps =…
Trevor Hickey
  • 31,728
  • 22
  • 131
  • 236
4
votes
0 answers

How to install dependencies for an application in Heroku?

When trying to implement my application in Heroku I had the following error ModuleNotFoundError: No module named 'requests' ---------------------------------------- Command "python setup.py egg_info" failed with…
Chat Bot
  • 67
  • 6
4
votes
3 answers

Recommended cache control method?

I'm looking to force refreshes of JS/CSS dependencies. Will work for that, or will that only force a refresh of the content within the page itself?
TimFoolery
  • 1,867
  • 1
  • 18
  • 28
1 2 3
99
100