
Programming DSLs in Kotlin
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Content
- 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
System requirements
File format: PDF
Copy-Protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (only limited: Kindle).
The file format PDF always displays a book page identically on any hardware. This makes PDF suitable for complex layouts such as those used in textbooks and reference books (images, tables, columns, footnotes). Unfortunately, on the small screens of e-readers or smartphones, PDFs are rather annoying, requiring too much scrolling.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our eBook Help page.