Programming DSLs in Kotlin

Programming DSLs in Kotlin
Author :
Publisher : Pragmatic Bookshelf
Total Pages : 106
Release :
ISBN-10 : 9781680508260
ISBN-13 : 1680508261
Rating : 4/5 (261 Downloads)

Book Synopsis Programming DSLs in Kotlin by : Venkat Subramaniam

Download or read book Programming DSLs in Kotlin written by Venkat Subramaniam and published by Pragmatic Bookshelf. This book was released on 2021-03-23 with total page 106 pages. Available in PDF, EPUB and Kindle. Book excerpt: Creating your own domain-specific languages (DSLs) is both challenging and exhilarating. DSLs give users a way to interact with your applications more effectively, and Kotlin is a fantastic language to serve as a host for internal DSLs, because it greatly reduces the pain and effort of design and development. But implementing DSLs on top of Kotlin requires understanding the key strengths of the language and knowing how to apply them appropriately. Learn to avoid the pitfalls and leverage the language while creating your own elegant, fluent, concise, and robust DSLs using Kotlin. Internal DSLs remove the burdens of implementing a full blown language compiler. The host language quickly becomes your ally to creating DSLs, but the syntax you can choose for your DSLs is limited to what the host language allows. You can work around the limitations by tactfully bending the rules and exploiting the language capabilities. Learn the power of Kotlin and ways to design with it, in the context of crafting internal DSLs Start by learning ways to exploit the flexibilities of Kotlin to make your DSLs fluent, expressive, and concise. Then pick up techniques to extend the language with domain specific properties and functions. Quickly move ahead to tie your DSL snippets into the runtime environment and context of execution of your applications. Design to prevent any non-sensical syntax in your DSL that may otherwise be valid in the host language. Finally, learn techniques to gracefully handle errors. Practice using the multiple examples that are included in each chapter. Fire up your editor and follow along each example to become proficient in designing and implementing your own internal DSLs using Kotlin. What You Need: Kotlin version 1.3 or later and your favorite Kotlin IDE or code editor.


Programming DSLs in Kotlin Related Books

Programming DSLs in Kotlin
Language: en
Pages: 106
Authors: Venkat Subramaniam
Categories: Computers
Type: BOOK - Published: 2021-03-23 - Publisher: Pragmatic Bookshelf

GET EBOOK

Creating your own domain-specific languages (DSLs) is both challenging and exhilarating. DSLs give users a way to interact with your applications more effective
Creative DSLs in Kotlin
Language: en
Pages: 198
Authors: Daniel Gronau
Categories: Computers
Type: BOOK - Published: 2024-08-14 - Publisher: BoD – Books on Demand

GET EBOOK

This book is a guide to writing DSLs in Kotlin, with an emphasis on practical examples and real-world considerations. It helps intermediate and advanced Kotlin
ADVANCED KOTLIN PROGRAMMING: COMPREHENSIVE GUIDE WITH UNIQUE APPLICATIONS
Language: en
Pages: 113
Authors: Anonim
Categories: Computers
Type: BOOK - Published: - Publisher: KODLAB YAYIN DAĞITIM YAZILIM LTD.ŞTİ.

GET EBOOK

Book Summary: "Mastering Kotlin: Building Unique Applications" "Mastering Kotlin: Building Unique Applications" is a comprehensive guide designed to take reader
Kotlin in Action, Second Edition
Language: en
Pages: 558
Authors: Sebastian Aigner
Categories: Computers
Type: BOOK - Published: 2024-06-18 - Publisher: Simon and Schuster

GET EBOOK

Expert guidance and amazing examples from Kotlin core developers! It’s everything you need to get up and running fast. Kotlin in Action, Second Edition takes
Kotlin in Action
Language: en
Pages: 554
Authors: Dmitry Jemerov
Categories: Computers
Type: BOOK - Published: 2017-02-03 - Publisher: Simon and Schuster

GET EBOOK

Summary Kotlin in Action guides experienced Java developers from the language basics of Kotlin all the way through building applications to run on the JVM and A