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 can be used inside a for loop so that variables can be interpolated into the definition of a function. The result is that multiple functions...