DRY Fusion data munging kata in Swift

I worked through one of Dave Thomas’s programming exercises, called a kata, and pushed my Swift 2.2 code to GitHub. The code shows how to apply the Don’t Repeat Yourself (DRY) principle to two similar but different data processing programs.

DRY

The end result of this exercise is a satisfyingly readable higher-order function, which is similar to a template method but does not require subclassing to supply context-specific logic.

Here is the kata:

http://codekata.com/kata/kata04-data-munging/

And here is my implementation of the kata’s third challenge:

https://github.com/ijoshsmith/dry-munging-kata

This was a great learning experience!

About Josh Smith

Josh Smith is a musician at heart, and a software developer by obsession. He lives in Arizona, plays classical music on the piano, jazz on the guitar, and enjoys brutally long rides on his bicycle. He has a wonderful wife and thinks that, in general, life is good.
This entry was posted in Swift and tagged , . Bookmark the permalink.

One Response to DRY Fusion data munging kata in Swift

  1. Pingback: Dew Drop – May 31, 2016 (#2262) | Morning Dew

Comments are closed.