Fragmented - Android Developer Podcast

The Fragmented Podcast is a podcast for Android Developers hosted by Donn Felker and Kaushik Gopal. Our goal is to help you become a better Android Developer. We chat about topics such as Testing, Dependency Injection, Android Patterns and Practices, useful libraries and much more. We will also be interviewing some of the top Android Developers out there. Subscribe now and join us on the journey of being an Android Developer.



episode 155: 155: Naming conventions for RxJava Observables

The Android community has come to use Rx pretty heavily but surprisingly there hasn't been any one convention that's won, when it comes to how we name our functions that return Observables. getUser(), user(), userUpdates() ? In this mini-episode dutifully does the yak-shaving for you and discusses what some options are and what the community has been gravitating towards. Enjoy. Shownotes

  • yak-shaving
Upday's convention:
  • Florina's tweet
  • Upday's blog post - Reactive Frustrations 1
Options // option 1 fun getUser(): Single<User> // yuck // option 2 fun user(): Observable<User> // but what does this mean? // option 3 fun user(): Single<User> fun userUpdates(): Observable<User> // or fun userStream(): Observable<User> // this is looking good // option 4 (upday style) fun userOnce(): Single<User> fun userStream(): Observable<User> fun userOnceAndStream(): Observable<User> Stay tuned for a future episode, where we discuss more details and more complicated cases to handle (like emitting a list of user, policies for fetching the first user as quickly as possible etc.). Also #FinishNotation. Sponsors ????
  • - Your code is broken. Let’s fix it together -
  • Discord chat or @fragmentedcast or our Youtube channel
  • @donnfelker and donnfelker (on Instagram)
  • @kaushikgopal and kaushikgopal (on Instagram)


 2019-03-11  21m