1 option
Programming DSLs in Kotlin : design expressive and robust special purpose code / Venkat Subramaniam.
- Format:
- Book
- Author/Creator:
- Subramaniam, Venkat, author.
- Language:
- English
- Subjects (All):
- Natural language processing (Computer science).
- Programming languages (Computers).
- Physical Description:
- 1 online resource (74 pages)
- Edition:
- 1st ed.
- Place of Publication:
- [Raleigh, North Carolina] : The Pragmatic Bookshelf, [2021]
- Summary:
- This book, 'Programming DSLs in Kotlin,' by Venkat Subramaniam, serves as a practical guide for software developers interested in designing and implementing Domain Specific Languages (DSLs) using Kotlin. It assumes the reader has prior knowledge of Kotlin and DSLs and provides concise steps and examples to enhance fluency and expressiveness in DSL design. With a focus on Kotlin's capabilities, the book covers syntax enhancement, domain-specific vocabulary integration, and resilience in DSL implementation. Aimed at programmers, lead developers, architects, and technical managers, it offers strategies to make DSLs intuitive and robust, facilitating easier development for JVM or Android applications. Generated by AI.
- Contents:
- Cover
- Table of Contents
- Acknowledgments
- Preface
- Who Is This Book For?
- What's in This Book?
- Online Resources
- 1. Introduction
- Focus on the Key Characteristics
- Kotlin as a Host Language
- Steps to Program DSLs
- 2. Exploit Fluency
- Remove Noisy Syntax
- Design for Fluency
- Make Syntax Obvious
- Use Conventions to Improve Fluency
- 3. Get Domain Specific
- Use Domain-Specific Extension Functions
- Create Extension Operators
- Use Domain-Specific Operators
- Use invoke to Remove Redundant Syntax
- 4. Provide Contexts
- Provide Context for Variables
- Design for Separate Implicit Contexts
- Use the Default Lambda Parameter Name for Context
- Use Multiple Contexts to Remove Ambiguity
- Use Inner Classes to Share State Between Contexts
- 5. Manage Scope and Handle Errors
- Leverage the Compiler
- Leverage Type Checking
- Restrict Scope of Functions
- Control Scope with DslMarker
- Proactively Handle Errors
- 6. Practice with Examples
- Let's Design a Builder
- Devise Ways to Run DSLs from External Sources
- Bibliography.
- Notes:
- Description based on publisher supplied metadata and other sources.
- Part of the metadata in this record was created by AI, based on the text of the resource.
- Description based on print record.
- Includes bibliographical references.
- ISBN:
- 9781680508260
- 1680508261
- OCLC:
- 1244620092
The Penn Libraries is committed to describing library materials using current, accurate, and responsible language. If you discover outdated or inaccurate language, please fill out this feedback form to report it and suggest alternative language.