العمارة النظيفة
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
compare clean architecture with hexagonal.
الموضوعات المخطط لها
- Concentric rings: entities → use cases → interface adapters → frameworks and drivers.
- Same dependency rule as hexagonal: source code points inward only.
- Adds an explicit use-case ring and the idea of boundary data structures (DTOs crossing rings).
- Onion architecture is a close cousin. In practice the three share one idea: protect the domain.
- Pick one vocabulary per team; do not argue over names.
تفاصيل المخطط المبدئي
عرض عملي
a ring diagram with arrows pointing to the centre.
اختبر فهمك
What do all three styles protect?
أظهر الإجابة
The domain logic from framework and infrastructure details.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.