Java to Kotlin

Java to Kotlin: a refactoring guidebook

by McGregor, Duncan

Type Book
Rate 0.0 /5

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 t…

Read More ↓

Title Statements

  • Full title :Java to Kotlin: a refactoring guidebook / Duncan McGregor and Nat Pryce.

Summary

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 simple, 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.

Read More ↓

Edition Statements

  • Publication Date:©2021
  • Edition:First edition

Publication Statements

  • Publisher(s):O'Reilly Media, Inc
  • Place of Publication:Sebastopol, CA
  • Language:eng
  • Publication Date:©2021

The Physical Object

  • Description:xix, 401 pages ; : 24 cm

Edition Identifiers

  • ISBN:1492082279, 9781492082279
  • oclc:on1243306176
  • LC Classification:QA76.73.J38
  • Dewey Decimal:005.13/3

Table of Contents

Introduction -- Java to Kotlin projects -- Java to Kotlin classes -- Optional to nullable -- Beans to values -- Java to Kotlin collections -- Actions to calculations -- Static methods to top-level functions -- Multi- to single-expression functions -- Functions to extension functions -- Methods to properties -- Functions to operators -- Streams to Iterables to sequences -- Accumulating objects to transformations -- Encapsulated collections to type aliases -- Interfaces to functions -- Mocks to maps -- Open to sealed classes -- Throwing to returning -- Performing I/O to passing data -- Exceptions to values -- Classes to functions -- Continuing the journey.

Read More ↓

Subjects

Writers

Rate & Review

0.0/5
(0 people Voted)

No reviews yet. Be the first to rate this work.

Files & Downloads

  • Java to Kotlin: A Refactoring Guidebook -- (.epub)

    EPUB · 1.6 MB · updated
  • Java to Kotlin -- (.epub)

    EPUB · 2.5 MB · updated
  • Java to Kotlin: A Refactoring Guidebook -- (.pdf)

    PDF · 7.8 MB · updated
  • Java to Kotlin: A Refactoring Guidebook -- (.pdf)

    PDF · 7.3 MB · updated