
Kotlin In-Depth
A Guide to a Multipurpose Programming Language for Server-Side, Front-End, Android, and Multiplatform Mobile
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Kotlin In-Depth
A Guide to a Multipurpose Programming Language for Server-Side, Front-End, Android, and Multiplatform Mobile
About this book
It's easy to learn, so you can start making powerful apps right away.
Key Features
? Numerous code samples covering all aspects of the Kotlin language.
? Coverage on native applications, web apps, microservices, and app testing.
? Step-by-step instructions are provided in a clear and concise manner.
Description
The book 'Kotlin In-Depth, Second Edition' updates all the essential parts of Kotlin and incorporates modern principles, methodologies, and approaches for achieving efficient solutions. The book will guide you to successfully utilize Kotlin in developing JVM apps for desktop, mobile, web platforms and transferring existing Java codebases to Kotlin.The book begins with an introduction to the language and its environment, which will help you to grasp the fundamental concepts underlying Kotlin's design. The readers will learn the Kotlin tooling and the language's core syntax and structures. The book teaches Kotlin's multi-paradigm nature, which enables the creation of powerful abstractions by mixing parts of functional and object-oriented programming. This book discusses how to use standard Kotlin APIs like the standard library, reflection, and coroutine-based concurrency, as well as how to create your flexible APIs using domain-specific languages. The book demonstrates how to use Kotlin for more specific tasks such as testing, developing Android applications, developing Web applications, and developing microservices.After reading this book, you'll be prepared to dive deeper into the Kotlin ecosystem's more specialized areas, including Android applications, server-side development, native programming, and code sharing across different platforms.
What you will learn
? Acquire a deep understanding of all fundamental features of Kotlin programming.
? Utilize object-oriented and functional capabilities to create a flexible and reusable codebase.
? Leverage the Kotlin standard library to create custom domain-specific languages.
? Implement the Kotlin coroutines package to write asynchronous programming.
? A solid foundation of relevant development platforms, tools, and frameworks.
Who this book is for
The book is primarily geared towards Java and JVM developers who want to learn Kotlin and explore modern and efficient development techniques. Knowing the basics of programming is helpful but not necessary.
Table of Contents
1. Kotlin - Powerful and Pragmatic
2. Language Fundamentals
3. Defining Functions
4. Working with Classes and Objects
5. Leveraging Advanced Functions and Functional Programming
6. Using Special-Case Classes
7. Exploring Collections and I/O
8. Understanding Class Hierarchies
9. Generics
10. Annotations and Reflection
11. Domain-Specific Languages
12. Java Interoperability
13. Concurrency
14. Testing with Kotlin
15. Android Applications
16. Web Development with Ktor
17. Building Microservices
Frequently asked questions
- 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.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
CHAPTER 1
Kotlin - Powerful and Pragmatic
Structure
- What is Kotlin?
- Major components of the Kotlin ecosystem
- Setting up a Kotlin project in IDE and online editors
Objectives
What is Kotlin?
Safe
- Type inference which allows the developer to omit explicit declaration types in most cases (Java 10 introduced this for local variables)
- Nullable types regulate the usage of null and help to prevent infamous NullPointerException
- Smart casts which simplify type casting reducing the chance of casting errors at runtime
Multiparadigm
Concise and expressive
Interoperable
Table of contents
- Cover Page
- Title Page
- Copyright Page
- Dedication Page
- About the Author
- About the Reviewers
- Acknowledgements
- Preface
- Errata
- Table of Contents
- 1. Kotlin - Powerful and Pragmatic
- 2. Language Fundamentals
- 3. Defining Functions
- 4. Working with Classes and Objects
- 5. Leveraging Advanced Functions and Functional Programming
- 6. Using Special-Case Classes
- 7. Exploring Collections and I/O
- 8. Understanding Class Hierarchies
- 9. Generics
- 10. Annotations and Reflection
- 11. Domain-Specific Languages
- 12. Java Interoperability
- 13. Concurrency
- 14. Testing with Kotlin
- 15. Android Applications
- 16. Web Development with Ktor
- 17. Building Microservices
- Index