قاموس المصطلحات

مقدمة

English Arabic
Code Editor: A program for writing and editing source code, such as Visual Studio Code. محرر النص البرمجي: برنامج تكتب فيه النص البرمجي وتعدّله، مثل Visual Studio Code.
Development Environment: The tools used to write, run, test, and debug programs. بيئة التطوير: الأدوات الأساسية والمساعدة في كتابة النص البرمجي وتنفيذه واختباره وتصحيحه.
Tabs: UI panels for open files that you can close and reopen. تبويبات: واجهة تظهر فيها الملفات المفتوحة ويمكن إغلاقها وإعادة فتحها.
Terminal: A console inside the editor for running system commands, such as installs and project setup. شاشة الأوامر: نافذة تشغّل فيها أوامر النظام داخل المحرر، مثل تثبيت الأدوات وتشغيل المشاريع.
Command Palette: A quick-command menu in the editor (e.g. Ctrl+Shift+P) for themes, settings, and extensions. لوحة الأوامر: قائمة أوامر سريعة في المحرر (مثل Ctrl+Shift+P) لاختيار السمات والإعدادات والإضافات.
Packages: Third-party libraries or programs you install and use in a project. حزم: برامج أو مكتبات يكتبها آخرون وتُثبَّت لتُستعمل في المشروع.

1 — التعليمات

English Arabic
Type: A property of a value that determines which operations are allowed on it. نوع: صفة القيمة التي تحدد ما يجوز عليها من العوامل وما يمتنع.
Number: The family of numeric types in Python, including integers and floats. صنف العدد: عائلة الأنواع العددية في بايثون، ومنها الصحيح وذو الفاصلة العشرية.
int: A whole number (int); used for indexing, counting, ordering, and increments. العدد الصحيح: عدد بلا كسر، يُرمَز له بـ int؛ يُستعمل في الفهرسة والعد والترتيب والزيادة والنقصان.
float: A floating-point number (float); represents quantities such as money, distance, and time. العدد العشري: عدد بفاصلة عائمة يُرمَز له بـ float؛ يمثّل الكميات كالمال والمسافة والوقت.
complex: A complex number with real and imaginary parts (complex). العدد المركب: عدد مركّب بجزء حقيقي وآخر تخيلي، يُرمَز له بـ complex.
bool: A Boolean value, either True or False; in Python it is a numeric type. القيمة المنطقية: قيمة منطقية أحد اثنين: نعم (True) أو لا (False)؛ وهي من صنف العدد في بايثون.
str: A sequence of characters, written with single or double quotes. النص: سلسلة أحرف تُعرَّف بعلامتي تنصيص مفردة أو مزدوجة.
Variable: A name bound to a value or to an expression that yields a value, so it can be referred to later. المتغير: اسم يُسنَد إليه قيمة أو تعبير يؤول إلى قيمة، فيمكن الإشارة إليها لاحقًا بالاسم.
Operators: Symbols or words that perform operations on values, such as + and ==. العوامل: رموز أو كلمات تُجرى بها عمليات على القيم، مثل الجمع + والمساواة ==.
Expression: A combination of values and operators that evaluates to a single value. التعبير: تركيبة من قيم وعوامل تؤول إلى قيمة واحدة عند التقييم.
Assignment Operator: The = that binds a value to a variable; not mathematical equality. عامل التعيين: علامة = التي تسند قيمة إلى متغير؛ وليست علامة المساواة الرياضية.
Augmented Assignment: A shorthand that updates a variable from its previous value, e.g. x += 1 for x = x + 1. التعيين النسبي: اختصار يعدّل قيمة المتغير باستخدام قيمته السابقة، مثل x += 1 بدل x = x + 1.
Multiple Assignment: Assigning more than one variable in a single statement. التعيين المتعدد: تعيين أكثر من متغير في جملة واحدة.
assert: A statement that stays silent when a condition holds and raises an error otherwise; used to assert invariants. جملة التوكيد: جملة تسكت إن كان الشرط صحيحًا، وتظهر خطأ إن تخلّف؛ تُستعمل لتقرير اللوازم.

