Skip to content

Commit

Permalink
Merge pull request #21 from tinymanorg/zen-docs
Browse files Browse the repository at this point in the history
The Zen of Tealish
  • Loading branch information
fergalwalsh committed Nov 23, 2022
2 parents d1c0cc3 + a9752df commit a7db05f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.rst
Expand Up @@ -36,6 +36,7 @@ Usage
recipes
questions
cli
zen



Expand Down
26 changes: 26 additions & 0 deletions docs/zen.rst
@@ -0,0 +1,26 @@
.. _zen:

The Zen of Tealish
==================

Readability is more important than writeability.
Code is for both machines and humans.
Explicit is better than implicit.
Except when it comes to stacks.
Static is better than dynamic.
Verbose is better than terse,
Except when it's not.
Ambiguity must be avoided.
Pragmatism always beats purity.
Surprises are for birthdays.
Boring is good.
Magic is best left to wizards.
Freedom of implementation is important,
But freedom of code style is not.
Optimization of resources is important,
But rarely more important than readability.
The best code is often the code that doesn't exist.
But the bug is also often the code that doesn't exist.
Embrace the uniqueness of the AVM.

Inspired by `PEP-20 - The Zen of Python <https://peps.python.org/pep-0020/>`_.

0 comments on commit a7db05f

Please sign in to comment.