عرض عملي: دالة لياقة تمنع تراجعًا في الاقتران
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
write and roll out a coupling fitness function across teams; prepares SRA-002-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- State the rule from the architecture goal: marketplace code must not read order-domain tables or internal packages.
- Implement it as a dependency-rule test run in CI and capture the current violations as a baseline.
- Demonstrate a pull request that adds a new forbidden dependency and fails the build with a clear message.
- Agree with team leads on ownership, an exception process, and a retirement plan for baseline violations.
- Planned mistake: make the rule block all builds on day one, including existing violations. Fix: baseline them, block only new ones, and report the trend.
- Define how the team knows the function is working: violations trend and exceptions granted.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.