2 — توالي الأوامر

English Arabic
Flow: The continuous progression of instructions or events through a system. التدفق: السير المستمر للأوامر أو الأحداث في النظام.
Digital Logic: Logic based on precisely timed electrical pulses; the foundation of binary computation. المنطق الرقمي: منطق التيارات الكهربائية ذات التردد المضبوط، أساس عمل الحاسب بالأصفار والآحاد.
Control-flow: Conditional constructs that choose the next instruction instead of always proceeding sequentially. التحكم في سير الأوامر: جمل شرطية يُختار بها الأمر التالي بدل الانتقال دائمًا إلى ما يليه مباشرة.
Sequence: An execution pattern that moves from one instruction to the next in order. تتابع: نمط تنفيذ ينتقل من الأمر إلى الأمر الذي يليه مباشرة.
Selection: An execution pattern in which taking a branch depends on a condition. اختيار: نمط تنفيذ يكون فيه الانتقال إلى أمرٍ ما مشروطًا.
Iteration: A selection pattern that jumps backward to repeat steps a bounded number of times. تكرار: نمط اختيار يعود فيه التنفيذ إلى الوراء لإعادة خطوات محدودة.
Algorithm: A finite sequence of steps—using sequence, selection, and iteration—to achieve a goal. خوارزمية: تتابع واختيار وتكرار لتحقيق غاية محددة بعدد محدود من الخطوات.
Indentation: Leading spaces that, in Python, define the body of a conditional or loop. المسافة البادئة: المسافات من أول السطر التي تحدد في بايثون حدود الكتلة داخل الشرط أو الحلقة.
Algebraic Logic: Boolean algebra—George Boole’s formal logic—underlying digital true/false reasoning. الجبر المنطقي: علم جورج بول في قوانين الفكر، أصل المنطق الرقمي بالأصفار والآحاد.
True: The Boolean true value in Python. نعم: القيمة المنطقية الموجبة في بايثون.
False: The Boolean false value in Python. لا: القيمة المنطقية السالبة في بايثون.
if: A conditional that runs a block when its condition is true. إذا: جملة شرطية تنفّذ كتلة إن تحقق شرطها.
elif: A conditional branch tested only when earlier conditions failed. وإلا فإن: فرع شرطي لا يُختبر إلا عند تخلّف الشروط السابقة له.
else: A branch that runs when no preceding condition in the chain held. وإلا: فرع يُنفَّذ إذا لم يتحقق أي شرط سابق في السلسلة الشرطية.
not: A Boolean operator that negates a condition. العكس: عامل منطقي يقلب صحة الشرط.
and: A Boolean operator that is true only when both sides are true. الجمع: عامل منطقي يصحّ فقط إذا صحّ الطرفان.
or: A Boolean operator that is true when at least one side is true. الخيار: عامل منطقي يصحّ إذا صحّ أحد الطرفين على الأقل.

3 — الدوال

English Arabic
Function: A named piece of code invoked with arguments according to its parameters, usually returning a result. الدالة: قطعة نص برمجي لها اسم تُستدعى بمعطيات بحسب معاملاتها وتعود غالبًا بنتيجة.
Procedure: A callable routine (also called a function or subprogram) invoked with arguments. الإجراء: مرادف عملي للدالة أو الروتين أو البرنامج الفرعي؛ قطعة قابلة للاستدعاء بمعطيات.
Keyword: A reserved word with special meaning in Python (e.g. if, for, and) that cannot be used as an identifier. الكلمة المفتاحية: كلمة محجوزة في بايثون لها دلالة خاصة، مثل if وfor وand، ولا تُستعمل اسمًا لمتغير.
Dot Operator: The . that names an attribute inside a module or object, e.g. math.pi. عامل إسناد: النقطة (.) التي تشير إلى مسمّى متضمَّن في وحدة أو كائن، مثل math.pi.
Built-in: Functions available without import, such as print() and round(). مبنيّة: دوال جاهزة في بايثون لا تحتاج استيرادًا، مثل print() وround().
Library: A collection of modules imported to extend a program’s capabilities. المكتبة: مجموعة وحدات برمجية تُستورد لتوسيع قدرات البرنامج.
Built-in Modules: Modules that ship with Python and need no extra install. الوحدات المدمجة: وحدات تأتي مع بايثون دون تثبيت إضافي.
Standard Library: Python’s official documentation and set of built-in standard modules. المكتبة الأساسية: صفحات بايثون المرجعية لمجموعة الوحدات المدمجة الرسمية.
Call: Invoking a procedure by writing its name with call parentheses and any arguments. الاستدعاء: تشغيل إجراء بذكر اسمه مع قوسي الاستدعاء وما يُمرَّر بينهما من معطيات.
Call Operator: The () after a name, through which arguments are passed. عامل الاستدعاء: القوسان () بعد اسم الإجراء، وبهما تُمرَّر المعطيات.
return: A statement that sends a result from a procedure back to the call site. الرجوع: جملة تعيد نتيجة من الإجراء إلى موضع الاستدعاء.
Scopes: Levels of name visibility: local, enclosing, global, and built-in (the LEGB rule). النطاقات: مستويات ظهور الأسماء: محلي، محيط، عام، ومبني (قاعدة LEGB).
Local Scope: Names defined inside the current procedure. النطاق المحلي: المتغيرات المعرَّفة داخل الإجراء الحالي.
Enclosing Scope: Names from an outer procedure that contains the current one. النطاق المحيط: متغيرات إجراء خارجي يحتوي الإجراء الحالي.
Global Scope: Names defined outside every procedure. النطاق العام: المتغيرات المعرَّفة خارج جميع الإجراءات.
Built-in Scope: Built-in names such as print(). النطاق المبني: الأسماء المبنية في بايثون مثل print().
Call-site: The place in the code where a procedure is invoked. موقع الاستدعاء: المكان في النص البرمجي الذي يُنادى منه الإجراء.
Call Stack: The stack of active calls during execution, layered one above another. كومة الاستدعاءات: تراكم الاستدعاءات النشطة أثناء التنفيذ، طبقة فوق طبقة.
Flamegraph: A visual of call time where layer width reflects time spent. الرسم اللهبي: تمثيل بصري لوقت الاستدعاءات وعرض الطبقات يدل على زمن التنفيذ.
Recursive Function: A procedure that calls itself, directly or indirectly, and must reach a base case. الإجراء المتسلسل: إجراء يطلب نفسه مباشرة أو غير مباشرة، ويجب أن ينتهي بتوقف للتسلسل.
from: An import form that binds selected names from a module without qualifying them each time. من: صيغة استيراد تأخذ مسميات من وحدة دون إسناد الوحدة في كل استعمال.

4 — التسلسل

