مساحة المتعلّمLearner hub

الحزمة التعليمية الكاملةComplete learner course pack

الأسبوع الثالثملفات JSON والوحدات والنتائجWeek 3Day 1 — file and JSON boundaries

مواد تعلّم مفتوحة للدراسة المستقلة. يبقى التقدم غير الرسمي في هذا المتصفح فقط، وقد يُمحى عند مسح بيانات تخزين المتصفح. لا يُنشأ هنا حساب أو سجل حضور أو درجة أو نتيجة مساق رسمية.Open learning materials for independent study. Unofficial progress stays only in this browser and can be erased if browser storage is cleared. No account, attendance record, score, or official course result is created here.

تنزيلات المساقCourse downloads

إصدار الحلSolution release

يتوفر بعد التحقق ونافذة الاستدراك والإصدار المعتمد من المدرّبAvailable after the checkpoint, recovery window, and trainer-approved release

اليوم 1Day 1

اليوم 1 — حدود الملف وJSONDay 1 — file and JSON boundaries

ملخص الشرائحSlide summary

الأهدافObjectives

  • ميّز بين ملف غائب وصياغة JSON غير صالحة ومستند JSON صالح قبل معالجة السجلات.Distinguish a missing file, invalid JSON syntax, and a valid JSON document before record processing.
  • صنّف الحد وشغّل العينة المقدمة واحفظ الدليل دون كشف مسارات أو بيانات خاصة.Classify the boundary, run the supplied fixture, and preserve evidence without exposing private paths or data.

المتطلبات المسبقةPrerequisites

  • اجتز تحقق الأسبوع الثاني في الدوال والسجلات أو استخدم مسار الدعم المرتب.Pass the Week 2 functions-and-records checkpoint or use the arranged supported path.
  • افتح ملفات بداية الأسبوع الثالث وعينات الفهرس الاصطناعية كما هي.Open the exact Week 3 starter and synthetic catalogue fixtures.

الشروحاتExplanations

فحص مضبوط واحد لكل حدOne controlled check per boundary

ميّز بين ملف غائب وصياغة JSON غير صالحة ومستند JSON صالح قبل معالجة السجلات.Distinguish a missing file, invalid JSON syntax, and a valid JSON document before record processing.

الوصول إلى الملف وتحليل JSON والتحقق من السجل والمعالجة وفحص الناتج حدود منفصلة ولكل منها دليل منفصل.File access, JSON parsing, record validation, processing, and output verification are separate boundaries with separate evidence.

أمثلةExamples
ملف غائب ← FileNotFoundError | نص معطوب ← JSONDecodeError | مستند صالح ← قائمة السجلاتmissing file -> FileNotFoundError | broken text -> JSONDecodeError | valid document -> records list

الشرائحSlides

نتيجة اليوم القابلة للملاحظةToday's observable result

  • ميّز بين ملف غائب وصياغة JSON غير صالحة ومستند JSON صالح قبل معالجة السجلات.Distinguish a missing file, invalid JSON syntax, and a valid JSON document before record processing.

اطلب من متعلم إعادة صياغة النتيجة والدليل قبل فتح المحرر.Ask a learner to restate the result and evidence before opening the editor.

تسمية الحد الفاشلName the failing boundary

  • ملف غائب ← FileNotFoundError | نص معطوب ← JSONDecodeError | مستند صالح ← قائمة السجلاتmissing file -> FileNotFoundError | broken text -> JSONDecodeError | valid document -> records list

أخفِ النتيجة واجمع توقعات الحد ثم اكشف خطوة واحدة كل مرة.Hide the result, collect boundary predictions, then reveal one step at a time.

ملفات آمنة وذكاء اصطناعي خاضع للمساءلةSafe files and accountable AI

  • استخدم العينات المقدمة فقط. احجب المسارات قبل سؤال الذكاء الاصطناعي عن خطأ، ثم تحقق محلياً من الحد والناتج.Use only supplied fixtures. Redact paths before asking AI about an error, then verify the boundary and output locally.

افحص العينات وملاحظة الحجب قبل المختبر.Inspect fixtures and the redaction note before the lab.

التدريب الموجّهGuided practice

  • صنّف عينات الملف الغائب والصياغة غير الصالحة والملف الصالح قبل تشغيلها، ثم أصلح نسخة عينة الصياغة فقط.Classify the supplied missing, invalid-syntax, and valid fixtures before running them, then repair only the syntax fixture copy.

ورقة العملWorksheet

  1. أكمل جدول حدود لملفات missing_catalogue.json وinvalid_catalogue.json وpublic_catalogue.json مع الاستثناء المتوقع والرسالة الآمنة والخطوة التالية.Complete a boundary table for missing_catalogue.json, invalid_catalogue.json, and public_catalogue.json with expected exception, safe message, and next step.مرجع الدليل: w3d1-error-classification-evidenceEvidence reference: w3d1-error-classification-evidence

خطوات المختبرLab steps

  1. اكتب الحد والنتيجة المتوقعين قبل تعديل الكود أو تشغيله.Write the expected boundary and result before editing or running code.
  2. نفّذ التحميل المضبوط وأنشئ رسالة عربية أولاً لمساري الملف الغائب والصياغة غير الصالحة دون كشف مسار مطلق.Implement controlled loading and produce an Arabic-first message for the missing and invalid-syntax paths without exposing an absolute path.
  3. شغّل فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح بالترتيب المنشور.Run the file, syntax, record, processing, and reopen checks in the published order.
  4. احفظ المصدر ونص الطرفية الآمن وورقة العمل وناتج JSON وملاحظة محجوبة عن استخدام الذكاء الاصطناعي أو عدم استخدامه.Save source, safe terminal transcript, worksheet, result JSON, and a redacted AI-use or non-use note.

