Java to Kotlin: A Refactoring Guidebook
暫譯: 從 Java 到 Kotlin:重構指南
McGregor, Duncan, Pryce, Nat
- 出版商: O'Reilly
- 出版日期: 2021-09-21
- 定價: $2,280
- 售價: 9.5 折 $2,166
- 語言: 英文
- 頁數: 424
- 裝訂: Quality Paper - also called trade paper
- ISBN: 1492082279
- ISBN-13: 9781492082279
-
相關分類:
Java 程式語言、JVM 語言、Refactoring
-
相關翻譯:
Java 到 Kotlin (Java to Kotlin: A Refactoring Guidebook) (簡中版)
立即出貨 (庫存 < 3)
買這商品的人也買了...
商品描述
Kotlin has raised the bar for programming languages on the Java Virtual Machine with its compatibility, readability, and tool support. But adopting a new language can be daunting, especially when you're working with business-critical Java code that must meet changing requirements.
This book takes a novel approach to introducing Kotlin to Java programmers: showing you how to gradually refactor Java code to idiomatic Kotlin while continuing to evolve its functionality. But converting Java to Kotlin is just the starting point. Kotlin has many features beyond Java.
Using worked examples, authors Duncan McGregor and Nat Pryce guide you through honing the converted code to make it simpler, more efficient, more expressive, and easier to change. You'll learn how to take advantage of functional constructs to improve program structure, reliability, and error handling.
Once you finish this book, you'll be confident in writing Kotlin from scratch, converting your existing Java to Kotlin, and managing a mixed Java-Kotlin codebase as it evolves over time.
商品描述(中文翻譯)
Kotlin 在 Java 虛擬機上的程式語言標準提升了其相容性、可讀性和工具支援。然而,採用一種新語言可能會讓人感到畏懼,尤其是當你正在處理必須滿足不斷變化需求的商業關鍵 Java 代碼時。
本書採取了一種新穎的方法來向 Java 程式設計師介紹 Kotlin:展示如何逐步將 Java 代碼重構為慣用的 Kotlin,同時持續演進其功能。但將 Java 轉換為 Kotlin 只是起點,Kotlin 擁有許多超越 Java 的特性。
透過實作範例,作者 Duncan McGregor 和 Nat Pryce 指導你精煉轉換後的代碼,使其更簡單、更高效、更具表達力,並且更易於變更。你將學會如何利用函數式結構來改善程式結構、可靠性和錯誤處理。
完成本書後,你將能夠自信地從零開始撰寫 Kotlin,將現有的 Java 轉換為 Kotlin,並隨著時間的推移管理混合的 Java-Kotlin 代碼庫。
作者簡介
Nat and Duncan both started programming in Java before its 1.0 release, and have 55 years of combined experience on both the JVM and other platforms. Until they discovered Kotlin in 2015 Java was their language of choice for most applications.
That changed when they fell in love with JetBrains' new creation and spread the word, first with their own colleagues and clients, then the JVM community in London, and then internationally through conferences. They have both presented at KotlinConf, where they also run a one day workshop "Refactoring to Kotlin," which forms the basis for the introductory chapters of this book.
Nat and Duncan both started programming in Java before its 1.0 release, and have 55 years of combined experience on both the JVM and other platforms. Until they discovered Kotlin in 2015 Java was their language of choice for most applications.
That changed when they fell in love with JetBrains' new creation and spread the word, first with their own colleagues and clients, then the JVM community in London, and then internationally through conferences. They have both presented at KotlinConf, where they also run a one day workshop "Refactoring to Kotlin," which forms the basis for the introductory chapters of this book.
作者簡介(中文翻譯)
Nat 和 Duncan 都在 Java 1.0 發布之前開始編程,並在 JVM 及其他平台上擁有 55 年的綜合經驗。在 2015 年發現 Kotlin 之前,Java 是他們大多數應用程式的首選語言。
當他們愛上 JetBrains 的新創作並開始傳播這個消息時,這一切發生了變化,首先是與他們的同事和客戶,然後是倫敦的 JVM 社群,接著通過會議向國際社群推廣。他們都曾在 KotlinConf 上發表演講,並且還舉辦了一天的工作坊「重構到 Kotlin」,這也是本書入門章節的基礎。