https:\/\/en.wikipedia.org\/wiki\/Cyclomatic_complexity<\/a><\/p>\nNamespaces are great as they help organize code to reduce complexity.<\/p>\n
These 2 are complimentary as they are both about reducing code complexity.<\/p>\n
Sparse is better than dense.<\/p>\n
-this may refer to a general minimalism. Minimizing your depth of nesting of control structures, the number of lines or length of code, token count, character count, parameters, variables, looping instructions and conditionals. Minimizing at our level of programming may be risky for example, having long names for variables can actually be helpful so you just have to be careful. ,m<\/p>\n
Readability counts.<\/p>\n
-Some may say this is what makes organizations choose Python but who knows.<\/p>\n
Special cases aren’t special enough to break the rules.<\/p>\n
-Everything is an object<\/p>\n
Although practicality beats purity.<\/p>\n
-rules can be broken if you need to. For example circular imports:<\/p>\n
They’re not always a bad thing. In many cases you only have to import the module not from the module.<\/p>\n
Errors should never pass silently.<\/p>\n
-silent errors can wreck you and make you blame the users.<\/p>\n
Unless explicitly silenced.<\/p>\n
-Errors can be addressed in creative ways.<\/p>\n
In the face of ambiguity, refuse the temptation to guess.<\/p>\n
-self explanatory I think.<\/p>\n
There should be one– and preferably only one –obvious way to do it.<\/p>\n
–<\/p>\n
Although that way may not be obvious at first unless you’re Dutch.<\/p>\n
– Guido needs more credit.<\/p>\n
Now is better than never.<\/p>\n
-Just don’t wait, it’s not worth it.<\/p>\n
Although never is often better than *right* now.<\/p>\n
–<\/p>\n
If the implementation is hard to explain, it’s a bad idea.<\/p>\n
-better avoid it than do something without knowing.<\/p>\n
If the implementation is easy to explain, it may be a good idea.<\/p>\n
-you should also avoid extremely simple stuff.<\/p>\n
Namespaces are one honking great idea — let’s do more of those!<\/p>\n
–<\/p>\n
(Where is number 20? Is it a formatting character? Maybe a new Line?)<\/p>\n
<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"The Zen of Python The Zen of Python is an Interesting easter egg in Python. Originally written by Tim Peters in 2004, it as an informational entry number 20 in Python Enhancement Proposals You can find it by entering the statement “import this” I shall comment on a few of them because I think they […]<\/p>\n","protected":false},"author":214,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[178,287],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/28153"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/214"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=28153"}],"version-history":[{"count":1,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/28153\/revisions"}],"predecessor-version":[{"id":28154,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/28153\/revisions\/28154"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=28153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=28153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=28153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}