Chapter 7
What are afferent and efferent couplings?
Afferent coupling represents how many external components are depending on the current component. By contrast, efferent coupling represents how many external components the current one depends on. These measurements are useful in determining how tightly the current component is coupled with other ones.
Why are bi-directional dependencies bad from a maintainability perspective?
Bi-directional dependencies tend to introduce messy, spaghetti code. To comprehend a single component, the developer must work through and understand the other components that it both uses and depends on.
What is an easy way to generate code on the fly?
The @eval macro can be used to generate code. For example, it ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access