This post is a wiki, which means anyone can edit it. As an experiment, I’d like to see if we can compile a document that summarizes the underlying philosophy of the Teletype language. The original post describing the idea is at the bottom of this wiki. Changes to the wiki can be reverted or edited. However, discussion is easiest in replies in the thread. NOTE: if you quote from this in a reply, it will be attributed to @cmcavoy, even though this is a wiki with multiple authors. For clarity, if you quote, remove the attribution. When possible, include a footnote link to the post that justifies the axiom in the list below.
- The Teletype language is designed for musical [4] expression and creativity. [2]
- The Teletype language should be easy to hold in your head. [3]
- The Teletype language should feel like patching. [3]
- Everything can be translated into or expressed as voltage
- Parsing Teletype language programmatically is easy and should remain easy [1]
Active Discussion, move it up (ideally with a link to the discussion) when it feels like we’ve got consensus on the move.
- The script should be entirely visible on a single screen
- Musically interesting choices are sometimes preferable to scientifically correct choices
- Readability and learnability matter. Everything should be understandable at a glance.
- There should be one-- and preferably only one --obvious way to do it
- No runtime errors
From the original post, should be deleted at some point
I admire the Zen of Python and the related PEP 8, Idiomatic Python. The Zen of Python,
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!
I’m interested in compiling a similar statement about Teletype the language based on what I see here. When someone suggests adding a feature to Python, PEP 8 and the ZofP end up being referenced at some point in the conversation. It’s a guiding statement.
Anyone interested in contributing ideas? I’m not in a hurry. Just something that’s been floating around in the back of my mind this week.