Hey, Mom! The Explanation.

Here's the permanent dedicated link to my first Hey, Mom! post and the explanation of the feature it contains.

Sunday, October 29, 2017

Hey, Mom! Talking to My Mother #845 - Zen of Python

Hey, Mom! Talking to My Mother #845 - Zen of Python

Hi Mom,

Notice something different?

First time without a picture.

I signed up for a Coursera course today on Python, the one I learned about at Penguicon back in April.

I have been reading this book:

Python: A Crash Course by Eric Matthes,

which at the time of this writing is out of stock at Amazon.

It's a good book, and from the looks of things has more than covered everything in the first of the Coursera Python courses, which for me should be review.

So today, just this.

I like this about Python: The Zen of Python.

What I really like is that this zen collection of principles is an easter egg in the Python interpreter, as explained below.

Coders will "get" how cool that is.

https://en.m.wikipedia.org/wiki/Zen_of_Python

Zen of Python

The Zen of Python is a collection of 20 software principles that influences the design of Python Programming Language,[1] — only 19 of which were written down — around June 1999 by Tim Peters.[2][3] The principal text is released into public domain.[4]
Zen of Python is written as an informational entry number 20 in Python Enhancement Proposals (PEP), and can be found on the official Python website. It is also included as an easter egg in Python interpreter, which would be displayed by entering a statement import this.[1]

PrinciplesEdit

Principles are listed as follows:
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.[5]
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!

ReferencesEdit

  1. a b "Code Style"The Hitchhiker’s Guide to Python. 2015-11-18.
  2. ^ http://www.wefearchange.org/2010/06/import-this-and-zen-of-python.html
  3. ^ https://mail.python.org/pipermail/python-list/1999-June/001951.html
  4. ^ Tim Peters (2015-11-18) [2004]. "PEP20 -- The Zen of Python".
  5. ^ In the interpreter easter egg, this is written as 
  6. "Although never is often better than *right* now." 
  7. This follows a longstanding convention of plain-text communication- 
  8. in which common formatting features are often impossible- 
  9. where emphasis is represented with asterisks.

External linksEdit




+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Reflect and connect.

Have someone give you a kiss, and tell you that I love you.

I miss you so very much, Mom.

Talk to you tomorrow, Mom.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

- Days ago = 846 days ago

- Bloggery committed by chris tower - 1710.29 - 10:10

NEW (written 1708.27) NOTE on time: I am now in the same time zone as Google! So, when I post at 10:10 a.m. PDT to coincide with the time of your death, Mom, I am now actually posting late, so it's really 1:10 p.m. EDT. But I will continue to use the time stamp of 10:10 a.m. to remember the time of your death, Mom. I know this only matters to me, and to you, Mom.

No comments: