Jetpack ViewModel and string resources

When writing my ViewModels I try hard to make them as Android-independent as possible. But in the real world, that's not so easy. The most common Android system dependency for a ViewModel, is the string resources.…

Multiple navigation graphs (with bottom navigation bar)

What if you have your navigation graph with all your screens, but one screen contains a navigation UI (e.g. a bottom navigation bar)? This is a common scenario if you are having some part of the app where users are not required to be logged in, but you switch layout after they log in.…

Rethinking "Always Be Coding"

I was (kind of still am) a big fan of the ABC (Always Be Coding) mantra. So spending all my available free time on coding projects would make me a super-engineer if I kept doing it, right?…

How to parse JSON in Swift 5 (with Codable)

Parsing JSON it's a task that you will need to implement almost in every project that interacts with a REST API . For this example, we are going to use Twitter API to get statuses class. { "created_at": "Wed Oct 10 20:19:24 +0000 2018", "id": 1050118621198921728, "id_str": "1050118621198921728"…