Refactoring Code to Load a Document



Much modern web server code talks to upstream services which return JSON data, do
a little munging of that JSON data, and send it over to rich client web pages using
fashionable single page application frameworks. Talking to people working with such
systems I hear a fair bit of frustration of how much work they need to do to
manipulate these JSON documents. Much of this frustration could be avoided by
encapsulating a combination of loading strategies.



In this first installment, I look at refactoring a fully defined load of a
document to support passing it onto further services and providing an in-process API
to access some of its data.

 •  0 comments  •  flag
Share on Twitter
Published on December 14, 2015 09:11
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.