Kotlin Programming Cookbook: Over 100 recipes to build robust mobile and web applications with Kotlin, Spring Boot, and Android

Aanand Shekhar Roy, Rashi Karanpuria

  • 出版商: Packt Publishing
  • 出版日期: 2018-01-24
  • 定價: $1,650
  • 售價: 6.0$990
  • 語言: 英文
  • 頁數: 434
  • 裝訂: Paperback
  • ISBN: 1788472144
  • ISBN-13: 9781788472142
  • 相關分類: AndroidJVM 語言Java 相關技術
  • 立即出貨 (庫存=1)

買這商品的人也買了...

商品描述

Discover Android programming and web development by understanding the concepts of Kotlin Programming

Key Features

  • Practical solutions to your common programming problems with Kotlin 1.1
  • Leverage the functional power of Kotlin to ease your Android application development
  • Learn to use Java code in conjunction with Kotlin

Book Description

The Android team has announced first-class support for Kotlin 1.1. This acts as an added boost to the language and more and more developers are now looking at Kotlin for their application development. This recipe-based book will be your guide to learning the Kotlin programming language.

The recipes in this book build from simple language concepts to more complex applications of the language. After the fundamentals of the language, you will learn how to apply the object-oriented programming features of Kotlin 1.1. Programming with Lambdas will show you how to use the functional power of Kotlin.

This book has recipes that will get you started with Android programming with Kotlin 1.1, providing quick solutions to common problems encountered during Android app development. You will also be taken through recipes that will teach you microservice and concurrent programming with Kotlin. Going forward, you will learn to test and secure your applications with Kotlin. Finally, this book supplies recipes that will help you migrate your Java code to Kotlin and will help ensure that it's interoperable with Java.

What you will learn

  • Understand the basics and object-oriented concepts of Kotlin Programming
  • Explore the full potential of collection frameworks in Kotlin
  • Work with SQLite databases in Android, make network calls, and fetch data over a network
  • Use Kotlin's Anko library for efficient and quick Android development
  • Uncover some of the best features of Kotlin: Lambdas and Delegates
  • Set up web service development environments, write servlets, and build RESTful services with Kotlin
  • Learn how to write unit tests, integration tests, and instrumentation/acceptance tests.

Who This Book Is For

This book will appeal to Kotlin developers keen to find solutions for their common programming problems. Java programming knowledge would be an added advantage.

Table of Contents

  1. Installation and working with Environment
  2. Control flow
  3. Classes and Objects
  4. Functions
  5. Object oriented programming
  6. Collections Framework
  7. Handling File operations in Kotlin
  8. Anko Commons and Extension function
  9. Anko Layouts
  10. Databases and Dependency Injection
  11. Networking and Concurrency
  12. Lambdas and Delegates
  13. Testing
  14. Web services with Kotlin

商品描述(中文翻譯)

探索 Kotlin 編程和網頁開發,了解 Kotlin 編程概念的關鍵特點

主要特點:
- 通過 Kotlin 1.1 提供的實用解決方案解決常見的編程問題
- 利用 Kotlin 的功能強大來簡化 Android 應用程序開發
- 學習如何與 Java 代碼一起使用 Kotlin

書籍描述:
Android 團隊宣布對 Kotlin 1.1 提供一流支持。這對語言來說是一個額外的推動,越來越多的開發人員現在正在考慮使用 Kotlin 進行應用程序開發。這本基於配方的書將成為您學習 Kotlin 編程語言的指南。

本書中的配方從簡單的語言概念到更複雜的語言應用程序逐步構建。在掌握語言的基礎知識之後,您將學習如何應用 Kotlin 1.1 的面向對象編程功能。通過使用 Lambda 編程,您將學習如何使用 Kotlin 的功能強大。

本書提供了使用 Kotlin 1.1 開始 Android 編程的配方,為 Android 應用程序開發中常見問題提供快速解決方案。您還將通過配方學習使用 Kotlin 進行微服務和並發編程。此外,您還將學習如何使用 Kotlin 測試和保護應用程序。最後,本書提供了幫助您將 Java 代碼遷移到 Kotlin 並確保與 Java 互通的配方。

您將學到什麼:
- 理解 Kotlin 編程的基礎知識和面向對象概念
- 探索 Kotlin 中集合框架的全部潛力
- 在 Android 中使用 SQLite 數據庫,進行網絡調用並從網絡獲取數據
- 使用 Kotlin 的 Anko 库進行高效快速的 Android 開發
- 揭示 Kotlin 的一些最佳功能: Lambda 和 Delegates
- 設置 Web 服務開發環境,編寫 Servlet,並使用 Kotlin 構建 RESTful 服務
- 學習如何編寫單元測試、集成測試和儀器/接受測試。

本書適合對解決常見編程問題感興趣的 Kotlin 開發人員。具備 Java 編程知識將是一個額外的優勢。

目錄:
1. 安裝和使用環境
2. 控制流程
3. 類和對象
4. 函數
5. 面向對象編程
6. 集合框架
7. Kotlin 中的文件操作
8. Anko Commons 和擴展函數
9. Anko 佈局
10. 數據庫和依賴注入
11. 網絡和並發
12. Lambda 和 Delegates
13. 測試
14. 使用 Kotlin 的 Web 服務