Comments (6)
Fantastic program, I quite enjoyed it π
My suggestion would have been to split it into two shorter parts (there was a good separation of topics about half way through the program), it took me a while to find the free time to listen to the whole episode.
Thanks for explaining Monads, the concept is still exploding in my mind but your explanation is close to what I found in this monads ELI5 and the concept is starting to crystalize in my mind.
I really liked the part where you guys discuss the similarities between Mosby3 and Paco's solution, although I would like a deeper dive in the differences of each solution to understand the nuances. Super interesting topic π
Note: The testing robots thing is indeed an abstraction from the UI layer for testing and it's originally called PageObject pattern coming from the old wild web world. Martin Fowler introduced it here: https://martinfowler.com/bliki/PageObject.html
Keep up with the high quality of the topics! π―
from thecontext-podcast.
Examples:
Observable.just(1).ofType(String::class.java).subscribe { /* Compiles :( */ }
Observable.just(1).ofType1<String>().subscribe { /* Compiles :( */ }
Observable.just(1).ofType2<Int, String>().subscribe { /* Not compiles! But requires specifying upstream type */ }
from thecontext-podcast.
cc @pakoito
from thecontext-podcast.
Errata: in 30:30 I say that to do filter + map to change based on type you need flatMap
. There's actually an operator for that called ofType
.
from thecontext-podcast.
Yup (we have custom ofType()
which is filter + map under the hood, that what I was talking about), btw, @pakoito pls just write separate comments instead of editing one because nooooone receives emails about edited comments πΈ
from thecontext-podcast.
Btw, here is the code of problematic ofType
(not filter
as I said in the podcast, my bad):
// This can be applied to any observable no matter which type is emitted by upstream
// and may lead to no events in downstream if incompatible types are used.
inline fun <reified Downstream : Any> Observable<*>.ofType()
: Observable<Downstream> = ofType(Downstream::class.java)
// This version has type bounds, but for some reason Kotlin compiler requires
// you to also pass upstream type, though I think it should be able to infer it.
inline fun <Upstream, reified Downstream : Upstream> Observable<Upstream>.ofType2()
: Observable<Downstream> = filter { it is Downstream }.map { it as Downstream }
Same problem of ofType1()
will occur if you'll use stardard RxJava's ofType(Class)
in both 1.x and 2.x.
from thecontext-podcast.
Related Issues (20)
- Episode 22: Women in Tech
- Episode 23: Rise of the Machines
- Episode 24: Ok Multiplatform with Jesse Wilson and Egor Andreevich
- Publish on Spotify? HOT 9
- Transfer the repository to the dedicated organization HOT 5
- Episode 25: How Itβs Made β Freeletics HOT 6
- Episode 26: How Itβs Made β Juno
- Episode 27: Reusable Components with Sebastian Kaspari from Mozilla Firefox
- Episode 28: Fun with Canvas with Rebecca Franks HOT 3
- Interested in participating in a "How it's made" interview - Babylon Health HOT 4
- Episode 29: How Itβs Made β Babylon Health with Sakis Kaliakoudas
- New feature request: publish to Google Play HOT 12
- Discussion Episode 16: Tools HOT 10
- Rename Markdown files so they're sorted by numbers HOT 3
- Update <itunes:owner> to mention Hannes and Artur.
- Discussion Episode 17: Switching Gears to C# and .NET
- Discussion Episode 18, Part 1: Android Everywhere
- Discussion Episode 19: Model-View-Intent HOT 1
- Discussion Episode 20: public final Agile HOT 7
- Discussion Episode 21: Rx Must Die HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thecontext-podcast.