Just thought I’d share a cool little gem I came across recently. As
mentioned in the README, it was inspired by Bret Victor’s thought-provoking talk Inventing on Principle .
The Principle:
Creators need an immediate connection to what they create.
Seeing is believing acts like a multi-line, editor-based REPL (Read Evaluate Print Loop).
For ruby, think IRB.
With seeing-is-believing, you can see what you’re doing right in the editor. As an example, we can trace through a binary search function:
Rather than switching over to irb, we can checkout enumerators in the text editor as well:
And here’s another example checking out object classes: