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.




相關書籍

Software Architecture: The Hard Parts: Modern Trade-Off Analyses for Distributed Architectures (Paperback)

作者 Ford Neal Richards Mark Sadalage Pramod

2021-09-21

Java 2 物件導向程式教學

作者 吳佳諺

2021-09-21

Jenkins Administrator's Guide: Install, manage, and scale a CI/CD build and release system to accelerate your product life cycle

作者 Calvin Sangbin Park Lalit Adithya Samuel Gleske

2021-09-21