O'Reilly logo

Functional Programming: A PragPub Anthology by Michael Swaine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Beautiful Data for Beautiful Tests

In the preceding chapter, you saw first-hand our strong desire to make the repetitive tasks we do on a day-to-day basis beautiful. If I’m going to express a concept once or twice, I might be willing to live with the evil twins Ugly and Repetitive, but tests and the data that make them go will be expressed hundreds of times. I’m going to do everything I can to strip away all of the layers of tedium.

With Blacksmith, we want to be able to express these concepts with the best possible syntax:

  • Templates: the central premise of Blacksmith is that we express a template in a module called Forge. That template describes an entity. This foundation will feed the many different data forms that we need. Users can then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required