البيانات الاصطناعيةSynthetic data

الإدخال المقدمSupplied inputالنوع المتوقعExpected kind
missing_catalogue.jsoncorrection
invalid_catalogue.jsoncorrection
{"book_id":"BK-101","year":2019,"available":true}accepted
{"book_id":"BK-102","year":2021,"available":false}accepted
{"book_id":"BK-103","year":2018,"available":true}accepted
{"book_id":"BK-104","title":""}rejected
{"book_id":"BK-105","year":"2022"}rejected
{"book_id":"","year":2017}rejected
{"book_id":"BK-107","year":2023,"available":true}accepted
{"book_id":"BK-108","year":2016,"available":false}accepted
{"input_count":8,"valid_count":5,"rejected_count":3,"available_count":3}summary

مسرد الإنجليزية التقنيةTechnical English glossary

  • صيغة نصية منظمة لتبادل البياناتJSON
  • تحويل النص إلى بنية بياناتparse
  • حدث يوقف المسار المعتادexception

الخصوصيةPrivacy

استخدم فهرس المكتبة العامة الاصطناعي فقط. لا تكشف أشخاصاً أو معرفات حسابات أو مسارات منزلية أو بيانات دخول أو مستندات خاصة.Use only the synthetic public-library catalogue. Never expose people, account IDs, home paths, credentials, or private documents.

ممارسة الذكاء الاصطناعيAI practice

يمكن للذكاء الاصطناعي شرح خطأ منسوخ بعد حجب المسارات والبيانات فقط. يصنّف المتعلم الحد ويختار القاعدة ويتحقق من الناتج بعد إعادة فتحه.AI may explain a copied error only after paths and data are redacted. The learner classifies the boundary, chooses the rule, and verifies the reopened result.

الاستدراكRecovery

خلال أسبوع واحد، صنّف فشل w3d1 وصحح أول حد فاشل وأعد تشغيل العينات المقدمة ثم أعد تقديم جدول تصنيف الحدود المكتمل وعمليات التشغيل الثلاث المضبوطة.Within one week, classify the w3d1 failure, correct the first failing boundary, rerun the supplied fixtures, and resubmit the complete boundary-classification table and three controlled runs.

أخطاء شائعة ينبغي ملاحظتهاCommon errors to notice

  • يخفي التقاط كل الاستثناءات ما إذا كان الفشل في الملف أو JSON أو السجل.Catching every exception hides whether the file, JSON, or record failed.
  • تُنسخ السجلات المعطوبة إلى الناتج الصالح.Malformed records are copied into the valid result.
  • يكتب البرنامج الناتج لكنه لا يعيد فتحه للتحقق من البنية والأعداد.The program writes output but never reopens it to verify structure and counts.
دليلي التعلّمي المُبلّغ عنه ذاتياًMy self-reported learning evidence

يُحفظ في هذا المتصفح فقط لدعم تعلّمك الشخصي. ليس حضوراً ولا درجة ولا نتيجة تحقق ولا سجلاً لشهادة.Saved only in this browser to support your own learning. It is not attendance, a score, a checkpoint result, or a certificate record.

جارٍ تحميل ملاحظاتك التعليمية المحلية…Loading your local learning notes…

اليوم 2Day 2

اليوم 2 — التحقق من شكل السجل وأنواعهDay 2 — record shape and type validation

ملخص الشرائحSlide summary

الأهدافObjectives

  • تحقق من حقول الفهرس المطلوبة وأنواعها مع حفظ أسباب آمنة دون تغيير السجل المقدم.Validate required catalogue fields and types, preserving safe reasons without changing the supplied record.
  • صنّف الحد وشغّل العينة المقدمة واحفظ الدليل دون كشف مسارات أو بيانات خاصة.Classify the boundary, run the supplied fixture, and preserve evidence without exposing private paths or data.

المتطلبات المسبقةPrerequisites

  • اجتز تحقق الأسبوع الثاني في الدوال والسجلات أو استخدم مسار الدعم المرتب.Pass the Week 2 functions-and-records checkpoint or use the arranged supported path.
  • افتح ملفات بداية الأسبوع الثالث وعينات الفهرس الاصطناعية كما هي.Open the exact Week 3 starter and synthetic catalogue fixtures.

الشروحاتExplanations

JSON الصالح ليس سجلاً صالحاً تلقائياًValid JSON is not automatically a valid record

تحقق من حقول الفهرس المطلوبة وأنواعها مع حفظ أسباب آمنة دون تغيير السجل المقدم.Validate required catalogue fields and types, preserving safe reasons without changing the supplied record.

الوصول إلى الملف وتحليل JSON والتحقق من السجل والمعالجة وفحص الناتج حدود منفصلة ولكل منها دليل منفصل.File access, JSON parsing, record validation, processing, and output verification are separate boundaries with separate evidence.

أمثلةExamples
{"book_id":"BK-105","year":"2022"} ← مرفوض: يجب أن تكون year عدداً صحيحاً{"book_id":"BK-105","year":"2022"} -> rejected: year must be an integer

