Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework
暫譯: 從零開始的專業 Kotlin 網頁應用程式:無框架構建生產就緒的網頁應用程式

Lilleaas, August

  • 出版商: Apress
  • 出版日期: 2023-01-25
  • 售價: $2,370
  • 貴賓價: 9.5$2,252
  • 語言: 英文
  • 頁數: 326
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1484290569
  • ISBN-13: 9781484290569
  • 相關分類: JVM 語言Scratch
  • 海外代購書籍(需單獨結帳)

商品描述

Build production-grade web apps from scratch - without using frameworks - with Kotlin on the Java platform. You'll learn how to use and compose libraries, how to choose between different libraries, and the benefits of explicit and straight-forward code, vs. the implicit magic, conventions, and inversion of control you often see in frameworks.
The book teaches the Kotlin language by building production-ready Kotlin code. You'll gain a deep understanding of the idiomatic use of the Kotlin language along with knowledge of how to apply Kotlin in production-grade web apps. The book also bridges the gap between building from scratch and using existing frameworks. For example, you'll learn how to integrate Spring Security-based authentication in web apps written from scratch, so you can leverage existing tooling in your organization without having to take on the entire Spring framework.

The first section of the book sets up the base structure of your web app, such as routing, configuration files, and database migrations. The remaining chapters are broken into individual aspects of building production-ready web apps. Appendices at the end of the book explain how to use different libraries than the ones chosen in the main chapters, so you'll learn how to decouple your code from specific libraries, and choose between many different libraries to get the job done in your own web apps.

What You Will Learn

  • Compose libraries and manage boilerplate code using idiomatic and powerful Kotlin
  • Manage and query SQL databases without ORMs and mapping layers
  • Write resilient and change-proof tests in support of test-driven development practices
  • Create traditional, HTML-based web apps, APIs for JavaScript-based single-page web apps and native mobile apps
  • Manage parallelism and external service calls using Kotlin co-routines
  • Deploy to production using embedded servers, WAR files, and serverless approaches
  • Bridge the gap between custom-built apps and enterprise, using Spring Context and Spring Security

Who This Book Is For
The expert developer who is ready to take full control of the tech stack, and use the Kotlin language, type system, and standard library, to ship production-ready web apps. Readers should have prior programming experience. Experience with Java or another JVM language is helpful.

商品描述(中文翻譯)

從零開始構建生產級的網頁應用程式 - 不使用框架 - 使用 Kotlin 在 Java 平台上。您將學習如何使用和組合庫,如何在不同的庫之間進行選擇,以及明確且直接的代碼的好處,與您在框架中經常看到的隱式魔法、慣例和控制反轉相比。這本書通過構建生產就緒的 Kotlin 代碼來教授 Kotlin 語言。您將深入了解 Kotlin 語言的慣用法,並學習如何在生產級網頁應用程式中應用 Kotlin。這本書還彌補了從零開始構建和使用現有框架之間的差距。例如,您將學習如何在從零開始編寫的網頁應用程式中整合基於 Spring Security 的身份驗證,這樣您就可以利用組織中現有的工具,而不必承擔整個 Spring 框架。

本書的第一部分設置了您的網頁應用程式的基本結構,例如路由、配置文件和數據庫遷移。其餘章節則分為構建生產就緒網頁應用程式的各個方面。書末的附錄解釋了如何使用與主要章節中選擇的不同的庫,因此您將學習如何將代碼與特定庫解耦,並在自己的網頁應用程式中選擇多種不同的庫來完成工作。

您將學到什麼


  • 使用慣用且強大的 Kotlin 組合庫並管理樣板代碼

  • 在不使用 ORM 和映射層的情況下管理和查詢 SQL 數據庫

  • 撰寫具有韌性和抗變更的測試,以支持測試驅動開發實踐

  • 創建傳統的基於 HTML 的網頁應用程式、JavaScript 基於單頁應用程式的 API 和原生移動應用程式

  • 使用 Kotlin 協程管理並行性和外部服務調用

  • 使用嵌入式伺服器、WAR 文件和無伺服器方法進行生產部署

  • 使用 Spring Context 和 Spring Security 彌補自定義應用程式與企業應用程式之間的差距

本書適合誰

這本書適合準備全面掌控技術棧的專業開發人員,並使用 Kotlin 語言、類型系統和標準庫來交付生產就緒的網頁應用程式。讀者應具備先前的程式設計經驗,具備 Java 或其他 JVM 語言的經驗將會有所幫助。

作者簡介

​August Lilleaas has built web apps, user interfaces, and real-time systems since 2004, and mobile apps since the app stores opened in the late 2000s. After picking up Clojure in 2012, he left the frameworks and ORMs behind and started to build web apps from scratch, and has shipped to production using Clojure, Groovy, Node.JS, Elixir, and Kotlin. August has worked as a consultant for a decade and is now an independent contractor and startup founder.

作者簡介(中文翻譯)

August Lilleaas 自 2004 年以來一直在構建網頁應用程式、使用者介面和即時系統,並自 2000 年代末應用程式商店開放以來開始開發行動應用程式。在 2012 年學習 Clojure 之後,他放棄了框架和 ORM,開始從零開始構建網頁應用程式,並使用 Clojure、Groovy、Node.js、Elixir 和 Kotlin 發布到生產環境。August 擔任顧問已有十年,現在是一名獨立承包商和創業公司創始人。