Familiarize yourself with all of Kotlin's features with this in-depth guide
Key FeaturesGet a thorough introduction to KotlinLearn to use Java code alongside Kotlin without any hiccupsGain a complete overview of null safety, Generics, and many more interesting featuresBook DescriptionKotlin has been making waves ever since it was open sourced by JetBrains in 2011; it has been praised by developers across the world and is already being adopted by companies.
This book provides a detailed introduction to Kotlin that shows you all its features and will enable you to write Kotlin code to production. We start with the get you familiar with running Kotlin code, setting up, tools, and instructions that you can use to write basic programs. Next, we cover object oriented functions, lambdas, and properties - all while using Kotlin's new features. Then, we move on to null safety aspects and type parameterization. We show you how to destructure expressions and even write your own. We also take you through important topics like testing, concurrency, microservices, and a whole lot more. By the end of this book you will be able to compose different services and build your own applications.
What you will learnUse new features to write structured and readable object-oriented codeFind out how to use lambdas and higher order functions to write clean, reusable, and simple codeWrite unit tests and integrate Kotlin tests with Java code in a transitioning code baseWrite real-world production code in Kotlin in the style of microservicesLeverage Kotlin's extensions to the Java collections libraryUse destructuring expressions and find out how to write your ownWrite code that avoids null pointer errors and see how Java-nullable code can integrate with features in a Kotlin codebaseDiscover how to write functions in Kotlin, see the new features available, and extend existing librariesTable of ContentsGetting Started with KotlinKotlin BasicsObject-Oriented Code in KotlinFunctions in KotlinHigher Order Functions and Functional ProgrammingPropertiesNull Safety, Reflection, and AnnotationsGenericsData ClassesCollectionsTesting in KotlinMicroservices in KotlinConcurrency
I really found this book very useful for a kotlin developer. The fact the book is spread with bytecode samples explaining what kotlin compiler generates make it easier to know what happens under the hood, and in the same time give one a glimpse how to use kotlin code from java. But I must admit I was a bit disappointed of the microservices chapter. I really hopped this chapter to be with spring boot and spring cloud, which for me is more suitable for a MS solution with Kotlin.
A good introductory book. I'm interested in using Kotlin for Android programming so I really didn't care about all the bytecode result from the Kotlin compiler and any other Java comparison for that matter.
Anyways, I think it pointed me into the right direction for future reference.
Wonderful entry point for Kotlin. Really shows how Kotlin is an improvement over Java and how to apply it for Android Development. The examples are convenient, but the final project takes too much for granted, for Android Beginners