![]() The authors share the reasons of each refactoring steps and explain the trade-offs. ![]() It articulates the strengths and reasons first, then you go on a sort-of-pair-programming session with the authors (well, unidirectional, but always), and in a very informal way, play with the code and refactor it in different ways. This book is a great read for Java developers that even doesn't really want to go into Kotlin (yet), so that they see that Kotlin offers what Java has been trying to be for several years now. The great term introduced in the book - language's grain - is the answer to most differences and was one of the "aha!" moments for me. I've been just 6 years in the industry, and started with Java 8, so such retrospective was very valuable. However, after first pages I actually learned about the history of Java and where the differences between Java and Kotlin come from. I was sure that it was about just migrating to Kotlin, forget Java, it's crap and let's be fanboys of Kotlin. When buying the book, I thought: "I'm already past that point where I need to be guided how to go from Java to Kotlin". Once you finish this book, you'll be confident writing Kotlin from scratch, converting your existing Java when appropriate, and managing a mixed Java-Kotlin codebase as it evolves over time. You'll learn how to take advantage of functional constructs to improve program structure, reliability, and error handling. 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. ![]() But converting Java to Kotlin is just the starting point. 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 adopting a new language can be daunting, especially when you're working with business-critical Java code that must meet changing requirements. Kotlin has raised the bar for programming languages on the Java Virtual Machine with its compatibility, readability, efficiency, and tool support. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |