Kotlin in Action, Second Edition
eBook - ePub

Kotlin in Action, Second Edition

  1. 560 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

About this book

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 you from language basics to building production-quality applications that take advantage of Kotlin’s unique features. Discover how the language handles everything from statements and functions to classes and types, and the unique features that make Kotlin programming so seamless.

In Kotlin in Action, Second Edition you will learn:

  • Kotlin statements and functions, and classes and types
  • Functional programming on the JVM
  • The Kotlin standard library and out-of-the-box features
  • Writing clean and idiomatic code
  • Combining Kotlin and Java
  • Improve code reliability with null safety
  • Domain-specific languages
  • Kotlin coroutines and flows
  • Mastering the kotlinx.coroutines library

Kotlin in Action, Second Edition is a complete guide to the Kotlin language written especially for readers familiar with Java or another OO language. Its authors—all core Kotlin language developers and Kotlin team members—share their unique insights, along with practical techniques and hands-on examples. This new second edition is fully updated to include the latest innovations, and it adds new chapters dedicated to coroutines, flows, and concurrency.

About the technology

Kotlin is a low-hassle, high-productivity programming language flexible enough to handle any web, mobile, cloud, and enterprise application. Java developers will appreciate the simple syntax, intuitive type system, excellent tooling, and support for functional-style programming. Plus, since Kotlin runs on the JVM, it integrates seamlessly with existing Java code, libraries, and frameworks, including Spring and Android.

About the book

Kotlin in Action, Second Edition teaches you Kotlin techniques you can use for almost any type of application, from enterprise services to Android apps. The authors are all members of the Kotlin team, so you can trust that even the gnarly details are dead accurate. You’ll start with Kotlin fundamentals, learning how the language handles everything from statements and functions to classes and types, and about its unique features that make Kotlin programming so seamless.

As you progress through this masterful book, you’ll get hands-on with the Kotlin standard library, functional programming in Kotlin, and advanced features such as generics and reflection. And this updated second edition now covers coroutines and structured concurrency to help you create efficient high-performance applications.

What's inside

  • Guidance from members of the Kotlin team
  • Domain-specific languages
  • Kotlin coroutines and flows
About the reader

For readers familiar with Java or another OO language.

About the author

Sebastian Aigner is a Developer Advocate at JetBrains, and host of the Talking Kotlin podcast. Roman Elizarov was the lead designer of the Kotlin language. JetBrains Developer Advocate, Svetlana Isakova, was a member of the Kotlin compiler team. Dmitry Jemerov is one of Kotlin’s initial developers.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Kotlin in Action, Second Edition by Sebastian Aigner,Roman Elizarov,Svetlana Isakova,Dmitry Jemerov in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in Java. We have over one million books available in our catalogue for you to explore.

Information

Table of contents

  1. Praise for the first edition
  2. Kotlin in Action
  3. Copyright
  4. contents
  5. front matter
  6. Part 1 Introducing Kotlin
  7. 1 Kotlin: What and why
  8. 2 Kotlin basics
  9. 3 Defining and calling functions
  10. 4 Classes, objects, and interfaces
  11. 5 Programming with lambdas
  12. 6 Working with collections and sequences
  13. 7 Working with nullable values
  14. 8 Basic types, collections, and arrays
  15. Part 2 Embracing Kotlin
  16. 9 Operator overloading and other conventions
  17. 10 Higher-order functions:Lambdas as parameters and return values
  18. 11 Generics
  19. 12 Annotations and reflection
  20. 13 DSL construction
  21. Part 3 Concurrent programming with coroutines and flows
  22. 14 Coroutines
  23. 15 Structured concurrency
  24. 16 Flows
  25. 17 Flow operators
  26. 18 Error handling and testing
  27. appendix A. Building Kotlin projects
  28. appendix B. Documenting Kotlin code
  29. appendix C. The Kotlin ecosystem
  30. index