الشرائحSlides

نتيجة اليوم القابلة للملاحظةToday's observable result

  • تحقق من حقول الفهرس المطلوبة وأنواعها مع حفظ أسباب آمنة دون تغيير السجل المقدم.Validate required catalogue fields and types, preserving safe reasons without changing the supplied record.

اطلب من متعلم إعادة صياغة النتيجة والدليل قبل فتح المحرر.Ask a learner to restate the result and evidence before opening the editor.

رفض السجلات المعطوبة بأمانReject malformed records safely

  • {"book_id":"BK-105","year":"2022"} ← مرفوض: يجب أن تكون year عدداً صحيحاً{"book_id":"BK-105","year":"2022"} -> rejected: year must be an integer

أخفِ النتيجة واجمع توقعات الحد ثم اكشف خطوة واحدة كل مرة.Hide the result, collect boundary predictions, then reveal one step at a time.

ملفات آمنة وذكاء اصطناعي خاضع للمساءلةSafe files and accountable AI

  • استخدم العينات المقدمة فقط. احجب المسارات قبل سؤال الذكاء الاصطناعي عن خطأ، ثم تحقق محلياً من الحد والناتج.Use only supplied fixtures. Redact paths before asking AI about an error, then verify the boundary and output locally.

افحص العينات وملاحظة الحجب قبل المختبر.Inspect fixtures and the redaction note before the lab.

التدريب الموجّهGuided practice

  • افحص سجلاً صالحاً وسجلات العنوان الفارغ والسنة النصية والمعرّف الفارغ؛ وتوقع أول قاعدة فاشلة والسبب الآمن.Inspect one valid record and the blank-title, text-year, and blank-ID records; predict the first failing rule and safe reason.

ورقة العملWorksheet

  1. أكمل جدول جودة السجلات بثمانية سطور مع الحقول المطلوبة والأنواع الفعلية وأول قاعدة فاشلة والنوع المتوقع والسبب الآمن.Complete the eight-row record-quality table with required fields, actual types, first failing rule, expected kind, and safe reason.مرجع الدليل: w3d2-record-validation-evidenceEvidence reference: w3d2-record-validation-evidence

خطوات المختبرLab steps

  1. اكتب الحد والنتيجة المتوقعين قبل تعديل الكود أو تشغيله.Write the expected boundary and result before editing or running code.
  2. نفّذ validate_record في وحدة التحقق المستوردة وتحقق من خمسة سجلات مقبولة وثلاثة مرفوضة بالترتيب المنشور.Implement validate_record in the imported validation module and verify five accepted and three rejected records in published order.
  3. شغّل فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح بالترتيب المنشور.Run the file, syntax, record, processing, and reopen checks in the published order.
  4. احفظ المصدر ونص الطرفية الآمن وورقة العمل وناتج JSON وملاحظة محجوبة عن استخدام الذكاء الاصطناعي أو عدم استخدامه.Save source, safe terminal transcript, worksheet, result JSON, and a redacted AI-use or non-use note.

البيانات الاصطناعيةSynthetic data

الإدخال المقدمSupplied inputالنوع المتوقعExpected kind
missing_catalogue.jsoncorrection
invalid_catalogue.jsoncorrection
{"book_id":"BK-101","year":2019,"available":true}accepted
{"book_id":"BK-102","year":2021,"available":false}accepted
{"book_id":"BK-103","year":2018,"available":true}accepted
{"book_id":"BK-104","title":""}rejected
{"book_id":"BK-105","year":"2022"}rejected
{"book_id":"","year":2017}rejected
{"book_id":"BK-107","year":2023,"available":true}accepted
{"book_id":"BK-108","year":2016,"available":false}accepted
{"input_count":8,"valid_count":5,"rejected_count":3,"available_count":3}summary

مسرد الإنجليزية التقنيةTechnical English glossary

  • معطوب أو مخالف للبنيةmalformed
  • حقل يجب أن يكون موجوداًrequired field
  • نوع القيمة البرمجيةtype

الخصوصيةPrivacy

استخدم فهرس المكتبة العامة الاصطناعي فقط. لا تكشف أشخاصاً أو معرفات حسابات أو مسارات منزلية أو بيانات دخول أو مستندات خاصة.Use only the synthetic public-library catalogue. Never expose people, account IDs, home paths, credentials, or private documents.

ممارسة الذكاء الاصطناعيAI practice

يمكن للذكاء الاصطناعي شرح خطأ منسوخ بعد حجب المسارات والبيانات فقط. يصنّف المتعلم الحد ويختار القاعدة ويتحقق من الناتج بعد إعادة فتحه.AI may explain a copied error only after paths and data are redacted. The learner classifies the boundary, chooses the rule, and verifies the reopened result.

الاستدراكRecovery

خلال أسبوع واحد، صنّف فشل w3d2 وصحح أول حد فاشل وأعد تشغيل العينات المقدمة ثم أعد تقديم جدول التحقق بثمانية سطور ونص قرارات 5/3 الدقيق.Within one week, classify the w3d2 failure, correct the first failing boundary, rerun the supplied fixtures, and resubmit the eight-row validation table and exact 5/3 decision transcript.

أخطاء شائعة ينبغي ملاحظتهاCommon errors to notice

  • يخفي التقاط كل الاستثناءات ما إذا كان الفشل في الملف أو JSON أو السجل.Catching every exception hides whether the file, JSON, or record failed.
  • تُنسخ السجلات المعطوبة إلى الناتج الصالح.Malformed records are copied into the valid result.
  • يكتب البرنامج الناتج لكنه لا يعيد فتحه للتحقق من البنية والأعداد.The program writes output but never reopens it to verify structure and counts.
دليلي التعلّمي المُبلّغ عنه ذاتياًMy self-reported learning evidence

يُحفظ في هذا المتصفح فقط لدعم تعلّمك الشخصي. ليس حضوراً ولا درجة ولا نتيجة تحقق ولا سجلاً لشهادة.Saved only in this browser to support your own learning. It is not attendance, a score, a checkpoint result, or a certificate record.

جارٍ تحميل ملاحظاتك التعليمية المحلية…Loading your local learning notes…

اليوم 3Day 3

اليوم 3 — الوحدات والاستيراد وسجل الاعتمادياتDay 3 — modules, imports, and dependency records

ملخص الشرائحSlide summary

الأهدافObjectives

  • استورد وحدة تحقق محلية وحدد وحدة json من المكتبة القياسية وأعد إنتاج حزمة الاختبار المعتمدة من سجل اعتماديتها الدقيق.Import a local validation module, identify the standard-library json module, and reproduce the approved test package from its exact dependency record.
  • صنّف الحد وشغّل العينة المقدمة واحفظ الدليل دون كشف مسارات أو بيانات خاصة.Classify the boundary, run the supplied fixture, and preserve evidence without exposing private paths or data.

المتطلبات المسبقةPrerequisites

  • اجتز تحقق الأسبوع الثاني في الدوال والسجلات أو استخدم مسار الدعم المرتب.Pass the Week 2 functions-and-records checkpoint or use the arranged supported path.
  • افتح ملفات بداية الأسبوع الثالث وعينات الفهرس الاصطناعية كما هي.Open the exact Week 3 starter and synthetic catalogue fixtures.

الشروحاتExplanations

وحدة محلية ومكتبة قياسية وحزمة مثبتةLocal module, standard library, installed package

استورد وحدة تحقق محلية وحدد وحدة json من المكتبة القياسية وأعد إنتاج حزمة الاختبار المعتمدة من سجل اعتماديتها الدقيق.Import a local validation module, identify the standard-library json module, and reproduce the approved test package from its exact dependency record.

الوصول إلى الملف وتحليل JSON والتحقق من السجل والمعالجة وفحص الناتج حدود منفصلة ولكل منها دليل منفصل.File access, JSON parsing, record validation, processing, and output verification are separate boundaries with separate evidence.

أمثلةExamples
catalogue_tool ← catalogue_validation محلية | json مكتبة قياسية | pytest==8.4.1 حزمة مثبتةcatalogue_tool -> catalogue_validation (local) | json (standard library) | pytest==8.4.1 (installed)

الشرائحSlides

نتيجة اليوم القابلة للملاحظةToday's observable result

  • استورد وحدة تحقق محلية وحدد وحدة json من المكتبة القياسية وأعد إنتاج حزمة الاختبار المعتمدة من سجل اعتماديتها الدقيق.Import a local validation module, identify the standard-library json module, and reproduce the approved test package from its exact dependency record.

اطلب من متعلم إعادة صياغة النتيجة والدليل قبل فتح المحرر.Ask a learner to restate the result and evidence before opening the editor.

جعل الكود القابل لإعادة الاستخدام والإعداد صريحينMake reusable code and setup explicit

  • catalogue_tool ← catalogue_validation محلية | json مكتبة قياسية | pytest==8.4.1 حزمة مثبتةcatalogue_tool -> catalogue_validation (local) | json (standard library) | pytest==8.4.1 (installed)

أخفِ النتيجة واجمع توقعات الحد ثم اكشف خطوة واحدة كل مرة.Hide the result, collect boundary predictions, then reveal one step at a time.

ملفات آمنة وذكاء اصطناعي خاضع للمساءلةSafe files and accountable AI

  • استخدم العينات المقدمة فقط. احجب المسارات قبل سؤال الذكاء الاصطناعي عن خطأ، ثم تحقق محلياً من الحد والناتج.Use only supplied fixtures. Redact paths before asking AI about an error, then verify the boundary and output locally.

افحص العينات وملاحظة الحجب قبل المختبر.Inspect fixtures and the redaction note before the lab.

التدريب الموجّهGuided practice

  • تتبع كيفية حل كل استيراد، ثم أنشئ بيئة نظيفة وتوقع ما سيثبته requirements-dev.txt.Trace how each import is resolved, then create a clean environment and predict what requirements-dev.txt will install.

ورقة العملWorksheet

  1. قدّم خريطة استيراد تسمي المصدر والمسؤولية ودليل إعادة الإنتاج لكل من catalogue_validation وjson وpytest.Submit an import map naming source, responsibility, and reproducibility evidence for catalogue_validation, json, and pytest.مرجع الدليل: w3d3-module-dependency-evidenceEvidence reference: w3d3-module-dependency-evidence

