انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRC-003-L04

كلفة التجريد

  • الدرس 4 من 8
  • Senior C
في هذا الدرس 4 موضوعات

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

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

في هذا الدرس

judge when an abstraction pays for itself.

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

  • Abstractions hide detail and cost indirection, leaky behavior, and debugging time.
  • Abstract after the second or third real use, not for imagined futures.
  • "We might switch databases" is a weak reason; ask what the switch would cost without it.
  • Good abstractions sit at stable boundaries.
تفاصيل المخطط المبدئي

عرض عملي

a repository interface wrapping JPA "to allow swapping databases" versus a module boundary that enforces ownership; compare benefit and cost.

اختبر فهمك

When is an abstraction justified?

أظهر الإجابة

When real, repeated variation or a stable boundary makes its cost worthwhile.

التطبيق

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

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

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

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