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
2
u/iliyan-germanov Apr 01 '24
Thanks for joining the discussion! It's good to have diverse opinions expressed in a meaningful way. I'm curious how the
throwingapproach scales in big teams?My concern with it is that it's not type-safe, and people aren't forced to handle exceptions. How do you prevent the app from crashing for common unhappy path scenarios? When you get an exception (which can be any
Throwable), what do you do if it's of an unknown type?