Gronau | Creative DSLs in Kotlin | Buch | 979-8-8688-2820-1 | www.sack.de

Buch, Englisch, 235 Seiten, Format (B × H): 155 mm x 235 mm

Gronau

Creative DSLs in Kotlin

Design Strategies for Real-World Projects
1. Auflage 2026
ISBN: 979-8-8688-2820-1
Verlag: APRESS L.P.

Design Strategies for Real-World Projects

Buch, Englisch, 235 Seiten, Format (B × H): 155 mm x 235 mm

ISBN: 979-8-8688-2820-1
Verlag: APRESS L.P.


Design and implement domain-specific languages (DSLs) in Kotlin. This book goes beyond toy examples and provides real-world insights into writing DSLs in practice.

You will learn a structured approach to DSL design, including defining goals, understanding constraints, and avoiding common pitfalls. You will explore essential Kotlin language features for DSL development, as well as the interoperability issues that arise when a Kotlin DSL needs to be called from Java code. You will also review major DSL patterns, including algebraic DSLs, builder-style DSLs, and idiomatic approaches like the Loan Pattern. Finally, the book addresses advanced topics such as modeling state transitions, creating hybrid DSLs, parsing strings, leveraging annotations, and using code generation to reduce boilerplate.

This book combines theory, patterns, and real-world applications to help you build DSLs that are robust, maintainable, and effective. In the end, you will not only be able to write DSLs in Kotlin but also understand the “why” behind important design decisions throughout the entire process.

What You Will Learn:

  • Start, manage, and maintain DSL projects effectively.
  • Understand the different DSLs that can be expressed in Kotlin.
  • Choose the right DSL for your needs, understanding the trade-offs of different patterns.
  • Leverage Kotlin’s language features for DSL design.
  • Address interoperability challenges between Kotlin and Java.

Who This Book Is for:
Experienced Kotlin and Java developers. Readers should have a solid foundation in their primary programming language before diving into DSLs.

Gronau Creative DSLs in Kotlin jetzt bestellen!

Zielgruppe


Professional/practitioner


Autoren/Hrsg.


Weitere Infos & Material


Part 1. Writing DSLs.- 1. Introduction.- 2. Requirements Analysis.- 3. Writing a DSL.- 4. Relevant Language Features.- Part 2. DSL Categories.- 5. Algebraic DSLs.- 6. Builder Pattern DSLs and Method Chaining.- 7. Loan Pattern DSLs.- 8. Modeling State Transitions in DSLs.- 9. String-Parsing DSLs.- 10. Annotation-based DSLs.- 11. Hybrid DSLs.- Part 3. Supplemental Topics.- 12. Code Generation for DSLs.- 13. Java Interoperability.- 14. Real-World DSL Examples.


Daniel Gronau is a seasoned software developer with nearly 25 years of industry experience with a passion for programming languages. After starting with Java in 2001, he pursued modern alternatives such as Ceylon, Scala, and Kotlin. Based in Germany, his experience spans companies like Spread Group (sprd.net AG) and Guardian Industries, and currently works for a division of Aurubis AG group.



Ihre Fragen, Wünsche oder Anmerkungen
Vorname*
Nachname*
Ihre E-Mail-Adresse*
Kundennr.
Ihre Nachricht*
Lediglich mit * gekennzeichnete Felder sind Pflichtfelder.
Wenn Sie die im Kontaktformular eingegebenen Daten durch Klick auf den nachfolgenden Button übersenden, erklären Sie sich damit einverstanden, dass wir Ihr Angaben für die Beantwortung Ihrer Anfrage verwenden. Selbstverständlich werden Ihre Daten vertraulich behandelt und nicht an Dritte weitergegeben. Sie können der Verwendung Ihrer Daten jederzeit widersprechen. Das Datenhandling bei Sack Fachmedien erklären wir Ihnen in unserer Datenschutzerklärung.