Data Clumps

Performing cross-class refactorings without breaking the world is a skill you’ll constantly improve. Here, we take our (x, y) data clump and refactor it to use our new HtmlCoordinate object instead. By proceeding carefully, it goes off without a hitch. Now our SvgCanvas class is thoroughly de-clumped.

comments powered by Disqus