iOS

iOS Application Architecture

Clean Architecture, VIPER, modular architecture, Dependency Injection, TCA, unidirectional flow

22 คำถามสัมภาษณ์·
Senior
1

What are the three main layers of Clean Architecture?

คำตอบ

Clean Architecture organizes code in concentric layers: Entities (business logic), Use Cases (application rules), and Frameworks/Drivers (implementation details). Dependencies must always point inward, never outward. This structure ensures framework independence and testability of business logic.

2

What is the Dependency Rule in Clean Architecture?

คำตอบ

The Dependency Rule states that source code dependencies must only point inward. Code in outer layers must never be referenced by inner layer code. This preserves business rule independence from technical details and external frameworks.

3

What is the role of a Use Case in Clean Architecture?

คำตอบ

A Use Case encapsulates application-specific rules, independent of frameworks. It orchestrates Entities, validates requests, and produces responses. Each Use Case represents a specific user action while keeping business logic isolated from presentation and persistence.

4

How to test a Use Case in Clean Architecture?

5

What is the concept of Entities in Clean Architecture?

+19 คำถามสัมภาษณ์

เชี่ยวชาญ iOS สำหรับการสัมภาษณ์ครั้งถัดไป

เข้าถึงคำถามทั้งหมด flashcards แบบทดสอบเทคนิค แบบฝึกหัด code review และตัวจำลองสัมภาษณ์

เริ่มใช้ฟรี