Java to Kotlin: A Refactoring Guidebook

Java to Kotlin: A Refactoring Guidebook

作者: McGregor Duncan Pryce Nat
出版社: O'Reilly
出版在: 2021-09-21
ISBN-13: 9781492082279
ISBN-10: 1492082279
裝訂格式: Quality Paper - also called trade paper
總頁數: 424 頁





內容描述


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.


作者介紹


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.




相關書籍

華為雲 DevCloud 敏捷開發項目實戰

作者 呂雲翔 許鴻智 楊洪洋 陳妙然 黎昆昌

2021-09-21

軟體專案開發實務|別只當編程猴 (Programming Beyond Practices: Be More Than Just a Code Monkey)

作者 Gregory T. Brown 陳健文 譯

2021-09-21

Pro Git, 2/e (Paperback)

作者 Scott Chacon

2021-09-21







2
2
2