Daily iOS
Architecture

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?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

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.

Share a question