خطوات المختبرLab steps

  1. اكتب الحد والنتيجة المتوقعين قبل تعديل الكود أو تشغيله.Write the expected boundary and result before editing or running code.
  2. شغّل الأداة عبر وحدتها المحلية وسجّل الاعتمادية الدقيقة ونفّذ اختبارات مركزة من بيئة مشروع نظيفة.Run the tool through its local module, record the exact dependency, and execute focused tests from a clean project environment.
  3. شغّل فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح بالترتيب المنشور.Run the file, syntax, record, processing, and reopen checks in the published order.
  4. احفظ المصدر ونص الطرفية الآمن وورقة العمل وناتج JSON وملاحظة محجوبة عن استخدام الذكاء الاصطناعي أو عدم استخدامه.Save source, safe terminal transcript, worksheet, result JSON, and a redacted AI-use or non-use note.

البيانات الاصطناعيةSynthetic data

الإدخال المقدمSupplied inputالنوع المتوقعExpected kind
missing_catalogue.jsoncorrection
invalid_catalogue.jsoncorrection
{"book_id":"BK-101","year":2019,"available":true}accepted
{"book_id":"BK-102","year":2021,"available":false}accepted
{"book_id":"BK-103","year":2018,"available":true}accepted
{"book_id":"BK-104","title":""}rejected
{"book_id":"BK-105","year":"2022"}rejected
{"book_id":"","year":2017}rejected
{"book_id":"BK-107","year":2023,"available":true}accepted
{"book_id":"BK-108","year":2016,"available":false}accepted
{"input_count":8,"valid_count":5,"rejected_count":3,"available_count":3}summary

مسرد الإنجليزية التقنيةTechnical English glossary

  • ملف Python قابل للاستيرادmodule
  • مجموعة وحدات قابلة للتثبيتpackage
  • تعليمة لاستخدام كود من وحدةimport
  • حزمة يعتمد عليها المشروعdependency

الخصوصيةPrivacy

استخدم فهرس المكتبة العامة الاصطناعي فقط. لا تكشف أشخاصاً أو معرفات حسابات أو مسارات منزلية أو بيانات دخول أو مستندات خاصة.Use only the synthetic public-library catalogue. Never expose people, account IDs, home paths, credentials, or private documents.

ممارسة الذكاء الاصطناعيAI practice

يمكن للذكاء الاصطناعي شرح خطأ منسوخ بعد حجب المسارات والبيانات فقط. يصنّف المتعلم الحد ويختار القاعدة ويتحقق من الناتج بعد إعادة فتحه.AI may explain a copied error only after paths and data are redacted. The learner classifies the boundary, chooses the rule, and verifies the reopened result.

الاستدراكRecovery

خلال أسبوع واحد، صنّف فشل w3d3 وصحح أول حد فاشل وأعد تشغيل العينات المقدمة ثم أعد تقديم خريطة الاستيراد وسجل الاعتمادية الدقيق وأمر الإعداد النظيف والاختبار المركز الناجح.Within one week, classify the w3d3 failure, correct the first failing boundary, rerun the supplied fixtures, and resubmit the import map, exact dependency record, clean setup command, and passing focused test.

أخطاء شائعة ينبغي ملاحظتهاCommon errors to notice

  • يخفي التقاط كل الاستثناءات ما إذا كان الفشل في الملف أو JSON أو السجل.Catching every exception hides whether the file, JSON, or record failed.
  • تُنسخ السجلات المعطوبة إلى الناتج الصالح.Malformed records are copied into the valid result.
  • يكتب البرنامج الناتج لكنه لا يعيد فتحه للتحقق من البنية والأعداد.The program writes output but never reopens it to verify structure and counts.
دليلي التعلّمي المُبلّغ عنه ذاتياًMy self-reported learning evidence

يُحفظ في هذا المتصفح فقط لدعم تعلّمك الشخصي. ليس حضوراً ولا درجة ولا نتيجة تحقق ولا سجلاً لشهادة.Saved only in this browser to support your own learning. It is not attendance, a score, a checkpoint result, or a certificate record.

جارٍ تحميل ملاحظاتك التعليمية المحلية…Loading your local learning notes…

اليوم 4Day 4

اليوم 4 — المعالجة وملفات النتائج المتحقق منهاDay 4 — processing and verified result files

ملخص الشرائحSlide summary

الأهدافObjectives

  • عالج السجلات الصالحة فقط واكتب JSON حتمياً وأعد فتحه وأثبت أن المدخلات تساوي الصالح زائد المرفوض.Process only valid records, write deterministic JSON, reopen it, and prove input equals valid plus rejected.
  • صنّف الحد وشغّل العينة المقدمة واحفظ الدليل دون كشف مسارات أو بيانات خاصة.Classify the boundary, run the supplied fixture, and preserve evidence without exposing private paths or data.

المتطلبات المسبقةPrerequisites

  • اجتز تحقق الأسبوع الثاني في الدوال والسجلات أو استخدم مسار الدعم المرتب.Pass the Week 2 functions-and-records checkpoint or use the arranged supported path.
  • افتح ملفات بداية الأسبوع الثالث وعينات الفهرس الاصطناعية كما هي.Open the exact Week 3 starter and synthetic catalogue fixtures.

الشروحاتExplanations

لا يصبح الملف المكتوب دليلاً إلا بعد التحققA written file is evidence only after verification

عالج السجلات الصالحة فقط واكتب JSON حتمياً وأعد فتحه وأثبت أن المدخلات تساوي الصالح زائد المرفوض.Process only valid records, write deterministic JSON, reopen it, and prove input equals valid plus rejected.

