This week's question comes from
Filipe:
Is TCA the new MVVM?
TCA stands for The Composable Architecture, MVVM for Model-View-ViewModel.
Both are popular code architecture solutions in more languages like Swift.
I often get asked: which architecture do you use?
While I'm familiar with TCA and MVVM, I don't prefer any and wouldn't recommend either.
In my experience, both frameworks work great.
They can even be combined within the same project or team.
Though, two things are key to me 🔑
1: Consistency
Make sure to align the architecture(s) you use with those already used in your team.
You want to ensure your team is familiar with the code you write to simplify adoption and handover.
2: Don't overcomplicate
I'd avoid any complex architecture if you write a small view without much logic.
Don't just use an architecture for the sake of it.
Want to have your question answered next week? Ask your question on LinkedIn or Twitter.