Book description
Craft domain-specific languages that empower experts to create software themselves.Domain-specific languages put business experts at the heart of software development. These purpose-built tools let your clients write down their business knowledge and have it automatically translated into working software—no dev time required. They seamlessly bridge the knowledge gap between programmers and subject experts, enabling better communication and freeing you from time-consuming code adjustments.
Inside Building User-Friendly DSLs you’ll learn how to:
- Build a complete Domain IDE for a car rental company
- Implement a projectional editor for your DSL
- Implement content assist, type systems, expressions, and versioning language aspects
- Evaluate business rules
- Work with Abstract Syntax Trees
- Reduce notated DSL content in concrete syntax into abstract syntax
Building User-Friendly DSLs takes you on a carefully-planned journey through everything you need to create your own DSLs. It focuses on building DSLs that are easy for busy business experts to learn and master. By working through a detailed example of a car rental company, you'll see how to create a custom DSL with a modern and intuitive UI that can replace tedious coding activities.
About the Technology
Here’s the central problem of software development: business users know what they need their apps to do, but they don’t know how to write the code themselves. As a developer, this means you spend a lot of time learning the same domain-specific details your user already knows. Now there’s a way to bridge this gap! You can create a Domain-Specific Language (DSL) that empowers non-technical business users to create and customize their own applications without writing any code.
About the Book
Building User-Friendly DSLs teaches you how to create a complete domain-specific language that looks and works like a web application. These easy-to-use DSLs put the power to create custom software into the hands of business domain experts. As you go, you’ll cover all the essentials, from establishing structure and syntax of your DSL to implementing a user-friendly interface.
What's Inside
- Implement a projectional editor for your DSL
- Work with Abstract Syntax Trees
- Evaluate business rules
About the Reader
For developers with JavaScript and web development experience.
About the Author
Meinte Boersma is a senior developer and an evangelist of model-driven software development and DSLs.
Quotes
If you want to make your non-developer colleagues 10 times more productive, this is the book for you! You would be hard-pressed to find any skill that would have a bigger impact.
- Federico Tomassetti, Strumenta
A unique source of insight into state-of-the-art DSL tooling. Effectively combines bird’s-eye-view explanations with practical examples.
- Václav Pech, JetBrains
A down to earth approach to developing DSLs that’s easily accessible to all JavaScript developers.
- Jos Warmer, DSL architect
Guides the reader through a simple framework based on web technologies, touching on important aspects of DSL implementation along the way.
- Markus Völter, language engineer
Table of contents
- copyright
- contents
- Building User-Friendly DSLs
- dedication
- foreword
- preface
- acknowledgments
- about this book
- about the author
- about the cover illustration
- 1 What is a domain-specific language?
- 2 Representing DSL content as structured data
- 3 Working with ASTs in code
- 4 Projecting the AST
- 5 Editing values in the projection
- 6 Editing objects in the projection
- 7 Implementing persistence and transportation of ASTs
- 8 Generating code from the AST
- 9 Preventing things from blowing up
- 10 Managing change
- 11 Implementing expressions: Binary operations
- 12 Implementing expressions: Order of operations
- 13 Implementing a type system
- 14 Implementing business rules
- 15 Some topics we didn’t cover
- appendix A Setting up the development environment
-
appendix B Implementing a Transparent Functional Reactive frontend
-
B.1 Establishing an idiom for JavaScript code
- B.1.1 No semicolons to separate statements
- B.1.2 Indentation/whitespace conventions
- B.1.3 Using const declarations for values wherever possible
- B.1.4 Defining functions as const declarations using arrow function expressions
- B.1.5 Exporting members from files
- B.1.6 Object destructuring
- B.1.7 Importing members
- B.1.8 Favoring plain objects over classes
- B.1.9 Using the spread syntax
- B.1.10 Using template literals
- B.1.11 Unit testing
- B.2 Setting up a basic frontend with React and Parcel
- B.3 Using React components to implement a frontend
- B.4 Using MobX to react to changes
-
B.1 Establishing an idiom for JavaScript code
Product information
- Title: Building User-Friendly DSLs
- Author(s):
- Release date: November 2024
- Publisher(s): Manning Publications
- ISBN: 9781617296475
You might also like
book
Getting Clojure
Behind every programming language lies a vision of how programs should be built. The vision behind …
book
Street Coder
Computer science theory quickly collides with the harsh reality of professional software development. This wickedly smart …
book
DuckDB in Action
Dive into DuckDB and start processing gigabytes of data with ease—all with no data warehouse. DuckDB …
article
Implementing the Visitor Pattern
Build your knowledge of Python, the world's favorite programming language, with this Shortcuts collection. These recipes …