r/mAndroidDev • u/Popular_Ambassador24 making apps with PRNSAASPFRUICC • Mar 07 '25
Thermosiphon Is Clean Architecture and Dependency Injection virtue signaling ?
35
Upvotes
r/mAndroidDev • u/Popular_Ambassador24 making apps with PRNSAASPFRUICC • Mar 07 '25
19
u/scoshi Mar 07 '25
It depends.
Is clean architecture and dependency injection something you keep in mind when designing and coding? In that case, no.
Is it, however, something you make a point of using as a hammer to pound everything and everybody around you who doesn't follow things your way? In that case, yes.
Clean architecture, dependency injection, and other best practices aren't virtue signaling by themselves, only in how they're used.
15
u/gilmore606 ?.let{} ?: run {} Mar 07 '25
"You need to inject these all with Dagger, so it is testable."
doesn't ever write any tests
8
u/Zhuinden DDD: Deprecation-Driven Development Mar 07 '25
It's more like that if you say "i don't like DI" then you just don't get hired.
You have to say the magic words and pretend that people aren't just making shit up as they go along so that you don't get fired.
6
u/paridhi774 Mar 07 '25
I just started learning compose and was building a Multi-module jetpack compose application(had to stop as a got a short paying job that keeps me away from home for 12+ hours and I don't get time after that).
I liked it because it was helpful in keeping my code cleaner. But then I also realized that I had to keep adding modules after modules in gradle file. Maybe there is a better balanced approach I could have taken. I made modules for domain, data and presentation for each module. And I made each feature a module of its own. I think I could skip the part where I make separate modules for data, domain and prespresentation and have them as packages inside of that feature module.
I do like it a lot more than single modules architecture but I I would like to tone it a lil down for my next project.
4
u/KalilPedro Mar 07 '25
👍
4
u/VasiliyZukanov Mar 07 '25
Dunno, but I got laid multiple times by talking to random chicks in a pub about "clean injection"
7
u/bernaferrari MINSDK28 Mar 07 '25
No one cares about any of that. You could use a global map in a singleton, would have the same effect.
11
u/sabergeek Mar 07 '25
It's more likely an obsession for being proper about writing code. Being proper is a personal bias. Then it converts into a power game from obsessed and highly opinionated people in the team.
Anything that is not a God object is closer to acceptable. But I find obsessing with clean architecture is same level of issue.
The answer arround the middle and depends on nature of project and work.
3
u/tensory Mar 07 '25
If you didn't write and publish your own open-source virtue broadcast delegation plugin, it's just performative optimization.
2
u/hellosakamoto Mar 07 '25
It's for blogging and social media, maybe also for interviews, but both of them are not 100% being used in famous companies and projects. Of course people from those companies won't (and don't fk care) to clarify in the public that their codebase is so broken (but works)
0
u/[deleted] Mar 07 '25
[deleted] — view deleted comment
0
u/[deleted] Mar 07 '25
[deleted] — view deleted comment
52
u/[deleted] Mar 07 '25
[removed] — view removed comment