Where business logic lives
Pick the last screen you built and walk me through it end to end. Where did you put the business logic on that screen, and why?
Pick the last screen you built and walk me through it end to end. Where did you put the business logic on that screen, and why?
Business rules (discount calculation, validation, state transitions) live in domain models and use cases with no connection to the UI, and the ViewModel only turns their results into screen state and user input into domain calls.
ArchitectureShort answerBasics
Someone proposes moving an app that works fine on MVC over to MVVM. What's the…
#mvvm #viewmodel
ArchitectureMultiple choiceBasics
In MVVM, which of these should a ViewModel not have? Select all that apply.
#mvvm #viewmodel
SwiftUIShort answerAdvanced
If you apply MVVM to a screen in a SwiftUI app that supports iOS 17 and later, how do you…
#mvvm #viewmodel
ArchitectureShort answerAdvanced
You've been asked to move a 5-year-old MVC app (150 view controllers, almost no tests) to…
#mvvm