English Arabic
Assignment: The = statement that stores a value in a name, overwriting any earlier binding—not mathematical equality. التعيين: جملة = تكتب قيمة في متغير وتنسخ أي تعيين سابق لنفس الاسم؛ وليست مساواة رياضية.
Augmented Assignment: Shorthand that updates a variable from its previous value (e.g. +=, *=). التعيين النسبي: اختصار يعدّل المتغير من قيمته السابقة، مثل الجمع والضرب المختصرين.
Iteration: Walking through the elements of a collection; in Python, typically a for loop. الكر: جملة العبور على عناصر مجموعة، وتبدأ في بايثون بكلمة for.
Accumulator: A variable updated step by step to build up a final result, such as a running total. المُراكِم: متغير يُحدَّث خطوة بخطوة لتحصيل قيمة نهائية، مثل مجموع عناصر قائمة.
Modulus: The remainder after division; used for wrap-around at a bound, as on a clock. القياس: باقي القسمة؛ يُستعمل للالتفاف حول قيمة حدية، كما في ساعة الحائط.
Tables: A pattern of related sequences treated together, like expense and revenue columns by quarter. الجداول: نمط مجموعات مرتبطة عناصرها ببعض، كأعمدة المصروفات والإيرادات عبر أرباع السنة.
Filtering: Selecting elements that meet a criterion, e.g. separating positives from negatives. التصفية: استخراج عناصر المجموعة بحسب معيار، مثل فصل الموجب عن السالب.
list: A mutable sequence of values, written with square brackets []. القائمة: تسلسل بيانات متغير يُعبَّر عنه بالقوسين المربعين [].
Iterable: An object you can walk element by element, supporting constructs like for and sum. القابل للكر: ما يقبل العبور عنصرًا عنصرًا، فتعمل عليه إجراءات مثل for وsum.
Container: A collection that supports membership tests (in / not in). الحاوي: جمع يقبل اختبار العضوية (in / not in).
Membership: Testing whether an element is in a collection with in / not in; implemented by __contains__. العضوية: اختبار وجود عنصر في جمع، بـ in / not in؛ طريقتها __contains__.
Length: The number of elements in a collection via len; implemented by __len__. العد: عدد عناصر الجمع عبر len؛ طريقتها __len__.
Sized: A collection that supports len. المحجَّم: جمع يقبل العد بـ len.
Collection: A sized, iterable container; the abstract base of many collection types. الجمع: حاوٍ ذو حجم وقابل للكر؛ أساس كثير من أنواع المجموعات في بايثون.
Sequence: An ordered collection with indexed positions, supporting indexing, slicing, and shared sequence operations. التسلسل: جمع مرتب بعناصر ذات مواضع، يقبل الفهرسة والقطع والعمليات المشتركة للتسلسلات.
tuple: An immutable sequence, typically written with parentheses (). الصف: تسلسل ثابت يُعبَّر عنه غالبًا بالقوسين الهلاليين ().
Immutable: An object that cannot be changed after creation, such as a tuple or a string. جامد: ما لا يقبل التغيير بعد إنشائه، كالصف والنص.
Mutable: An object that can be changed after creation, such as a list or a dict. متغير: ما يقبل التعديل بعد إنشائه، كالقائمة والقاموس.
slice: Extracting part of a sequence with : colons, e.g. xs[start:stop]. الشريحة: استخراج جزء من التسلسل بالنقطتين الرأسيتين :، نحو xs[start:stop].
range: A generator of integers between a start and stop with a step, created by range(). المجال / النطاق: مولّد لسلسلة أعداد بين بداية ونهاية بخطوة؛ يُنشأ بـ range().
start: The inclusive start of a range; defaults to 0 when omitted. البداية: طرف المجال المشمول؛ قيمته الافتراضية 0 إن أُهملت.
stop: The exclusive end of a range; required and cannot be omitted. النهاية: طرف المجال غير المشمول؛ واجب ولا يُهمل.
step: The increment (or decrement) between successive values in a range; defaults to 1. الخطوة: مقدار الزيادة أو النقص بين عدد والذي يليه في المجال؛ الافتراضي 1.
Indexing: Accessing a sequence element by position, e.g. xs[i]. الإشارة بالموضع: الوصول لعنصر التسلسل بموضعه، نحو xs[i].
str: An immutable sequence of Unicode characters. النص: تسلسل ثابت من أحرف الترميز العالمي (Unicode).

5 — القاموس

English Arabic
Key: The identifier paired with a value in a dictionary; often a string, and must be hashable. المفتاح: المعرّف الذي يقابل قيمة في القاموس؛ غالبًا نص، ويجب أن يكون قابلاً للتجزئة.
Hash: Turning a key or element into a number used for indexing in a dict or set; requires hashability. التجزئة: عملية تحوّل المفتاح أو العنصر إلى رقم يُستعمل لفهرسته في القاموس أو المجموعة؛ يشترط قابلية التجزئة.
Value: What is stored for a key; may be a string, number, list, or even another dictionary. القيمة: ما يُخزَّن مقابل المفتاح؛ قد تكون نصًا أو عددًا أو قائمة أو قاموسًا.
dict: A mutable ordered collection of unique hashed keys, each mapped to a value. القاموس: جمع متغير مرتب من مفاتيح مرقَّمة فريدة، تقابل كلًّا منها قيمة.
Collection: Treating a dict as a sized iterable container: membership, length, and iteration. الجمع: كون القاموس حاويًا معدودًا قابلاً للتكرار: عضوية وعدّ وكرّ.
Mapping: An interface for looking up values by key, such as indexing and .get. مقابلة: واجهة تقرأ القيم بالمفاتيح، مثل الإشارة و.get.
MutableMapping: A mapping that allows insert, delete, and update of key–value pairs. مقابلة متغيرة: مقابلة تقبل التعديل: إضافة وحذف وتحديث المفاتيح والقيم.
set: A mutable collection of unique hashed elements with no order. المجموعة: جمع متغير من عناصر مرقَّمة فريدة بلا ترتيب.

6 — الملفات والنصوص

English Arabic
Text Processing: Programmatic handling of text in forms such as messages, articles, and web pages. معالجة النصوص: التعامل البرمجي مع النصوص بأشكالها: رسائل ومقالات وصفحات وغيرها.
Control Characters: Characters below the space code in ASCII that control devices rather than display glyphs. أحرف تحكم: أحرف قبل رمز المسافة في جدول ASCII تتحكم في أجهزة الكتابة دون ظهور حرف مقروء.
Whitespace Characters: Characters that insert space or movement in text, including space, newline, and tab. أحرف الفراغات: أحرف تُحدث فراغًا أو انتقالًا في النص، ومنها المسافة والسطر والبادئة.
Space: The " " character that separates words by one step. المسافة: حرف الفراغ " " للفصل بين الكلمات بخطوة واحدة.
Line Feed: The "\n" character that advances to the next line. السطر: حرف "\n" للانتقال إلى السطر التالي.
Tab: The "\t" character for indentation or column gaps; also used in Python layout. البادئة: حرف "\t" للمحاذاة أو الفصل بين أعمدة؛ ويُستعمل أيضًا في محاذاة بايثون.
Absolute: A path that fully locates a file starting from the filesystem root. مطلق: مسار يحدد موقع الملف كاملاً بدءًا من جذر النظام.
Relative: A path that locates a file relative to the current location. نسبي: مسار يحدد الموقع بالنسبة للموضع الحالي.
Directory: A node that contains other files or directories in the filesystem tree. دليل: ملف يحوي ملفات أو أدلة أخرى في هيكل النظام.
Folder: The common GUI name for a directory. مجلَّد: الاسم الشائع في الواجهة الرسومية للدليل.
File: A container of text or binary data, such as a .csv or .py file. ملف: وعاء بيانات نصية أو ثنائية، مثل .csv أو .py.
File Extension: The letters after the last dot in a name, indicating content type (e.g. csv, py). صيغة الملف: الحروف بعد آخر نقطة في الاسم، تدل على نوع المحتوى، مثل csv وpy.
Globbing: Matching many paths under a location with a simple name pattern. البحث العام: مطابقة عدة مسارات بنمط بسيط للأسماء تحت مسار معيّن.
Regular Expression: A richer pattern language than globs for matching text and paths precisely. التعبيرات النمطية: لغة تنميط أغنى من أنماط glob لمطابقة النصوص والمسارات بدقة أكبر.
open: Opening a file for reading or writing according to a mode. الفتح: إجراء فتح الملف للقراءة أو الكتابة بحسب الوضع (mode).
pathlib: Python’s module for building paths, searching them, querying what they refer to, and walking them. مكتبة المسار: وحدة بايثون لإنشاء المسارات والبحث فيها والاستعلام عن مدلولها والسير فيها.
str: An immutable row of Unicode characters; a sequence supporting shared sequence operations. النص: صف ثابت من أحرف Unicode؛ تسلسل يقبل عمليات التسلسل المشتركة.

7 — الحاسب والعالم

English Arabic
CPU: The component where software becomes electrical work; made of a control unit and an ALU. وحدة المعالجة المركزية: المكوّن الذي تُترجَم فيه البرمجية إلى عمل الدوائر الكهربائية؛ تتكون من وحدة تحكم ووحدة حساب ومنطق.
Control Unit: The processor part that directs control flow: loops, conditions, and I/O. وحدة التحكم: جزء المعالج الذي يوجّه سير العمليات: التكرار والشرط والإدخال والإخراج.
ALU: The processor part that executes digital operations such as arithmetic and comparison. وحدة الحساب والمنطق: جزء المعالج الذي ينفّذ تعليمات المنطق الرقمي كالجمع والمقارنة.
Computation: Work performed by the CPU itself, such as arithmetic, conditionals, and string operations. عمليات حساب: عمليات ينفّذها المعالج نفسه، مثل الجمع والشرط ودمج النصوص.
I/O: Work performed by attached devices at the computer’s request (Input/Output). عمليات إدخال وإخراج: عمليات تنفّذها الأجهزة المرتبطة بالحاسب بناءً على طلبه.
RAM: Memory that holds the running program and data for fast processing. ذاكرة الوصول العشوائي: ذاكرة تحمل البرنامج المترجَم والبيانات أثناء التشغيل للمعالجة السريعة.
Storage: Long-term storage such as an HDD or SSD. المخزن: وسط حفظ طويل الأمد مثل القرص الصلب أو قرص الحالة الصلبة.
Network: A channel for exchanging data with other devices over wired or wireless links. الشبكة: منفذ تدخل وتخرج عبره المعلومات من وإلى أجهزة أخرى سلكيًا أو لاسلكيًا.

8 — الأخطاء

English Arabic
Syntactic Error: A violation of the language’s form rules, such as a missing : after a condition. الخطأ النحوي: مخالفة قواعد مبنى اللغة، مثل فقدان : بعد الشرط.
Logical Error: Syntactically valid code that does not do what the author intended. الخطأ المنطقي: تعبير صحيح نحويًا لكنه لا يحقق المقصود الذي أراده كاتبه.
Bug: A defect in a program; often a silent logical error the compiler does not catch alone. بَق: مشكلة في البرنامج؛ غالبًا خطأ منطقي صامت لا يكتشفه المترجم وحده.
Debugger: A tool that helps find and fix program defects. المدقق: برنامج يساعد في إيجاد المشاكل البرمجية وإصلاحها.
Debugging: The process of finding and fixing bugs. التدقيق: عملية البحث عن البق وإصلاحها.
Runtime Error: An error encountered while the program is running, after the code is syntactically valid. الخطأ التشغيلي: خطأ يُصادَف أثناء عمل البرنامج بعد أن يكون النص صحيح المبنى.
Exception: A signal that execution left the expected paths; Python’s mechanism for runtime errors. الاستثناء: إعلام بخروج التنفيذ عن المسارات المتوقعة؛ آلية بايثون للأخطاء التشغيلية.
Crash: Full program stop when an unhandled exception escapes; often preferable to continuing wrongly. الانهيار: توقف البرنامج بالكلية عند استثناء غير معالج؛ غالبًا أفضل من الاستمرار الخاطئ.
Stack Trace: A report of the call chain leading to the error and its immediate cause. كومة الاستدعاءات: تقرير يبيّن سلسلة الاستدعاءات حتى موضع الخطأ وسببه المباشر.
raise: Creating and throwing an exception so the caller must handle it or re-raise it. الرفع: إنشاء استثناء ورفعه للمستدعي؛ يجبره على المعالجة أو إعادة الرفع.
Frameworks: Application frameworks that may catch exceptions so a service keeps running despite partial failure. أطر العمل: بيئات تطبيقية قد تلتقط الاستثناءات لتبقي الخدمة تعمل رغم فشل جزء منها.

