Chapter 6. Bulletproofing your code
This chapter covers
- How functional programming affects program testing
- Identifying challenges of testing imperative code
- Testing functional code with QUnit
- Exploring property-based testing with JSCheck
- Measuring program complexity with Blanket
Good fences make good neighbors
Robert Frost, “Mending Wall”
Welcome to part 3 of this book. Having read parts 1 and 2, you’ll have noticed a central theme: functional programming makes your code easier to understand, read, and maintain. You can even say its declarative nature makes your code self-documented.
Now that you’ve written functional code, how do you prove that it works? In other words, how do you ensure that it meets the specifications laid out by your ...
Get Functional Programming in JavaScript 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.