Chapter 4: Crafting Features Using Principles and Patterns
In the previous chapter, we learned how to write Feature
s correctly. In this chapter, we will take it one step further. We will learn how to craft our Feature
s. Creating something can be done by following an instruction set. Crafting something is different. It takes skill, deep knowledge of the materials and domain we're working with, and intuition derived from trial and error. In this chapter, we'll be crafting Features by applying principles and patterns in order to write high-quality, maintainable, and verifiable Feature
s. In particular, we will cover the following:
- Behavior-Driven Development (BDD) principles
- Discerning patterns in our
Feature
s - Patterns to avoid
After reading this chapter, you will be confident that you can write solid, future-proof Feature
s by using the right mental models and discerning which patterns to apply and which to avoid.