Passing Complex Objects between Screens is BAD! - Here’s Why

  Рет қаралды 3,838

Stevdza-San

Stevdza-San

4 ай бұрын

🏆 My Online Courses
stevdza-san.com
📝 Writing on Medium
/ stevdza-san
☕ Let's get a coffee. You're paying! :)
ko-fi.com/stevdza_san
💻 Github
github.com/stevdza-san
📸 Instagram
/ stevdza_san

Пікірлер: 22
@et_matrix
@et_matrix 4 ай бұрын
I agree with you but there are situations you break this condition. Let's say i have a list of social media posts. I fetched data in home screen. When user navigates to detail screen do i really need to resend network request again for specific resource?
@StevdzaSan
@StevdzaSan 4 ай бұрын
Not network, but local database cache.
@vengateshm2122
@vengateshm2122 4 ай бұрын
​@@StevdzaSan But if my app doesn't want to maintain local copy. No need to save or fetch from db . Can pass data from previous screen unless there is a chance to modify from other place while visiting the detail screen.
@StevdzaSan
@StevdzaSan 4 ай бұрын
@vengateshm2122 Yes, that's correct, but you gotta be careful, though. Each situation is different, and you need to evaluate it accordingly.
@ubersticks
@ubersticks 4 ай бұрын
@et_matrix, I agree. I think it depends on how expensive or time-consuming the API call is vs the size of the data to transfer, vs the problem of stale data. Situations are different.
@bohdanzaichenko
@bohdanzaichenko 2 ай бұрын
@@StevdzaSan do you have any tips or sources on caching?
@mubaraknative
@mubaraknative 4 ай бұрын
Congratulations for 80k Road to 1 million
@StevdzaSan
@StevdzaSan 4 ай бұрын
Thanks! 🙌🚀
@CastilloOfficial
@CastilloOfficial 4 ай бұрын
Very good, but you can solve this problem with container DI
@henrik908
@henrik908 4 ай бұрын
Are you from Taxes?
@devyashjangid2425
@devyashjangid2425 4 ай бұрын
I just use viewmodels to pass all the data b/w multiple screens. too convenient
@StevdzaSan
@StevdzaSan 4 ай бұрын
Yep, that's also another way 👌
@NHikmetK
@NHikmetK 4 ай бұрын
i gave up being android developer and become fullstack developer and i m happier now. life is to short to become android developer.
@StevdzaSan
@StevdzaSan 4 ай бұрын
Totally, I would too if I were to use Java
@starry_shivam
@starry_shivam 4 ай бұрын
I sometimes feel the same way, to be honest, primarily because of Google's policies. It seems that they are gradually making it impossible for indie developers to even exist on the Play Store. It appears that their focus is solely on catering to big, multi-billion dollar corporations on their platform.
@StevdzaSan
@StevdzaSan 4 ай бұрын
@@starry_shivam What policies exactly?
@starry_shivam
@starry_shivam 4 ай бұрын
@@StevdzaSanFor example, consider the requirement for 20 testers, which is next to impossible for solo devs to manage. I could list more of these, but you can simply glance at the comments on Google's PolicyBytes videos on YT to understand the situation.
@starry_shivam
@starry_shivam 4 ай бұрын
@@StevdzaSan Let's take the requirement for 20 testers for example, which is almost impossible to manage for solo developers who are building apps as hobby or side projects, and it doesn't even makes much sense practically either, I could provide more of them, but you can simply glance at the comments on Google's PolicyBytes videos to understand the situation.
@gofudgeyourselves9024
@gofudgeyourselves9024 4 ай бұрын
Please create video on ios bindings for KMP library
No more String-based Routes! New Compose Navigation Release
5:49
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3 МЛН
Why Agent Frameworks Will Fail (and what to use instead)
19:21
Dave Ebbelaar
Рет қаралды 35 М.
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 189 М.
Turns out REST APIs weren't the answer (and that's OK!)
10:38
Dylan Beattie
Рет қаралды 128 М.
What are AI Agents?
12:29
IBM Technology
Рет қаралды 119 М.
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 51 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 467 М.
Software engineer interns on their first day be like...
2:21
Frying Pan
Рет қаралды 13 МЛН
Svelte 5's Secret Weapon: Classes + Context
18:14
Huntabyte
Рет қаралды 15 М.
This is Why Programming Is Hard For you
10:48
The Coding Sloth
Рет қаралды 746 М.
These coding projects give you an unfair advantage
8:13
Jason Goodison
Рет қаралды 986 М.
Каха заблудился в горах
00:57
К-Media
Рет қаралды 10 МЛН