Kotlin Apprentice: Beginning Programming with Kotlin
Authors: raywenderlich.com Team – Irina Galata – Joe Howard – Dick Lucas – Ellen Shapiro
ISBN-10: 1942878508
ISBN-13: 9781942878506
Edition 版次: First
Publication Date 出版日期: 2018-07-09
Print Length 页数: 458 pages
Book Description
By finelybook
Learn how to program with Kotlin!
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,JavaScript,the JVM,and someday even iOS. By reading this book,you’ll be ready to use Kotlin on any and all of these platforms.
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.
One thing you can count on: after reading this book,you’ll be prepared to take advantage of Kotlin wherever you choose to use it!
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 lI: Collections & Lambdas
Chapter 8: Arrays & Lists
Chapter 9: Maps & Sets
Chapter 10: Lambdas
Section ll: 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