March 2018
Intermediate to advanced
276 pages
7h 11m
English
The principle of proximity focuses on how well organized your code is with respect to readability and change. Proximity implies that functions that are changed together are moved closer together. Proximity is both a design principle and a heuristic for refactoring hotspots toward code that’s easier to understand.
Let’s pretend you run an X-Ray analysis on a large hotspot and as you look at its internal change coupling, you identify several cases of obvious code duplication.

You see an example of such code duplication in the figure, and the gut reaction is to extract the commonalities into a shared abstraction. ...
Read now
Unlock full access