Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The zen of design #8

Open
maurolepore opened this issue Mar 13, 2017 · 0 comments
Open

The zen of design #8

maurolepore opened this issue Mar 13, 2017 · 0 comments

Comments

@maurolepore
Copy link
Contributor

maurolepore commented Mar 13, 2017

From https://www.python.org/dev/peps/pep-0020/#id3

The Zen of Phyton Design (edit mine)

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!

--Tim Peters tim.peters@gmail.com

@maurolepore maurolepore changed the title Guidelines for design The zen of design Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant