Dr. Functionallove or: How I Learned to Stop Worrying and Love Immutability

How the real world taught me to embrace immutable data structures

So I’m working on this Time Tracker Android App that among other things displays a list of so-called Categories. I’m using the typical tools for that: a RecyclerView with a ListAdapter that takes its list from a LiveData provided by the Room database library. The following image shows what’s happening: The database (Room) issues a list of Categories (-2) which is given to the Display (-1) (aka ListAdapter as part of Recyclerview). [Read More]