Right now I’m at chapter 24 and I’m very disappointed that chapter 19 introduced DataBinding and MVVM and then nothing came out of it.
From my peeks into later chapters, MVVM and DataBinding aren’t used which is very disappointing. Maybe I’m wrong but I swear whenever I looked into code, it used old
R.findViewById() and not Data Binding. What was the rationale behind that decision?
My personal thoughts on why from chapter 19 onwards, MVVM + DataBinding should’ve been used:
- one chapter is simply not enough for such a broad concept
- we already had some experience with classic MVC from previous chapters
- reverting back to classic MVC makes us simply forget chapter 19 existed at all, making chapter 19 seem like nothing more than a passing example
- as far as I know, MVVM + DataBinding (or Butterknife/View Binding) are used a lot. Since the book already uses commonly used tools like Retrofit or Room, why not use the most popular Android architecture?