9 — البرمجة بالكائنات

English Arabic
Object-oriented Programming — OOP: A style that splits a program into objects, each with its own state and transitions. البرمجة الكائنية: أسلوب يجزّئ البرنامج إلى كائنات لكل منها حال وانتقالات خاصة.
State: The data an object holds, represented by variables and read operations. الحال: ما يحتفظ به الكائن من بيانات، وتمثّله المتغيرات وطرائق القراءة.
Transition: Changing state via write methods or side effects on outputs. الانتقال: تغيير الحال عبر طرائق الكتابة أو التأثير في المخرجات.
Read: Operations that inspect state without changing it, such as indexing, length, and membership. قراءة: عمليات تستعلم عن الحال دون تغييره، مثل الفهرسة والعد والعضوية.
Write: Operations that change state, such as append, remove, and assignment. الكتابة: عمليات تنتقل بالحال، مثل الإضافة والحذف والتعديل.
Class: The type definition from which objects are created, e.g. Counter. الصنف: تعريف النوع الذي يُنشأ منه الكائن، مثل Counter.
Properties: Data attributes bound on self for an object. الخصائص: ما يُسنَد إلى self من بيانات الكائن.
Methods: Procedures defined in a class that operate on an instance. الطرائق: إجراءات معرَّفة داخل الصنف وتعمل على الكائن.
Representation: How an object appears when displayed, often via __repr__ for printing. التمثيل: صورة الكائن عند العرض، غالبًا عبر __repr__ عند الطباعة.
Inheritance: A relationship where a class takes attributes and methods from a more general class. الوراثة: علاقة يستمد بها صنف خصائصه وطرائقه من صنف أعم.
Sub-classing: Creating a more specific class that inherits from and extends a general one. تخصيص: إنشاء صنف أخص يرث من صنف أعم ويوسّعه أو يقيّده.
Decorator: A marker such as @property that alters how a method or function is defined. المعدِّل: وسم مثل @property يغيّر سلوك تعريف طريقة أو إجراء.
Abstract: A class not meant for direct use, only for subclassing—e.g. Shape before Rectangle. مجرَّد: صنف لا يُستعمل مباشرة، بل يُخصَّص أولاً، مثل الشكل قبل المستطيل.
Rectangle: An example subclass of Shape with concrete dimensions. المستطيل: مثال صنف يرث من الشكل ويحدد أبعادًا ملموسة.
Set: A structure of unique unordered elements; Python’s built-in set, sometimes reimplemented for teaching. المجموعة الرياضية: هيكل عناصر فريدة بلا ترتيب؛ في بايثون النوع المدمج set، وقد يُعرَّف تعليميًا يدويًا.
Encapsulation: Hiding data details behind a procedural interface that enforces constraints and safety. التغليف: إخفاء تفاصيل البيانات خلف واجهة إجراءات تضمن القيود والسلامة.
Pre-conditions: Conditions that must hold before an operation runs, e.g. a positive deposit. قبليات: شروط يجب تحققها قبل تنفيذ العملية، مثل كون الزيادة موجبة.
Post-conditions: Guarantees after an operation completes, e.g. logging a transaction. بعديات: ضمانات بعد تمام العملية، مثل تسجيل تاريخ الحركة.
Static Method: A method bound to the class rather than an instance, via @staticmethod. الإجراء المُثبَت: إجراء مسند إلى الصنف لا إلى المعيَّن، بوسم @staticmethod.
Static Variable: A variable bound to the class and shared across all instances. المتغير المُثبَت: متغير مسند إلى الصنف ويشارَك بين جميع المعيَّنات.
Data Structure: How data is organized in memory and shape, such as arrays, trees, and stacks. هيكلة البيانات: تنظيم البيانات في الذاكرة وشكلها، مثل المصفوفة والشجرة والكومة.
Stack: A last-in, first-out structure with push and pop, like a stack of papers. الكومة: هيكل آخر-داخل-أول-خارج بعمليتي push وpop، كأوراق مكدّسة.

