r/mAndroidDev • u/class_cast_exception Deprecated is just a suggestion • Jul 29 '26
Best Practice / Employment Security I don't miss the Java boilerplate to be honest
No amount of "but... but... it's scalable" can justify this.
Enterprise Java is full of horrible choices and patterns.
122
Upvotes
39
u/CarmCarmCarm Uses Vim Jul 29 '26
In Android, you define:
* a repository interface
* a repository implementation
* a use case
* dependency injection to provide the repository implementation to the use case
* a viewmodel
To add 2 numbers together.
And: you get the result asynchronously, via a flow.
4
u/atomgomba Jul 29 '26
Need a Builder for the Configurer
4
u/SyrupInternational48 Jul 29 '26
I need my Builder for Factory that Generate a Builder inside Factory of Factory. I promise this is the best practice and most cleanest java ever
1
u/Comfortable-Mud-5826 Jul 31 '26
Good thing I'm not an undercover .NET developer, because I would painfully relate to this
0
u/JohnnyC_1969 Jul 29 '26
Wow, this shit is just so true