الوصول إلى الملف وتحليل JSON والتحقق من السجل والمعالجة وفحص الناتج حدود منفصلة ولكل منها دليل منفصل.File access, JSON parsing, record validation, processing, and output verification are separate boundaries with separate evidence.

أمثلةExamples
المدخلات 8 = الصالح 5 + المرفوض 3 | المتاح ضمن الصالح = 3input 8 = valid 5 + rejected 3 | available among valid = 3

الشرائحSlides

نتيجة اليوم القابلة للملاحظةToday's observable result

  • عالج السجلات الصالحة فقط واكتب JSON حتمياً وأعد فتحه وأثبت أن المدخلات تساوي الصالح زائد المرفوض.Process only valid records, write deterministic JSON, reopen it, and prove input equals valid plus rejected.

اطلب من متعلم إعادة صياغة النتيجة والدليل قبل فتح المحرر.Ask a learner to restate the result and evidence before opening the editor.

كتابة الناتج وإعادة فتحه ومطابقة أعدادهWrite, reopen, and reconcile the result

  • المدخلات 8 = الصالح 5 + المرفوض 3 | المتاح ضمن الصالح = 3input 8 = valid 5 + rejected 3 | available among valid = 3

أخفِ النتيجة واجمع توقعات الحد ثم اكشف خطوة واحدة كل مرة.Hide the result, collect boundary predictions, then reveal one step at a time.

ملفات آمنة وذكاء اصطناعي خاضع للمساءلةSafe files and accountable AI

  • استخدم العينات المقدمة فقط. احجب المسارات قبل سؤال الذكاء الاصطناعي عن خطأ، ثم تحقق محلياً من الحد والناتج.Use only supplied fixtures. Redact paths before asking AI about an error, then verify the boundary and output locally.

افحص العينات وملاحظة الحجب قبل المختبر.Inspect fixtures and the redaction note before the lab.

التدريب الموجّهGuided practice

  • تتبع العينة المختلطة وحدد أول موضع ينحرف فيه عدد متاح خاطئ مقصود قدره 4 واقترح تصحيحاً محلياً وفحصاً مجاوراً.Trace the mixed fixture, locate where a deliberately wrong available count of 4 first diverges, and propose one local correction and neighboring check.

ورقة العملWorksheet

  1. قدّم مخطط الناتج وتتبع المطابقة وفحص JSON بعد إعادة فتحه وسجل قرار الذكاء الاصطناعي مع الطلب المحجوب والسبب والاختبار والنتيجة.Submit the result schema, reconciliation trace, reopened JSON check, and accountable-AI decision record with redacted prompt, reason, test, and result.مرجع الدليل: w3d4-result-verification-evidenceEvidence reference: w3d4-result-verification-evidence

خطوات المختبرLab steps

  1. اكتب الحد والنتيجة المتوقعين قبل تعديل الكود أو تشغيله.Write the expected boundary and result before editing or running code.
  2. نفّذ بناء الناتج وكتابته؛ وتحقق من 8/5/3/3 وأعد فتح المخرج ووثّق اقتراح ذكاء اصطناعي محجوباً تم قبوله أو تغييره أو رفضه أو عدم استخدامه.Implement result building and writing; verify 8/5/3/3, reopen the output, and document one redacted AI suggestion accepted, changed, rejected, or not used.
  3. شغّل فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح بالترتيب المنشور.Run the file, syntax, record, processing, and reopen checks in the published order.
  4. احفظ المصدر ونص الطرفية الآمن وورقة العمل وناتج JSON وملاحظة محجوبة عن استخدام الذكاء الاصطناعي أو عدم استخدامه.Save source, safe terminal transcript, worksheet, result JSON, and a redacted AI-use or non-use note.

البيانات الاصطناعيةSynthetic data

الإدخال المقدمSupplied inputالنوع المتوقعExpected kind
missing_catalogue.jsoncorrection
invalid_catalogue.jsoncorrection
{"book_id":"BK-101","year":2019,"available":true}accepted
{"book_id":"BK-102","year":2021,"available":false}accepted
{"book_id":"BK-103","year":2018,"available":true}accepted
{"book_id":"BK-104","title":""}rejected
{"book_id":"BK-105","year":"2022"}rejected
{"book_id":"","year":2017}rejected
{"book_id":"BK-107","year":2023,"available":true}accepted
{"book_id":"BK-108","year":2016,"available":false}accepted
{"input_count":8,"valid_count":5,"rejected_count":3,"available_count":3}summary

مسرد الإنجليزية التقنيةTechnical English glossary

  • ملف تكتب فيه نتائج المعالجةresult file
  • تحويل البيانات إلى نص منظمserialize
  • مطابقة الأعداد والعلاقاتreconcile

الخصوصيةPrivacy

استخدم فهرس المكتبة العامة الاصطناعي فقط. لا تكشف أشخاصاً أو معرفات حسابات أو مسارات منزلية أو بيانات دخول أو مستندات خاصة.Use only the synthetic public-library catalogue. Never expose people, account IDs, home paths, credentials, or private documents.

ممارسة الذكاء الاصطناعيAI practice

