שיר, קומיקס ועוד מבית היוצר של פייתון

קדם Forums הייטק Programming Languages שיר, קומיקס ועוד מבית היוצר של פייתון

  • שיר, קומיקס ועוד מבית היוצר של פייתון

    פורסם ע"י הדר צמח  חברה on 03/12/2019 ב4:54 am

    חיפשתי דברים מעניינים על פייתון, מסתבר שהיוצרים היו יותר יצירתיים ממה שחשבתי… הנה כמה דוגמאות: כידוע, בפיתון לא משתמשים בסוגריים כדי לתחום קוד. כדי לסמן פונקציה או תנאי לדוגמה משתמשים בזיח. אבל אם בכל אופן תנסו ליבא סוגריים, תקבלו שגיאה שנונה: >>> from __future__ import braces SyntaxError: not a chance אם ממש כואב לכם הראש מרוב עבודה ואתם רוצים להתרענן עם קומיקס, פשוט ייבאו את הספריה antigravity שתפתח לכם דף אינטרנט עם הקומיקס הבא: import antigravity ולסיום, import this יציג בפניכם שיר פטריוטי על פיתון עקרונותיה ויתרונותיה: >>> import this The Zen of Python, by Tim Peters 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!

    הדר צמח  הגיבה לפני 4 שנים, 5 חודשים 1 חברה · 0 תגובות
  • 0 תגובות

עוד לא נכתבו תגובות לדיון זה.

Log in to reply.

מעוניינת בפרסום

חשוב: לא כל פרסום מאושר, נא לפרט בדיוק במה מדובר

ניתן לפנות גם במייל ל: [email protected]

מה את מחפשת?

מילות מפתח פופולריות לפי תחומים

ניתן לחפש גם מילות מפתח , תפקידים וכישרון מיוחד שאינם מופיעים ברשימות - "נהגת", "ציור בחול" וכדומה.

דילוג לתוכן