Articoli correlati a 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 - Brossura

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

Sinossi

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.

Le informazioni nella sezione "Riassunto" possono far riferimento a edizioni diverse di questo titolo.

Compra usato

Condizioni: molto buono
Gut/Very good: Buch bzw. Schutzumschlag...
Visualizza questo articolo

EUR 4,50 per la spedizione da Germania a Italia

Destinazione, tempi e costi

EUR 11,50 per la spedizione da Regno Unito a Italia

Destinazione, tempi e costi

Risultati della ricerca per Building Domain Specific Languages in Kotlin: Kotlin...

Foto dell'editore

Milette, Greg
Editore: Independently published, 2019
ISBN 10: 1661636160 ISBN 13: 9781661636166
Antico o usato Brossura

Da: medimops, Berlin, Germania

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Condizione: 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. Codice articolo M01661636160-V

Contatta il venditore

Compra usato

EUR 9,10
Convertire valuta
Spese di spedizione: EUR 4,50
Da: Germania a: Italia
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello

Foto dell'editore

Milette, Greg
Editore: Independently published, 2019
ISBN 10: 1661636160 ISBN 13: 9781661636166
Nuovo Paperback

Da: Revaluation Books, Exeter, Regno Unito

Valutazione del venditore 5 su 5 stelle 5 stelle, Maggiori informazioni sulle valutazioni dei venditori

Paperback. Condizione: Brand New. 68 pages. 11.00x8.50x0.17 inches. In Stock. Codice articolo zk1661636160

Contatta il venditore

Compra nuovo

EUR 22,09
Convertire valuta
Spese di spedizione: EUR 11,50
Da: Regno Unito a: Italia
Destinazione, tempi e costi

Quantità: 1 disponibili

Aggiungi al carrello