Pro Kotlin Web Apps from Scratch: Building Production-Ready Web Apps Without a Framework

Lilleaas, August

  • 出版商: Apress
  • 出版日期: 2023-01-25
  • 售價: $2,320
  • 貴賓價: 9.5$2,204
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

從頭開始建立生產級的網頁應用程式 - 在Java平台上使用Kotlin,而不使用框架。您將學習如何使用和組合庫,如何在不同庫之間進行選擇,以及明確和直接的代碼相對於框架中常見的隱式魔法、慣例和控制反轉的好處。

本書通過構建生產就緒的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已經擔任顧問工作十年,現在是一名獨立承包商和初創公司創始人。