Safe Programming with Kotlin features the first three chapters of the book, The Joy of Kotlin by Pierre-Yves Saumont. In it, you’ll learn how to spot programming traps, handle effects safely, and use abstraction to prevent bugs. You’ll also explore Kotlin’s classes and interfaces, handling nulls, functional programming in Kotlin, advanced function features, and much more. With this free ebook, your flexible, concise, and safe Kotlin programs will be a joy to write and maintain!
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!
Functional Programming in Java teaches you how to incorporate the powerful benefits of functional programming into new and existing Java code. This book uses easy-to-grasp examples, exercises, and illustrations to teach core FP principles such as referential transparency, immutability, persistence, and laziness. Along the way, you'll discover which of the new functionally inspired features of Java 8 will help you most.