انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-060-L01

لماذا التصميم الموجّه بالمجال (DDD)

  • الدرس 1 من 7
  • Mid-level
في هذا الدرس 4 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

say when DDD pays off and what it is.

الموضوعات المخطط لها

  • DDD models the business domain in code, with developers and domain experts working together.
  • Strategic DDD: language, bounded contexts, context maps. Tactical DDD: entities, value objects, aggregates, repositories, events.
  • It pays off where rules are complex and change often; it is overkill for plain CRUD.
  • Symptom it fixes: an anemic model, where entities are data bags and services hold all the rules.
  • Shop's Order has rules (status flow, cancellation) but only getters and setters.
تفاصيل المخطط المبدئي

عرض عملي

order.setStatus("SHIPPED") in a service versus order.ship() in the model.

اختبر فهمك

When is DDD overkill?

أظهر الإجابة

For simple CRUD with few business rules.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.