I recently published an article, “RxSwift: Better Error Handling With CompactMap”, in which I demonstrated how one of RxSwift 5’s new features could be used to improve and streamline your error handling code.
Many people found the article interesting, helpful and informative… except for one:
Which is not exactly the sort of response one likes to receive…
But it’s understandable.
Simple Examples vs Complex Examples
The problem with demonstrating new techniques using a simplified example is that the new technique often ends up looking way more involved than one doing a “simple function refresh”.
That’s especially true with RxSwift.
But if you increase the complexity to bring the example up to “real world” production levels, then you can easily hide the technique you’re trying to demonstrate beneath all of that extra code.
Nor does a simple example tend to demonstrate the true power of using RxSwift.
That said, I do know of one that does... and you’ve probably already seen it.
Github Search Example
Look at the Github search example on the RxSwift repository page.