Our regular programming languages are where we usually like
to keep our logic, but there are times when it's useful to embed
logic into a data structure. Logic in a JSON file can remove
duplication when that same logic has to run on multiple
platforms that use different languages. This essay looks at how
to refactor logic from imperative code into such a data structure.
Published on November 11, 2015 07:55