Rusty's Interface Simplicity Spectrum
31 July 2004, 09:39 AM Filed in: …on Coding
Martin Pool writes yet another excellent blog entry, this time about Rusty on Interface Simplicity. His OLS 2003 keynote had an “interface simplicity spectrum”, which is so good, Martin reproduced it in his blog, and I’m going to reproduce it in mine, for my own reference:
- Compiler/linker won’t let you get it wrong.
- Compiler will warn if you get it wrong.
- The simplest use is the correct one.
- The name tells you how to use it.
- Do it right or it will break at runtime.
- Follow common convention and you’ll get it right.
- Read the documentation and you’ll get it right.
- Read the implementation and you’ll get it right.
- Read the correct mailing list thread and you’ll get it right.
- Read the documentation and you’ll get it wrong.
- Follow common convention and you’ll get it wrong.
- Do it right and it will break at runtime.
- The name tells you how not to use it.
- The obvious use is wrong.
- Compiler will warn if you get it right.
- Compiler won’t let you get it right.
- It’s impossible to get right.
(Obligatory Haskell plug: a nice one-line summary of the Haskell language is that just using it for your code, puts you at #1 on that spectrum an incredible amount of the time.)
blog comments powered by Disqus