Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Representative sample of some sort. #92

Open
JakeWharton opened this issue Aug 10, 2015 · 8 comments
Open

Representative sample of some sort. #92

JakeWharton opened this issue Aug 10, 2015 · 8 comments

Comments

@JakeWharton
Copy link
Owner

  • Use Toolbar, react to action item presses.
  • Use SwipeRefreshLayout, react to pull-to-refresh
  • Use EditText, react to text typing
  • Use TextViews, bind text to a composite stream

This, or some handful of our operators, should be combined in a representative sample to showcase the ease of binding and composition afforded by these APIs to solve complex interaction problems.

@ZacSweers
Copy link
Contributor

A good example for edittext is username inputs when creating/editing an account. Take the text changes and pipe them right into a nice rx chain to validate and check availability. Loose mobile psuedocode below

watch for text changes
debounce/throttle so they have time to finish typing
filter out invalid usernames
flatmap network request to check username availability
observer's onError and onNext indicate the result to the user

We do it in our app, and it's always one of my go-to examples whenever I show someone how we use rxjava. A similar example could be auto complete filling where the text is first sent to the server and items are returned.

@JakeWharton
Copy link
Owner Author

Not sure this is still useful because it doesn't have a strong scope. Maybe we just list a few open source apps which are using this library? I also really don't like that approach since people will make PRs wanting to add every and any app which might not actually be using this library well.

@ZacSweers
Copy link
Contributor

I think linking some examples would be a good middle ground.

@JakeWharton
Copy link
Owner Author

Yep. I don't know any other than @f2prateek's Bee. Anyone know more?

On Thu, Feb 18, 2016 at 10:27 PM Zac Sweers notifications@github.com
wrote:

I think linking some examples would be a good middle ground.


Reply to this email directly or view it on GitHub
#92 (comment)
.

@ZacSweers
Copy link
Contributor

I could put together an example of the classic debounced search query in a gist. I've done it enough times in apps that I should probably just pull it out.

Are you looking for full app examples or also gists and articles? The only concern with external examples though is that they can/will eventually get out of date.

@feresr
Copy link

feresr commented Jul 24, 2017

It would be great to have basic sample on how to integrate RxBindings with common architectures (MVP, MVVM) or how to use with the new arch components

@JakeWharton
Copy link
Owner Author

JakeWharton commented Jul 24, 2017 via email

@RobLewis
Copy link

I'm fairly lost as to how to even start thinking about this. Need a couple of examples to crack open the wall of ignorance. (I'm familiar with RxJava but not in this context.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants