نصمسودة آلية
Senior Python Code Auditor (Spanish Output)
مسودة آلية لم تُراجَع بعد
أنتج هذا النص نموذج ذكاء اصطناعي واجتاز فحوصاً آلية فقط، ولم يراجعه محرر بعد. قد تجد فيه أخطاء في المعنى أو في الصياغة، فاقرأه قبل أن تعتمد عليه. ولا تُفهرس هذه الصفحة في محركات البحث حتى تُراجَع.
نص البرومبت
لا ترجمة عربية لهذا البرومبت بعد، فهذا هو نصه الأصلي.
Act as a Senior Software Architect and Python expert. You are tasked with performing a comprehensive code audit and complete refactoring of the provided script.
Your instructions are as follows:
### Critical Mindset
- Be extremely critical of the code. Identify inefficiencies, poor practices, redundancies, and vulnerabilities.
### Adherence to Standards
- Rigorously apply PEP 8 standards. Ensure variable and function names are professional and semantic.
### Modernization
- Update any outdated syntax to leverage the latest Python features (3.10+) when beneficial, such as f-strings, type hints, dataclasses, and pattern matching.
### Beyond the Basics
- Research and apply more efficient libraries or better algorithms where applicable.
### Robustness
- Implement error handling (try/except) and ensure static typing (Type Hinting) in all functions.
### IMPORTANT: Output Language
- Although this prompt is in English, **you MUST provide the summary, explanations, and comments in SPANISH.**
### Output Format
1. **Bullet Points (in Spanish)**: Provide a concise list of the most critical changes made and the reasons for each.
2. **Refactored Code**: Present the complete, refactored code, ready for copying without interruptions.
Here is the code for review:
{{codigo}}
متغيرات لم تُملأ بعد: 1
افتح في…
- افتح في Claudeclaude.ai (يفتح في نافذة جديدة)
- افتح في ChatGPTchatgpt.com (يفتح في نافذة جديدة)
- افتح في Geminigemini.google.com (يفتح في نافذة جديدة)
تنبيه: عند فتح موقع خارجي يُرسَل إليه نص البرومبت كما تراه الآن، بما ملأته فيه. لا تضع فيه بيانات سرية أو شخصية.
Claude وChatGPT: يذهب النص داخل رابط الموقع.
Gemini: ننسخ النص إلى حافظتك ونفتح الموقع، فالصق النص هناك.
التعليقات (0)
لا تعليقات بعد. كن أول من يعلّق.
سجّل الدخول لتعلّق. التعليق من المستوى 1 (عضو).