Sorry for being blunt on this, but just want to offer some feedback on this book. I think its very poorly explained. Instead of giving a good background understanding of fundamental Android concepts and even a basic syntax explanation of Kotlin in general (I’m not expecting a comprehensive explanation since there’s a Kotlin Apprentice, but I think readers are entitled to some basic explanation like null checkers, val vs vars, companion objects), the whole book is more like “Do this, now do this” kind of written format.
Take a look age page 207 for example.
view?.let {
listItemsRecyclerView =
it.findViewById<RecyclerView>(R.id.list_items_reyclerview)
listItemsRecyclerView.adapter = ListItemsRecyclerViewAdapter(list)
listItemsRecyclerView.layoutManager = LinearLayoutManager(activity)
}
You ask the reader to enter this code segment, but you made no explanation of what is the “activity”. You never even mention that each fragment has a implicit reference to the parent activity (via the getActivity()) call.
You also never even bother to explain what is the relation between context or activity. You never even bother to explain what a context is and what are its uses?
Overall, I’m very disappointed in this book and it pales deeply in comparison with other high quality books in the Ray Wenderlich collection like iOS Apprentice which I am a big fan.
I hope Ray Wenderlich will improve the quality of the books before rushing for a release or even early development release. Even your Kotlin Apprentice which was scheduled for a full release by May 2018 doesn’t even have a full release yet so obviously something is broken in the development pipeline.
I really appreciate the effort by the development team in writing this book. So I hope you all will take my feedback to make future editions better and not take it as a affront to the effort that went into producing this book which I’m sure was not an easy feat.
I encourage the authors to follow the format, and written style of the iOS Apprentice. Every segment is very properly explained and the author attempts to give a solid background understanding before diving into the code segment. Other very good Android development books are the Big Nerd Ranch Android Development or the Busy Coder’s Guide to Android development.