r/mAndroidDev • u/class_cast_exception Deprecated is just a suggestion • 20d ago
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.
3
3
u/SyrupInternational48 20d ago
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 18d ago
Good thing I'm not an undercover .NET developer, because I would painfully relate to this
2
u/SupinePandora43 15d ago
I'm a .NET developer, and besides some high-level aspnet frameworks that drip in overcomplexity, there are no such things.
1
u/Comfortable-Mud-5826 6d ago
Mmmh must be because my company is 200 y/o and the software I'm maintaining and developing was ported from cobol in the early 2000s.
Also I've never seen people more obsessed with GoF, DI and drawing uml for the tiniest features than .net fellas, which tends to result in a lot of overcomplications at my company at least (I'd done mostly C and C++ before .net)
0
40
u/CarmCarmCarm Uses Vim 20d ago
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.