This is a tiny project to demonstrate the PFAAO pattern. It converts a JSON document to an XML document. The accompanying article article is available here: http://www.rubypigeon.com/posts/the-pure-function-as-an-object-pfaao-pattern/
First, install the dependencies with:
bundle installThen run the code with:
bundle exec ruby convert.rbThe input.json data set comes from JSON Studio website:
http://jsonstudio.com/resources/
This pattern is inspired and influenced by all of Rich Hickey's Clojure talks and Casey Muratori's API design talks.