,

Java to Kotlin

A Refactoring Guidebook

Paperback Engels 2021 1e druk 9781492082279
€ 76,35
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

It takes a week to travel the 8,000 miles overland from Java to Kotlin. If you're an experienced Java developer who has tried the Kotlin language, you were probably productive in about the same time.

You'll have found that they do things differently in Kotlin, though. Nullability is important, collections are different, and classes are final by default. Kotlin is more functional, but what does that mean, and how should it change the way that you program? And what about all that Java code that you still have to support?

Your tour guides Duncan and Nat first made the trip in 2015, and they've since helped many teams and individuals follow in their footsteps. Travel with them as they break the route down into legs like Optional to Nullable, Beans to Values, and Open to Sealed Classes. Each explains a key concept and then shows how to refactor production Java to idiomatic Kotlin, gradually and safely, while maintaining interoperability.

The resulting code is simpler, more expressive, and easier to change. By the end of the journey, you'll be confident in refactoring Java to Kotlin, writing Kotlin from scratch, and managing a mixed language codebase as it evolves over time.

Specificaties

ISBN13:9781492082279
Trefwoorden:Programmeren, Java, Kotlin
Taal:Engels
Bindwijze:paperback
Aantal pagina's:300
Uitgever:O'Reilly
Druk:1
Verschijningsdatum:24-8-2021
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Over Nat Pryce

Nat Pryce (UK) is an independent consultant with expertise in software design and software development process and practices. He is also a research fellow at Imperial College. Nat is a developer of the jMock and nMock libraries for testdriven development.

Andere boeken door Nat Pryce

Inhoudsopgave

Preface
How This Book Is Organized
How Did We Choose the Topics?
Complexity
Perfect Code
Code Formatting
Conventions Used in This Book
Using Code Examples
O’Reilly Online Learning
How to Contact Us
Acknowledgments
Duncan’s Bit
Nat’s Bit

1. Introduction
The Grain of a Programming Language
An Opinionated History of Java Programming Style
Primeval Style
Bean Style
Enterprise Style
Modern Style
The Future
The Grain of Kotlin
Refactoring to Kotlin
Refactoring Principles
We Assume Good Test Coverage
We Commit for Git Bisect
What Are We Working On?
Let’s Get Started!

2. Java to Kotlin Projects
Strategy
Adding Kotlin Support to a Java Build
Moving On

3. Java to Kotlin Classes
A Simple Value Type
The Limitations of Data Classes
Moving On

4. Optional to Nullable
Representing Absence
Refactoring from Optional to Nullable
Refactoring to Idiomatic Kotlin
Moving On

5. Beans to Values
Beans
Values
Why Should We Prefer Values?
Refactoring Beans to Values
Moving On

6. Java to Kotlin Collections
Java Collections
Kotlin Collections
Refactoring from Java to Kotlin Collections
Fix Up the Java
Convert to Kotlin
Moving On
Afgekapt op 60 regels

Managementboek Top 100

€ 76,35
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Java to Kotlin