concept well - design abstraction in category dsl

This is an excerpt from Manning's book DSLs in Action.
A good abstraction is essential to a well-designed DSL implementation. If you want to dig deep into the subject of well-designed abstractions, appendix A has a detailed discussion about the qualities to look for. A good plan of attack is to skim the appendix now, then continue reading this chapter. Section 1.7 contains basic information about abstractions, but appendix A is much more detailed.
This section focuses on the qualities of well-designed abstractions. I’ll use the fields of software engineering and program design as points of reference, but I’ll specifically focus on how having a well-designed abstraction makes it easier for you to design reusable domain models. As we go down this road together, you’ll learn to appreciate how abstractions play a central role in designing complex domain models. As you learn to abstract more and more, you’ll become increasingly proficient at distilling the core concepts of a model from the redundancies of the surrounding details. To illustrate my points, I’ll discuss specific qualities that differentiate well-designed abstractions from poorly designed ones.
This section contains an informal discussion of the virtues that well-designed abstractions have. In the course of this discussion I’ll present code snippets that demonstrate implementation aspects of these qualities. Depending on the aspect that I’m talking about, I’ve chosen the language that explains the feature in the most expressive way. Though there’s a definite emphasis on OO programming paradigms, I’ve also used functional programming principles to implement a number of examples. If you’re not comfortable with some of the languages used, this isn’t the time to reach over to the bookshelves. The examples are simple enough and intuitive enough to explain the relevant design principles without your needing to dig around for more information about the specific language. You also have appendixes C through F in case you need to peek at some of the features that these languages offer.