Applying test-driven development to your database
Test-driven development (TDD) is a popular software development methodology that aims to reduce defects and improve the ease of maintaining code. In this post, you learn how to apply TDD to write queries and expressions with the Fauna Query Language (FQL). You learn a general pattern for TDD with FQL, then apply that pattern to implement a `Split()` function that accepts string and delimiter parameters and returns an array of substrings “split” at each occurrence of the delimiter.
Test-driven development (TDD) is a popular software development methodology that aims to reduce defects and improve the ease of maintaining code. In this post, you learn how to apply TDD to write queries and expressions with the Fauna Query Language (FQL). You learn a general pattern for TDD with FQL, then apply that pattern to implement a `Split()` function that accepts string and delimiter parameters and returns an array of substrings “split” at each occurrence of the delimiter.