The Joy of Kotlin

  • 8h 23m
  • Pierre-Yves Saumont
  • Manning Publications
  • 2018

Summary

Maintaining poor legacy code, interpreting cryptic comments, and writing the same boilerplate over and over can suck the joy out of your life as a Java developer. Fear not! There's hope! Kotlin is an elegant JVM language with modern features and easy integration with Java. The Joy of Kotlin teaches you practical techniques to improve abstraction and design, to write comprehensible code, and to build maintainable bug-free applications.

About the Technology

Your programming language should be expressive, safe, flexible, and intuitive, and Kotlin checks all the boxes! This elegant JVM language integrates seamlessly with Java, and makes it a breeze to switch between OO and functional styles of programming. It's also fully supported by Google as a first-class Android language. Master the powerful techniques in this unique book, and you'll be able to take on new challenges with increased confidence and skill.

About the Book

The Joy of Kotlin teaches you to write comprehensible, easy-to-maintain, safe programs with Kotlin. In this expert guide, seasoned engineer Pierre-Yves Saumont teaches you to approach common programming challenges with a fresh, FP-inspired perspective. As you work through the many examples, you'll dive deep into handling errors and data properly, managing state, and taking advantage of laziness. The author's down-to-earth examples and experience-driven insights will make you a better—and more joyful—developer!

What's inside

  • Programming with functions
  • Dealing with optional data
  • Safe handling of errors and exceptions
  • Handling and sharing state mutation

About the Reader

Written for intermediate Java or Kotlin developers.

About the Author

Pierre-Yves Saumont is a senior software engineer at Alcatel-Submarine Networks. He's the author of Functional Programming in Java (Manning, 2017).

In this Book

  • Making Programs Safer
  • Functional Programming in Kotlin—An Overview
  • Programming with Functions
  • Recursion, Corecursion, and Memoization
  • Data Handling with Lists
  • Dealing with Optional Data
  • Handling Errors and Exceptions
  • Advanced List Handling
  • Working with Laziness
  • More Data Handling with Trees
  • Solving Problems with Advanced Trees
  • Functional Input/Output
  • Sharing Mutable States with Actors
  • Solving Common Problems Functionally
SHOW MORE
FREE ACCESS