Kotlin Coroutines 1.4 is here, as is another chance to stave off boredom.

StateFlow

Imagine we have a fragment that is interested in a todo task from the classic JsonPlaceHolder API.

Since we are working with flow, we need to launch a coroutine to collect it.

  • Notice value…


Flow is fun to play around with.

FlowGuy seems like someone trustworthy that gets the job done. He holds this stream that will emit a new list containing humans every 1 second.


🤖::execute order process death::🤖

The android framework has a curious case of killing any app that’s in the background for more than a few minutes.

The RedditViewModel is responsible for fetching a post from Reddit while the calling activity/fragment is responsible for observing the redditPostData variable.


This is part of a series head-scratching my way into coroutines. It can be read as a standalone although you might be missing out on some spicy memes here and here.

Testing ViewModels without losing the will to live

A ViewModel “sits” quite close to the activity/fragment. Something that a user would be looking at generally, even if they are unaware.

Get some dependencies first

Where we left off

Our little ViewModel looks…


Or how to pretend you know what you are doing on pull requests

This is part of a series head-scratching my way into coroutines. It can be read as a standalone although you are missing out on some stale memes on the other one:

Where we left off

The little repository class fetching a Reddit post works fine (?!) and your pull request is ready.

Hol’ up ❗

Get some dependencies first

Enter the CoroutineTestRule

We need some kind of test rule…


Concurrency on Android has been weird to say the least.

Reddit driven development

Most apps out there are based on the same…


Or how to use MVVM to get some cats so your code is not all over the place

This is the second mem- ehhh part in the “👏👏 Retrofit review 👏👏” series.

Source code:

Previously on Meme Review

After copy pasting everything like any self respecting Stack Overflow user, we reached a point where everything works.. but looks kind of.. meh.

Everything is thrown in the activity 😱!


Or how to load images from the internets when you don’t know what you are doing

This is a spin-off to the “Retrofit review” article I wrote a while back.

not this guy again

What is Glide anyway?

Glide is an image loading library developed by people smarter than me.(granted, I’m not very bright)


Or how to use Kotlin + RxJava to get some cats

This is a spin-off of the “Android RxJava in 5 minutes” article I wrote a while back and has stuff that you might find useful for this one.

What is an API anyway?

It seems like everyone and their mother is running an API on the internets. If you are not too sure what an API is, or how to consume (????) it no less, fear not. This tutorial will teach you how you too can copy-paste your way to a lead dev position in Silicon Valley.

Cats are important

Doing something of value is paramount to finding happiness aside from browsing stale…


Hello me old chum

This is a kind-of a sequel of the “Android RxJava in 5 minutes” article I wrote a while back and has stuff that you might find useful for this one.

Research says that 50% of what you need to know as an android dev is displaying a list of something on the screen. In the olden days populating that list and updating it was just meh.

Costa Fotiadis

Android dude @JustEatUK

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store