Yes every single thing you see on the screen is a separate module in the project. And each module has it’s own spearation of layers so it’s CLEAN. And it has MVI at every presentation layer.
There isn’t a single real world usecase that I haven’t covered in my MVI reducer state machine, so just know that this TextView will show error when the input is not valid :)))
Yes I might need half an hour to add a GSON dependency to gradle, but at least when I want to change the version I change it at only one place ;)
OMG you’re right. Just imagine how much scalability and testability would improve if we made the data class LoginCredentials(username:String, password:String) be a separate module
I absolutely hate with every single atom in my body when people say that Clean Architecture makes a project "scalable". NO. Please stop. Scalability is NOT related to code quality, AT ALL. Scalability is the ability to handle more work load. You can have the most horrific code in existence, and still scale to the moon. Both things are 100% unrelated. What you are thinking of is called Mantainability.
Please use words carefully, with their correct meaning.
It's server devs who don't know Android dev, who apply scalability to Android apps.............I think this discussion did take place in the previous company I worked at, one guy did say something stupid like asking if the app was scalable.
Also Devs now: "yes my test class needs to be 30k lines with a few hundred lines per test in setup, my feature fragment is huge (6k lines). No I don't know what any of the tests do but I made a change so I'll copy the last one and make a 1 line change to it" 🤢
oh no, client devs think their task should be difficult but instead they just get a JSON and then show it on the UI, so they like to add 5 extra steps inbetween to justify the time spent.
Android Studio has become buggier and buggier, while Google keeps removing useful functionality with every release. I'm still on Koala. In fact I have a side install of Hedgehog to use certain functionality that Google removed after that.
Real architects start by writing an IResponseMapperFactoryProviderInterface. Only after that do they think about the actual data. Honor above convenience.
It sounds to me like you've never had to do the "refactor" when the codebase you inherited used response objects throughout the UI and the BE changed entirely.
Before architecture: add 1 field to the response and then go update it everywhere it’s used.
After architecture: add 1 field to the response, add 1 field to the domain object, add 1 line to the mapper… and then go update it everywhere it’s used.
And if the whole response changes? Then everything fucked up anyway, because old app versions can’t be fixed. That’s why we have v1/v2/etc endpoints.
And if the whole response changes? Then everything fucked up anyway, because old app versions can’t be fixed. That’s why we have v1/v2/etc endpoints.
Exactly; the problem with "i added domain on the client (which is the same as the API)" is that you're stuck with the v1 response forever, and you're trying to map the v5 response to the v1 copy.
To be fair, if you are using local persistence, you should never re-use the API responses as DB tables; that always causes trouble.
Backend is supposed to version their APIs. And not just change at a whim.
Also, you should be using annotations to map the JSON/XML/whatever and name the data class properties yourself, to ensure it doesn't require a bunch of renaming.
People like to complain about clean arch..... but honestly it makes the most sense if you always only display data from your db. I like to immediately store api data I need in the db, and have my viewmodels listen for db changes and re-actively update the ui state.
If you work that way your db naturally has it's own representation of the api data that may or may not map one to one with the api. You basically end up implementing most of clean arch without thinking about it.
•
u/Zhuinden DDD: Deprecation-Driven Development Nov 25 '25
AI repost bots strike again
8
u/ShriekinKraken Nov 25 '25
Where's the Adonis who has their entire app in one God Activity and AsyncTask?
7
u/NiceVu Nov 25 '25
Yes every single thing you see on the screen is a separate module in the project. And each module has it’s own spearation of layers so it’s CLEAN. And it has MVI at every presentation layer.
There isn’t a single real world usecase that I haven’t covered in my MVI reducer state machine, so just know that this TextView will show error when the input is not valid :)))
Yes I might need half an hour to add a GSON dependency to gradle, but at least when I want to change the version I change it at only one place ;)
7
u/[deleted] Nov 26 '25
I absolutely hate with every single atom in my body when people say that Clean Architecture makes a project "scalable". NO. Please stop. Scalability is NOT related to code quality, AT ALL. Scalability is the ability to handle more work load. You can have the most horrific code in existence, and still scale to the moon. Both things are 100% unrelated. What you are thinking of is called Mantainability.
Please use words carefully, with their correct meaning.
5
u/waterpoweredmonkey Nov 25 '25
Also Devs now: "yes my test class needs to be 30k lines with a few hundred lines per test in setup, my feature fragment is huge (6k lines). No I don't know what any of the tests do but I made a change so I'll copy the last one and make a 1 line change to it" 🤢
3
u/VariousPizza9624 Nov 25 '25
Spaghetti code 🥰
3
u/Suddenly_Bazelgeuse Nov 25 '25
I love my MVVM and coroutines. I'll fight about it.
10
u/Leschnitzky Nov 25 '25
Why would I want to go back to XMLs, AsyncTask, Java, Eclipse, anim.xml, Bitmap, Canvas, RelativeLayout, Espresso?
2
u/Deevimento Nov 25 '25
I was an Android dev then, and it certain felt like the Android dev now at the time. Maybe because that was pre-RxJava.
2
u/blindada Nov 26 '25
RxJava? So weak. We had 0% crashes with listeners and the mighty AsyncTask
2
u/MayBeArtorias Nov 26 '25
Good to know that over architecting isn’t a BE isolated problem
1
u/[deleted] Nov 26 '25
RxJava is the goat!
1
u/Sayansaha_4311 Mar 11 '26
True
1
u/West-Door-3467 Apr 23 '26
That's so true
0
u/[deleted] Nov 25 '25
[deleted] — view deleted comment
30
u/[deleted] Nov 25 '25
[removed] — view removed comment