زيادات

English Arabic
Functional Programming: A style where functions take or return functions, favoring pure functions and composition. البرمجة الإجراءية: نمط يقبل فيه الإجراءُ إجراءً في عوامله أو يُنتج إجراءً جديدًا، مع تفضيل الدوال النقية والتركيب.
Higher-order Function: A function that takes a function as input or returns a function as output. الإجراء العالي: إجراء يقبل إجراءً أو يُنتج إجراءً.
lambda: An anonymous function defined as a single expression that implicitly returns its result. الإجراء النكرة: تعريف إجراء بلا اسم بجملة واحدة تعود بالناتج ضمنًا.
State: All variables in a procedure’s scope that later behavior depends on. الحال: جميع المتغيرات في نطاق الإجراء التي يبني عليها سلوكه اللاحق.
Decorator: A function that wraps another function to produce a new one with altered behavior. المزيِّن: إجراء يأخذ إجراءً لينتج إجراءً جديدًا منه (تعديل السلوك دون تغيير التعريف الأصلي مباشرة).
Memoized: A function that caches results for given inputs; requires purity (outputs depend only on inputs). إجراء حافظ: إجراء يحفظ نتائج مدخلاته لإعادة استعمالها؛ يشترط أن يكون نقيًا (مخرجاته من مدخلاته فقط).
Iteration: Walking the elements of a collection; one of the most common programming operations. الكر: عبور عناصر مجموعة؛ ومن أكثر العمليات استعمالًا في البرمجة.
Iterable: An object that yields an element each step—like a book that can be walked but does not turn its own pages. المكرور: ما يُنتج عنصرًا في كل كرة، كالكتاب الذي فيه مفهوم التوالي دون أن يقلب صفحاته بنفسه.
Iterator: An object that remembers its place and yields the next item on demand. الكار: ما يحفظ موضعه ويعطي ما بعده عند الطلب.
Generator: An iterable function that yields values on demand (often with yield) instead of returning a full list at once. المولِّد: دالة قابلة للكر تُنتج قيمًا عند الطلب (غالبًا بـ yield) بدل إرجاع قائمة كاملة دفعة واحدة.
Permutations: All possible orderings of a collection’s elements (itertools.permutations). التباديل: جميع الترتيبات الممكنة لعناصر المجموعة (itertools.permutations).
Combinations: Selections of unique elements regardless of order (itertools.combinations). التوافيق: اختيار عناصر فريدة بغض النظر عن الترتيب (itertools.combinations).
Product: The Cartesian product of multiple iterables (itertools.product). الضرب: الجداء الديكارتي لتكرارات متعددة (itertools.product).
Calendar Time: Human calendar date, clock time, and timezone, e.g. 2024-11-25 08:30:25 GMT+3. وقت التقويم: تمثيل التاريخ والساعة والمنطقة الزمنية كما يراه الإنسان، مثل 2024-11-25 08:30:25 GMT+3.
UTC: The global time reference (Coordinated Universal Time), introduced in 1967 to coordinate across regions. التوقيت العالمي المنسق: مرجع زمني عالمي (Coordinated Universal Time) ظهر عام 1967 لتنسيق التعامل بين الدول عبر القارات.
Timezones: Geographic offsets from a global time reference for scheduling and coordination. المناطق الزمنية: تقسيم جغرافي لإزاحة الوقت عن مرجع عالمي لتنسيق المواعيد والتواصل.