انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهSRB-008-L03

الفرع بالتجريد (Branch by abstraction)

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

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

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

في هذا الدرس

change legacy internals safely behind an interface.

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

  • Introduce an interface in the monolith in front of the capability.
  • Implement the new behavior (calling the new service) behind the same interface.
  • Switch with a flag; remove the old implementation when done.
  • Keeps the main branch releasable throughout.
تفاصيل المخطط المبدئي

عرض عملي

outline: ShipmentTracker interface, LegacyShipmentTracker, RemoteShipmentTracker, a feature flag, and the removal step.

اختبر فهمك

What does the interface allow?

أظهر الإجابة

Swapping implementations without long-lived branches.

التطبيق

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

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

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

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