Code Shipping - Dependency (Coupling)

1 - About

Logical Data Modeling - Dependency (Coupling) in code.

A (module|package|library) often requires other (packages|module) to be installed to function correctly. Such a relation is called a dependency.

Coupling or dependency is the degree to which each program module relies on each one of the other modules.

Dependencies are not only dynamic with modules, there is also static one such as:

  • a sdk
  • static assets (such as image, configuration file)

A library dependency define an an abstraction layer in your code.

3 - Management

3.1 - Format

Dependency may have the following format:

  • package (archive file containing the whole code and published)
  • Source code dependency with sub-project. Example sub-project

3.2 - Type

3.2.1 - Transitive

A dependency of a dependency is a transitive dependency.

3.2.2 - External

3.2.3 - exported

An exported dependency is a library that will be found in the compile classpath of the consumer (ie exported to the consumer)

3.3 - Visualization

3.3.1 - Graph

see dependency graph

3.3.2 - Death Star

Services relationship (ie dependency).

All component are placed on a circle and if they have a dependency you will draw a line between this components. And as you see, you got a sort of big planet of death … Beautiful.

3.4 - Dependency indirection

One reason people use symbolic references (like semantic versioning) is so that we can refer to “anything greater than 2.3.4” and not worry about the specific thing that’s used.

As numerous incidents have demonstrated late-binding in production is evil and no sane Ops person would ever do this. How one developer just broke Node, Babel and thousands of projects in 11 lines of JavaScript

3.5 - Hell

Dependency_hell

Possible solution is called package relocation

3.6 - Update

  • Renovate - Automated dependency updates. Multi-platform and multi-language.

4 - Documentation / Reference


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap