Clean code

Keeping your code "clean" (see Martin 2008, 2011) is important for the development of software (and this includes modularity, readability, and maintainability). Xtext provides many features to keep your DSL implementation clean and modular, thanks to its decomposition into many customizable aspects. Xtend extremely enhances the ability to write clean code thanks to its syntax and its advanced features such as lambda expressions and extension methods. In this book we will put much effort into writing clean code when implementing a DSL, in particular, we will try to write small methods and to factor common code into reusable methods.

Tests must be clean as well since they are part of the development cycle and they will have to be modified ...

Get Implementing Domain-Specific Languages with Xtext and Xtend 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.