Creative DSLs in Kotlin
Author | : Daniel Gronau |
Publisher | : BoD – Books on Demand |
Total Pages | : 200 |
Release | : 2024-07-26 |
ISBN-10 | : 9783759759863 |
ISBN-13 | : 3759759866 |
Rating | : 4/5 (63 Downloads) |
Read and Download All BOOK in PDF
Download Creative Dsls In Kotlin full books in PDF, epub, and Kindle. Read online free Creative Dsls In Kotlin ebook anywhere anytime directly on your device. Fast Download speed and no annoying ads.
Author | : Daniel Gronau |
Publisher | : BoD – Books on Demand |
Total Pages | : 200 |
Release | : 2024-07-26 |
ISBN-10 | : 9783759759863 |
ISBN-13 | : 3759759866 |
Rating | : 4/5 (63 Downloads) |
Author | : Venkat Subramaniam |
Publisher | : Pragmatic Bookshelf |
Total Pages | : 104 |
Release | : 2021-03-23 |
ISBN-10 | : 9781680508260 |
ISBN-13 | : 1680508261 |
Rating | : 4/5 (60 Downloads) |
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.
Author | : Daniel Gronau |
Publisher | : BoD – Books on Demand |
Total Pages | : 198 |
Release | : 2024-08-14 |
ISBN-10 | : 9783759756770 |
ISBN-13 | : 3759756778 |
Rating | : 4/5 (70 Downloads) |
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 developers go beyond the usual toy examples, provides pragmatic and systematic guidance, and helps you master the tools to express your creativity and find your personal style.
Author | : Nate Ebel |
Publisher | : |
Total Pages | : 434 |
Release | : 2019-10-11 |
ISBN-10 | : 1838555722 |
ISBN-13 | : 9781838555726 |
Rating | : 4/5 (22 Downloads) |
Explore popular language features, Java to Kotlin interoperability, advanced topics, and practical applications by building a variety of sample projects Key Features Understand and leverage the syntax, tools, and patterns by writing code in Kotlin Explore practical topics such as Java interop, concurrency with coroutines, and functional programming Discover how to use Kotlin for build targets like Android, iOS, JavaScript, and backend service Book Description Using Kotlin without taking advantage of its power and interoperability is like owning a sports car and never taking it out of the garage. While documentation and introductory resources can help you learn the basics of Kotlin, the fact that it's a new language means that there are limited learning resources and code bases available in comparison to Java and other established languages. This Kotlin book will show you how to leverage software designs and concepts that have made Java the most dominant enterprise programming language. You'll understand how Kotlin is a modern approach to object-oriented programming (OOP). This book will take you through the vast array of features that Kotlin provides over other languages. These features include seamless interoperability with Java, efficient syntax, built-in functional programming constructs, and support for creating your own DSL. Finally, you will gain an understanding of implementing practical design patterns and best practices to help you master the Kotlin language. By the end of the book, you'll have obtained an advanced understanding of Kotlin in order to be able to build production-grade applications. What you will learn Model data using interfaces, classes, and data classes Grapple with practical interoperability challenges and solutions with Java Build parallel apps using concurrency solutions such as coroutines Explore functional, reactive, and imperative programming to build flexible apps Discover how to build your own domain-specific language Embrace functional programming using the standard library and Arrow Delve into the use of Kotlin for frontend JavaScript development Build server-side services using Kotlin and Ktor Who this book is for If you're a Kotlin developer looking to further their skills or a professional Java developer looking for better or professional resources in order to make a switch to Kotlin, this book is for you. Familiarity with Kotlin programming will assist with understanding key concepts covered in the book.
Author | : Dawn Griffiths |
Publisher | : O'Reilly Media |
Total Pages | : 483 |
Release | : 2019-02-13 |
ISBN-10 | : 9781491996669 |
ISBN-13 | : 1491996668 |
Rating | : 4/5 (69 Downloads) |
What will you learn from this book? Head First Kotlin is a complete introduction to coding in Kotlin. This hands-on book helps you learn the Kotlin language with a unique method that goes beyond syntax and how-to manuals and teaches you how to think like a great Kotlin developer. You’ll learn everything from language fundamentals to collections, generics, lambdas, and higher-order functions. Along the way, you’ll get to play with both object-oriented and functional programming. If you want to really understand Kotlin, this is the book for you. Why does this book look so different? Based on the latest research in cognitive science and learning theory, Head First Kotlin uses a visually rich format to engage your mind rather than a text-heavy approach that puts you to sleep. Why waste your time struggling with new concepts? This multisensory learning experience is designed for the way your brain really works.
Author | : Eric Evans |
Publisher | : Addison-Wesley Professional |
Total Pages | : 563 |
Release | : 2004 |
ISBN-10 | : 9780321125217 |
ISBN-13 | : 0321125215 |
Rating | : 4/5 (17 Downloads) |
"Domain-Driven Design" incorporates numerous examples in Java-case studies taken from actual projects that illustrate the application of domain-driven design to real-world software development.
Author | : Marcin Moskała |
Publisher | : Kt. Academy |
Total Pages | : 439 |
Release | : |
ISBN-10 | : 9788395452819 |
ISBN-13 | : 8395452810 |
Rating | : 4/5 (19 Downloads) |
Kotlin is a powerful and pragmatic language, but it's not enough to know about its features. We also need to know when they should be used and in what way. This book is a guide for Kotlin developers on how to become excellent Kotlin developers. It presents and explains in-depth the best practices for Kotlin development. Each item is presented as a clear rule of thumb, supported by detailed explanations and practical examples.
Author | : Joshua Engel |
Publisher | : Addison-Wesley Professional |
Total Pages | : 518 |
Release | : 1999 |
ISBN-10 | : 0201309726 |
ISBN-13 | : 9780201309720 |
Rating | : 4/5 (26 Downloads) |
The Java Virtual Machine (JVM) is the underlying technology behind Java's most distinctive features including size, security and cross-platform delivery. This guide shows programmers how to write programs for the Java Virtual Machine.
Author | : Bruce Eckel |
Publisher | : |
Total Pages | : 636 |
Release | : 2021-01-11 |
ISBN-10 | : 0981872557 |
ISBN-13 | : 9780981872551 |
Rating | : 4/5 (57 Downloads) |
For both beginning and experienced programmers! From the author of the multi-award-winning Thinking in C++ and Thinking in Java together with a member of the Kotlin language team comes a book that breaks the concepts into small, easy-to-digest "atoms," along with exercises supported by hints and solutions directly inside IntelliJ IDEA! No programming background necessary. Summaries for experienced programmers. Easy steps via very small chapters ("atoms"). Free accompanying exercises/solutions within IntelliJ Idea. Gives you a strong Kotlin foundation. Kotlin is cleaner, more consistent and far more powerful than Java. Increase programming productivity with Kotlin's clear, concise syntax. Produce safer, more reliable programs. Kotlin easily interacts with Java. Effortlessly migrate by adding pieces of Kotlin to an existing Java project. Support for Windows, Mac and Linux. Free version of Intellij IDEA includes extensive Kotlin support. Book resources, live seminars, workshops and consulting available at AtomicKotlin.com.
Author | : Pierre-Yves Saumont |
Publisher | : Simon and Schuster |
Total Pages | : 802 |
Release | : 2019-04-21 |
ISBN-10 | : 9781638350125 |
ISBN-13 | : 1638350124 |
Rating | : 4/5 (25 Downloads) |
Summary Maintaining poor legacy code, interpreting cryptic comments, and writing the same boilerplate over and over can suck the joy out of your life as a Java developer. Fear not! There's hope! Kotlin is an elegant JVM language with modern features and easy integration with Java. The Joy of Kotlin teaches you practical techniques to improve abstraction and design, to write comprehensible code, and to build maintainable bug-free applications. Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications. About the Technology Your programming language should be expressive, safe, flexible, and intuitive, and Kotlin checks all the boxes! This elegant JVM language integrates seamlessly with Java, and makes it a breeze to switch between OO and functional styles of programming. It's also fully supported by Google as a first-class Android language. Master the powerful techniques in this unique book, and you'll be able to take on new challenges with increased confidence and skill. About the Book The Joy of Kotlin teaches you to write comprehensible, easy-to-maintain, safe programs with Kotlin. In this expert guide, seasoned engineer Pierre-Yves Saumont teaches you to approach common programming challenges with a fresh, FP-inspired perspective. As you work through the many examples, you'll dive deep into handling errors and data properly, managing state, and taking advantage of laziness. The author's down-to-earth examples and experience-driven insights will make you a better—and more joyful—developer! What's inside Programming with functions Dealing with optional data Safe handling of errors and exceptions Handling and sharing state mutation About the Reader Written for intermediate Java or Kotlin developers. About the Author Pierre-Yves Saumont is a senior software engineer at Alcatel-Submarine Networks. He's the author of Functional Programming in Java (Manning, 2017). Table of Contents Making programs safer Functional programming in Kotlin: An overview Programming with functions Recursion, corecursion, and memoization Data handling with lists Dealing with optional data Handling errors and exceptions Advanced list handling Working with laziness More data handling with trees Solving problems with advanced trees Functional input/output Sharing mutable states with actors Solving common problems functionally