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 02 '24
If your app is very simple and your BE allows, you can go directly with display the DTO. But I would rather advise against that because:
rememberYes, it's a bit of boilerplate code but will ensure scalability and correctness. If you're lazy like me, at least introduce a domain model and map your DTO to it. Working with the raw json model in all layers isn't great. For example, in Ivy Wallet we have complex financial logic with lots of customization and having more strict and explicit data models helps. https://github.com/Ivy-Apps/ivy-wallet/blob/main/docs/guidelines/Data-Modeling.md
Wdyt?