Executing background tasks has always been a big challenge in every environment and, in particular, on mobile devices where resources are limited. Kotlin has simplified the way you can write code improving your productivity with a new programming paradigm, enhancing object-oriented and functional programming with with simple, powerful and new constructs. Coroutines are one of these! This book is for intermediate Kotlin or Android developers who already know the basics of UI development but want to learn coroutine API in order to simplify and optimize their code. One thing you can count After reading this book, you’ll be prepared to take advantage of all the improvements coroutines have to offer! The Tutorial Team is a group of app developers and authors who write tutorials at the popular website raywenderlich.com. We take pride in making sure each tutorial we write holds to the highest standards of quality. We want our tutorials to be well written, easy to follow, and fun. If you've enjoyed the tutorials we've written in the past, you're in for a treat. The tutorials we've written for this book are some of our best yet - and this book contains detailed technical knowledge you simply won't be able to find anywhere else.
Want to really learn coroutines in Kotlin? Find another resource.
The first few chapters that introduce the subject are meandering, lack clarity of thought or sufficient substance. Instead of attempting to write a cohesive narrative on a complicated subject, the authors just choose to throw random words at you until you get tired, only to occasionally show you an inconsequential piece of code to remind you that you are reading a book on programming. Things are messy and in a weird order, which is pretty ironic for a book on concurrency.
Just go read the docs. They don’t provide a gentle introduction, but neither does this book.
A great resource for the ones looking to fully understand Kotlin Coroutines API. Very well structured and explained with a lot of hands-on code which gives us full insight while allowing amusement while learning something new.
This book needs a good editor before you can read it
I like some ideas from the book. For example, when the authors started to explain all ways how multithreading can be done on Android (AsyncTask, Handler, IntentService, etc). But maybe this task was too challenging but there is more ambiguity than clarity.
It starts with a lot of words in bold font. Looks like it should be explained, but sometimes the explanation is absent, or just rephrasing the definition like reactive programming is a programming that uses a reactive approach. I really felt a lack of some foundation, and despite I have some experience with coroutines this book brought me more doubts than clarity.
This book has a lot of mistakes. For example, when Service is described there is said that you need to call stopService() method, and just after that that neither "started" nor "bound" service don't require it - it will finish itself after making work (page 284 in my edition). Also, ambiguity about IntentService - does it work with multithreading or not. So, it can handle a few threads at a time (putting them into a queue), but not execute all of them at a time.
Also, there are a lot of typos, and quite often items in the list repeat themselves (page 309, items 2, 3, 4 and 7, 8, 9 are exactly the same). It looks like the authors needed some page amount and just put more text to fill the empty space. For example, in the chapter about Android multithreading, they provided 2 screenshots per each state (around 10 times), despite the screen didn't change that much.
I like some ideas of explanation - about delivery robots in Chapter 13, it was quite an interesting and challenging task, but most of the book is just typos and very ambiguous explanations that left you with feeling that you want to know more about the subject. In that case, it is a very inspirational book, since you didn't get the answer to how coroutines work and you are seeking it in the documentation and other resources on the Internet