لماذا توجد الأطر البرمجية
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
explain what problem a framework solves for the Shop API.
الموضوعات المخطط لها
- Every web service needs the same plumbing: receive HTTP, create objects, connect them, read settings, handle errors.
- A library is code you call. A framework is code that calls yours.
- Without a framework you wire every object by hand with
new, and you rewrite the plumbing in each project. - Spring takes over creating and connecting objects so you write business code.
تفاصيل المخطط المبدئي
عرض عملي
// by hand: you build the whole chain
var repo = new InMemoryProductRepository();
var service = new ProductService(repo);
var controller = new ProductController(service);Then say: "Now imagine 60 classes."
اختبر فهمك
Library or framework: who calls whom?
أظهر الإجابة
A framework calls your code; you call a library.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.