Bug

الخطأ البرمجي (Bug)

GLS-000153

Beginnerengineering1 min read
software bugdefectissueerrorregression bug

Definition

Unintended behavior in software — when the code does something different from what it's supposed to do.

سلوك غير مقصود في البرمجيات — عندما يفعل الكود شيئًا مختلفًا عما يُفترض أن يفعله.

Why It Matters

Every sprint certification catches bugs before they reach production users. A bug in the glossary seed could create duplicate terms or corrupt canonical IDs.

كل شهادة sprint تكتشف الأخطاء قبل وصولها إلى مستخدمي الإنتاج. خطأ في بذر الغلوساري يمكن أن يُنشئ مصطلحات مكررة أو يُفسِد المعرّفات الأساسية.

Full Definition

A bug is an error that causes software to behave incorrectly. Types: logic bugs (wrong calculation), null reference errors (accessing undefined data), race conditions (timing-dependent failures), UI bugs (wrong display), regression bugs (worked before, broken now). Debugging is the process of identifying and fixing bugs. TypeScript catches a large class of bugs at compile time before runtime.
الخطأ البرمجي هو خطأ يُسبِّب تصرّف البرمجيات بشكل غير صحيح. الأنواع: أخطاء المنطق (حساب خاطئ) وأخطاء المرجع الفارغ (الوصول إلى بيانات غير معرَّفة) وحالات السباق (إخفاقات تعتمد على التوقيت) وأخطاء الواجهة (عرض خاطئ) وأخطاء الانتكاس (كانت تعمل سابقًا ومكسورة الآن). التنقيح هو عملية تحديد وإصلاح الأخطاء. TypeScript يكتشف فئة كبيرة من الأخطاء في وقت الترجمة قبل وقت التشغيل.

Example Usage

A regression bug in Sprint 4: the glossary tooltip stops working after the types/index.ts change. Root cause: the new acronym field isn't optional in the tooltip engine.

خطأ انتكاس في Sprint 4: توقف تلميح الغلوساري عن العمل بعد تغيير types/index.ts. السبب الجذري: الحقل الجديد acronym ليس اختياريًا في محرك التلميح.

Knowledge Graph

Avoid these mistakes when using Bug:

1

Fixing symptoms instead of root causes (same bug comes back next week)

2

Not writing a test for the fixed bug (regression bugs recur without tests)

Sign in to unlock guided AI explanations from AI Teacher.

Generate a Prompt

Copy this prompt and use it directly with any AI model — no setup needed.

Ready-to-Use Prompt
Help me build a project using Bug.

Explain:
1. What is Bug and why it matters
2. The core architecture and required tools
3. Step-by-step implementation plan
4. Common mistakes to avoid: Fixing symptoms instead of root causes (same bug comes back next week), Not writing a test for the fixed bug (regression bugs recur without tests)
5. Best practices and production tips

Official Resources

No official documentation link on file for Bug yet.