يمكن للذكاء الاصطناعي شرح خطأ منسوخ بعد حجب المسارات والبيانات فقط. يصنّف المتعلم الحد ويختار القاعدة ويتحقق من الناتج بعد إعادة فتحه.AI may explain a copied error only after paths and data are redacted. The learner classifies the boundary, chooses the rule, and verifies the reopened result.

الاستدراكRecovery

خلال أسبوع واحد، صنّف فشل w3d4 وصحح أول حد فاشل وأعد تشغيل العينات المقدمة ثم أعد تقديم ملف النتائج الحتمي ومطابقة 8/5/3/3 وفحص إعادة الفتح وسجل قرار الذكاء الاصطناعي المكتمل.Within one week, classify the w3d4 failure, correct the first failing boundary, rerun the supplied fixtures, and resubmit the deterministic result file, 8/5/3/3 reconciliation, reopen check, and complete ai decision record.

أخطاء شائعة ينبغي ملاحظتهاCommon errors to notice

  • يخفي التقاط كل الاستثناءات ما إذا كان الفشل في الملف أو JSON أو السجل.Catching every exception hides whether the file, JSON, or record failed.
  • تُنسخ السجلات المعطوبة إلى الناتج الصالح.Malformed records are copied into the valid result.
  • يكتب البرنامج الناتج لكنه لا يعيد فتحه للتحقق من البنية والأعداد.The program writes output but never reopens it to verify structure and counts.
دليلي التعلّمي المُبلّغ عنه ذاتياًMy self-reported learning evidence

يُحفظ في هذا المتصفح فقط لدعم تعلّمك الشخصي. ليس حضوراً ولا درجة ولا نتيجة تحقق ولا سجلاً لشهادة.Saved only in this browser to support your own learning. It is not attendance, a score, a checkpoint result, or a certificate record.

جارٍ تحميل ملاحظاتك التعليمية المحلية…Loading your local learning notes…

اليوم 5Day 5

اليوم 5 — التحقق الفردي لأداة ملفات JSONDay 5 — individual JSON file-tool checkpoint

ملخص الشرائحSlide summary

الأهدافObjectives

  • أكمل ملفات البداية دون تغيير بصورة فردية واجتز فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح واشرح كل مسؤولية.Individually complete the unchanged starter, pass file, syntax, record, processing, and reopen checks, and explain each responsibility.
  • صنّف الحد وشغّل العينة المقدمة واحفظ الدليل دون كشف مسارات أو بيانات خاصة.Classify the boundary, run the supplied fixture, and preserve evidence without exposing private paths or data.

المتطلبات المسبقةPrerequisites

  • اجتز تحقق الأسبوع الثاني في الدوال والسجلات أو استخدم مسار الدعم المرتب.Pass the Week 2 functions-and-records checkpoint or use the arranged supported path.
  • افتح ملفات بداية الأسبوع الثالث وعينات الفهرس الاصطناعية كما هي.Open the exact Week 3 starter and synthetic catalogue fixtures.

الشروحاتExplanations

يثبت دليل التحقق انتقال التعلم بصورة مستقلةCheckpoint evidence proves independent transfer

أكمل ملفات البداية دون تغيير بصورة فردية واجتز فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح واشرح كل مسؤولية.Individually complete the unchanged starter, pass file, syntax, record, processing, and reopen checks, and explain each responsibility.

الوصول إلى الملف وتحليل JSON والتحقق من السجل والمعالجة وفحص الناتج حدود منفصلة ولكل منها دليل منفصل.File access, JSON parsing, record validation, processing, and output verification are separate boundaries with separate evidence.

أمثلةExamples
غائب ← مضبوط | JSON غير صالح ← مضبوط | مختلط ← 8/5/3/3 | إعادة الفتح ← بنية مطابقةmissing -> controlled | invalid JSON -> controlled | mixed -> 8/5/3/3 | reopen -> identical structure

الشرائحSlides

نتيجة اليوم القابلة للملاحظةToday's observable result

  • أكمل ملفات البداية دون تغيير بصورة فردية واجتز فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح واشرح كل مسؤولية.Individually complete the unchanged starter, pass file, syntax, record, processing, and reopen checks, and explain each responsibility.

اطلب من متعلم إعادة صياغة النتيجة والدليل قبل فتح المحرر.Ask a learner to restate the result and evidence before opening the editor.

بناء كل حد واختباره وشرحه بصورة فرديةIndividually build, test, and explain every boundary

  • غائب ← مضبوط | JSON غير صالح ← مضبوط | مختلط ← 8/5/3/3 | إعادة الفتح ← بنية مطابقةmissing -> controlled | invalid JSON -> controlled | mixed -> 8/5/3/3 | reopen -> identical structure

أخفِ النتيجة واجمع توقعات الحد ثم اكشف خطوة واحدة كل مرة.Hide the result, collect boundary predictions, then reveal one step at a time.

ملفات آمنة وذكاء اصطناعي خاضع للمساءلةSafe files and accountable AI

  • استخدم العينات المقدمة فقط. احجب المسارات قبل سؤال الذكاء الاصطناعي عن خطأ، ثم تحقق محلياً من الحد والناتج.Use only supplied fixtures. Redact paths before asking AI about an error, then verify the boundary and output locally.

افحص العينات وملاحظة الحجب قبل المختبر.Inspect fixtures and the redaction note before the lab.

