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 ...

Get Functional Programming: A PragPub Anthology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.