Chapter 10: Designing Useful Domain-Specific Languages
Ruby makes it easy to implement domain-specific languages (DSLs), and many popular libraries offer DSLs to improve their usability.
In this chapter, you'll learn how to design and implement a DSL, which problems are handled well by DSLs, and both the advantages and disadvantages of using DSLs in your libraries.
We will cover the following topics:
- Designing your DSL
- Implementing your DSL
- Learning when to use a DSL
By the end of the chapter, you'll have a better understanding of not only how to design a DSL, but why it may or may not be a good idea to do so.