Items related to Building Domain Specific Languages in Kotlin: Kotlin...

Building Domain Specific Languages in Kotlin: Kotlin language features and software design patterns for creating DSLs and improving code - Softcover

 
9781661636166: Building Domain Specific Languages in Kotlin: Kotlin language features and software design patterns for creating DSLs and improving code

Synopsis

What amazing code can you write with Kotlin? You have features like function types, nullables, and extension functions that are useful, but how can you use features like these to write code that you never could have in other languages like Java? One answer is: embed a domain specific language in your code to make common code easier to use.If you are writing Kotlin code, inevitably you will encounter a Domain Specific Language (DSL). A DSL may be in your build tool, UI code, or somewhere else, but trust me it is there. Why do these DSLs exist? They allow you to create new simplified syntax for your APIs and libraries. With the ability to create this syntax you can go beyond object oriented design and create even more effective code that is easy to understand and has less errors. This book shows you the Kotlin features and design patterns you need to know to implement complex DSLs or make small improvements to anywhere in your code. Along the way you will gain a deeper understanding of some of Kotlin's language features such as lambdas and extension functions.You will learn techniques for building DSLsBuilding a DSL in Kotlin requires you to understand:DSL design: DSLs make assumptions to simplify syntax, such as assuming the code is part of a particular problem domain.Kotlin features: DSL implementations sometimes employ Kotlin features in ways that are unusual to achieve a desired syntax.Software design patterns: Software design patterns can help you create different syntax and also simplify DSLs.The Kotlin features and design patterns this book describes are:Kotlin features:Lambda with receiverInvoke operatorOperator overloadExtension functionsCustom property accessorsInfix notationDesign patterns:Function chainsNested buildersContext variablesSymbolsYou will be able to write new kinds of codeYou will see ample code examplesThis book contains two parts to help you learn the necessary DSL skills. First, it has ample code examples to demonstrate each concept. Second, it has step by step exercises you can use to help you to practice what you have learned.Are you excited?Grab this book and start maximizing your knowledge of Kotlin and building some great new DSL syntax.

"synopsis" may belong to another edition of this title.

Buy Used

Condition: Very Good
Gut/Very good: Buch bzw. Schutzumschlag...
View this item

US$ 52.47 shipping from Germany to U.S.A.

Destination, rates & speeds

Buy New

View this item

US$ 33.60 shipping from United Kingdom to U.S.A.

Destination, rates & speeds

Search results for Building Domain Specific Languages in Kotlin: Kotlin...

Stock Image

Milette, Greg
Published by Independently published, 2019
ISBN 10: 1661636160 ISBN 13: 9781661636166
New Paperback

Seller: Revaluation Books, Exeter, United Kingdom

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Paperback. Condition: Brand New. 68 pages. 11.00x8.50x0.17 inches. In Stock. Seller Inventory # zk1661636160

Contact seller

Buy New

US$ 25.81
Convert currency
Shipping: US$ 33.60
From United Kingdom to U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket

Stock Image

Milette, Greg
Published by Independently published, 2019
ISBN 10: 1661636160 ISBN 13: 9781661636166
Used Softcover

Seller: medimops, Berlin, Germany

Seller rating 5 out of 5 stars 5-star rating, Learn more about seller ratings

Condition: very good. Gut/Very good: Buch bzw. Schutzumschlag mit wenigen Gebrauchsspuren an Einband, Schutzumschlag oder Seiten. / Describes a book or dust jacket that does show some signs of wear on either the binding, dust jacket or pages. Seller Inventory # M01661636160-V

Contact seller

Buy Used

US$ 10.93
Convert currency
Shipping: US$ 52.47
From Germany to U.S.A.
Destination, rates & speeds

Quantity: 1 available

Add to basket