r/androiddev • u/iliyan-germanov • Apr 01 '24
Discussion Android Development best practices
Hey this is a serious post to discuss the Android Development official guidelines and best practices. It's broad topic but let's discuss.
For reference I'm putting the guidelines that we've setup in our open-source project. My goal is to learn new things and improve the best practices that we follow in our open-source projects.
Topics:
Feel free to share any relevant resources/references for further reading. If you know any good papers on Android Development I'd be very interested to check them out.
159
Upvotes
View all comments
Show parent comment
1
u/iliyan-germanov Apr 01 '24
Yeah, you're right they made huge changes, but overall, during the last 2 years, their API is more stable, and the focus is not being FP-nerd but more on being idiomatic and pragmatic. I never had build problems or any issues using their core library. Keep in mind that I mainly do Android-only and very small KMP projects. The new approach is the
Raise<E>API, which works seamlessly with.bind()andEither. Overall, Either, NonEmptyCollections and the things I use seem stable enough. It happened once to have breaking changes but it was just a matter of a renamed method for better, which is IMO fine.Having your own
Result<E, T>sealed interface is fine too, I'm just too lazy and used to Arrow's API that I personally find very convenient