التدريب الموجّهGuided practice

  • اقرأ المعيار وتوقع كل حالة منشورة وارسم مخطط الحدود والاستيراد وجهّز مخطط الناتج قبل البناء المحدد بالوقت.Read the rubric, predict every published case, draw the boundary and import diagram, and prepare the result schema before the timed build.

ورقة العملWorksheet

  1. أكمل سجل التحقق الفردي: مخطط الحدود وخريطة الاستيراد والحالات المتوقعة والفعلية وناتج 8/5/3/3 ودليل إعادة الفتح ومسارات الأدلة وقرار الذكاء الاصطناعي وقائمة الشرح المباشر.Complete the individual checkpoint record: boundary diagram, import map, expected and actual cases, 8/5/3/3 result, reopen proof, evidence paths, AI decision, and live explanation checklist.مرجع الدليل: w3d5-checkpoint-evidenceEvidence reference: w3d5-checkpoint-evidence

خطوات المختبرLab steps

  1. اكتب الحد والنتيجة المتوقعين قبل تعديل الكود أو تشغيله.Write the expected boundary and result before editing or running code.
  2. أكمل دوال TODO الأربع بصورة فردية؛ وشغّل كل الحالات المنشورة؛ واحفظ المصدر والنص الآمن وناتج JSON ودليل الاعتمادية وملاحظة الذكاء الاصطناعي والشرح المباشر لمسار صالح وآخر فاشل.Complete all four TODO functions independently; run every published case; save source, safe transcript, result JSON, dependency evidence, AI note, and live explanation of one valid and one failing path.
  3. شغّل فحوص الملف والصياغة والسجل والمعالجة وإعادة الفتح بالترتيب المنشور.Run the file, syntax, record, processing, and reopen checks in the published order.
  4. احفظ المصدر ونص الطرفية الآمن وورقة العمل وناتج JSON وملاحظة محجوبة عن استخدام الذكاء الاصطناعي أو عدم استخدامه.Save source, safe terminal transcript, worksheet, result JSON, and a redacted AI-use or non-use note.

البيانات الاصطناعيةSynthetic data

الإدخال المقدمSupplied inputالنوع المتوقعExpected kind
missing_catalogue.jsoncorrection
invalid_catalogue.jsoncorrection
{"book_id":"BK-101","year":2019,"available":true}accepted
{"book_id":"BK-102","year":2021,"available":false}accepted
{"book_id":"BK-103","year":2018,"available":true}accepted
{"book_id":"BK-104","title":""}rejected
{"book_id":"BK-105","year":"2022"}rejected
{"book_id":"","year":2017}rejected
{"book_id":"BK-107","year":2023,"available":true}accepted
{"book_id":"BK-108","year":2016,"available":false}accepted
{"input_count":8,"valid_count":5,"rejected_count":3,"available_count":3}summary

مسرد الإنجليزية التقنيةTechnical English glossary

  • صيغة نصية منظمةJSON
  • حدث يوقف المسار المعتادexception
  • ملف كود قابل للاستيرادmodule
  • كود قابل للتثبيتpackage
  • ملف النتائج المكتوبresult file

الخصوصيةPrivacy

استخدم فهرس المكتبة العامة الاصطناعي فقط. لا تكشف أشخاصاً أو معرفات حسابات أو مسارات منزلية أو بيانات دخول أو مستندات خاصة.Use only the synthetic public-library catalogue. Never expose people, account IDs, home paths, credentials, or private documents.

ممارسة الذكاء الاصطناعيAI practice

يمكن للذكاء الاصطناعي شرح خطأ منسوخ بعد حجب المسارات والبيانات فقط. يصنّف المتعلم الحد ويختار القاعدة ويتحقق من الناتج بعد إعادة فتحه.AI may explain a copied error only after paths and data are redacted. The learner classifies the boundary, chooses the rule, and verifies the reopened result.

الاستدراكRecovery

خلال أسبوع واحد، صنّف فشل w3d5 وصحح أول حد فاشل وأعد تشغيل العينات المقدمة ثم أعد تقديم المصدر الفردي ونص كل الحالات وناتج 8/5/3/3 الدقيق وJSON المعاد فتحه وسجل الاعتمادية وملاحظة الذكاء الاصطناعي والشرح المباشر.Within one week, classify the w3d5 failure, correct the first failing boundary, rerun the supplied fixtures, and resubmit the individual source, all-case transcript, exact 8/5/3/3 result, reopened json, dependency record, ai note, and live explanation.

أخطاء شائعة ينبغي ملاحظتهاCommon errors to notice

  • يخفي التقاط كل الاستثناءات ما إذا كان الفشل في الملف أو JSON أو السجل.Catching every exception hides whether the file, JSON, or record failed.
  • تُنسخ السجلات المعطوبة إلى الناتج الصالح.Malformed records are copied into the valid result.
  • يكتب البرنامج الناتج لكنه لا يعيد فتحه للتحقق من البنية والأعداد.The program writes output but never reopens it to verify structure and counts.
دليلي التعلّمي المُبلّغ عنه ذاتياًMy self-reported learning evidence

يُحفظ في هذا المتصفح فقط لدعم تعلّمك الشخصي. ليس حضوراً ولا درجة ولا نتيجة تحقق ولا سجلاً لشهادة.Saved only in this browser to support your own learning. It is not attendance, a score, a checkpoint result, or a certificate record.

جارٍ تحميل ملاحظاتك التعليمية المحلية…Loading your local learning notes…