- eBook:Kotlin Apprentice: Beginning Programming with Kotlin
- Author:Irina Galata, Joe Howard, Dick Lucas, Ellen Shapiro
- Data:July 9, 2018
- Pages:458 pages
Kotlin is the exciting modern language from JetBrains, creators of IntelliJ IDEA, the basis of many popular IDEs such as Android Studio and PyCharm. Since the adoption of Kotlin by Google as an official language for Android, the momentum behind Kotlin has gone off the charts. In this book, you'll start with the basics of programming using Kotlin. You'll next learn everything from collections and lambdas to classes and interfaces, and then move on to more advanced topics like functional programming and coroutines. Kotlin supports many platforms, including Android, jаvascript, the JVM, and someday even iOS. By reading this book, you'll be ready to use Kotlin on any and all of these platforms.
Who This Book Is For
This book is for complete beginners to Kotlin. No prior programming experience is necessary!
Topics Covered in Kotlin Apprentice
- Kotlin Development Environment: See how to setup a development environment for Kotlin using IntelliJ IDEA.
- Numbers and Strings: These are the basic kinds of data in any app-learn how to use them in Kotlin.
- Making Decisions: Your code doesn't always run straight through-learn how to use conditions and loops to control program flow.
- Functions and Lambdas: Group your code together into reusable chunks to run and pass around.
- Collection Types: Discover the many ways Kotlin offers to store and organize data into collections.
- Building Your Own Types: Learn how to model elements in your app using classes, objects, interfaces, and enumerations.
- Exceptions: Make your code more robust and flexible by signaling and handling exception conditions. Functional Programming: Learn how to use Kotlin in a functional style and how this can make your code clearer and more efficient.
- Coroutines: Asynchronous programming can be a complex topic on any platform, but Kotlin gives you a clear and consise approach with coroutines.
- Kotlin Platforms and Scripting: Learn about how Kotlin can be used on multiple platforms and see its use as a scripting language.
Chapter 1: Your Kotlin Development Environment
Chapter 2: Expressions, Variables & Constants
Chapter 3: Types & Operations
Chapter 4: Basic Control Flow
Chapter 5: Advanced Control Flow
Chapter 6: Functions
Chapter 7: Nullability
Section II: Collections & Lambdas
Chapter 8: Arrays & Lists
Chapter 9: Maps & Sets
Chapter 10: Lambdas
Section III: Building Your Own Types
Chapter 11: Classes
Chapter 12: Objects
Chapter 13: Properties
Chapter 14: Methods
Chapter 15: Advanced Classes
Chapter 16: Enum Classes
Chapter 17: Interfaces
Chapter 18: Generics
Section IV: Intermediate Topics
Chapter 19: Kotlin/Java Interoperability
Chapter 20: Exceptions
Chapter 21: Functional Programming
Chapter 22: Conventions & Operator Overloading
Chapter 23: Kotlin Coroutines
Chapter 24: Scripting with Kotlin