Skip to content

Instantly share code, notes, and snippets.

@assem-ch
Created February 17, 2022 15:54
Show Gist options
  • Save assem-ch/324a5ba9fc242c115dcb3e5db4fbfeaf to your computer and use it in GitHub Desktop.
Save assem-ch/324a5ba9fc242c115dcb3e5db4fbfeaf to your computer and use it in GitHub Desktop.
روح البايثون | Zen of python in Arabic
الجميل خير من القبيح
Beautiful is better than ugly.
الصريح خير من المستتر
Explicit is better than implicit.
البسيط خير من المركّب
Simple is better than complex.
المركب خير من المعقّد
Complex is better than complicated.
المستوي خير من المتداخل
Flat is better than nested.
المتناثر خير من الكثيف
Sparse is better than dense.
المقروئية تهمّ
Readability counts.
الحالات الخاصة ليست خاصة بما يكفي لتكسر القواعد
Special cases aren't special enough to break the rules.
ومع ذلك، العملية تسبق النقاء
Although practicality beats purity.
الأخطاء يجب أن لا تمرّ أبدًا في صمت
إلا إن أُخرِست بصراحة
Errors should never pass silently.
Unless explicitly silenced.
في مواجهة الغموض، قاوم إغراء التخمين
In the face of ambiguity, refuse the temptation to guess.
يجب أن يكون هنالك سبيل واحد -- ويفضل أن يكون أوحدا -- للتنفيذ
ومع ذلك، هذا قد لا يكون جليا في البداية إلا إن كنت هولندياً!
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
الآن خير من أبدًا
ومع ذلك أبدًا خير من فورا الآن
Now is better than never.
Although never is often better than *right* now.
إذا كان التنفيذ صعب الشرح فهو فكرة سيئة
إذا كان التنفيذ سهل الشرح فقد يكون فكرة جيدة
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
النطاقات فكرة رائعة -- فلنفعل الكثير مثلها
Namespaces are one honking great idea -- let's do more of those!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment