Refactoring Module Dependencies



As a program grows in size it's important to split it into
modules, so that you don't need to understand all of it to make a
small modification. Often these modules can be supplied by
different teams and combined dynamically. In this refactoring
essay I split a small program using Presentation-Domain-Data
layering. I then refactor the dependencies between these modules
to introduce the Service Locator and Dependency Injection
patterns. These apply in different languages, yet look different,
so I show these refactorings in both Java and a classless
JavaScript style.

 •  0 comments  •  flag
Share on Twitter
Published on October 13, 2015 06:46
No comments have been added yet.


Martin Fowler's Blog

Martin Fowler
Martin Fowler isn't a Goodreads Author (yet), but they do have a blog, so here are some recent posts imported from their feed.
Follow Martin Fowler's blog with rss.