Developers on Twitter like to post code snippets for sharing. Wouldn’t it be great if a Tweet could look like this…
Don’t think of functions as a collection of instructions. Think of them as non-destructive operations on input:
double = n => n * 2;
Notice the code formatting from “double” onward. That’s what I want. I think it would be useful. It’s less time consuming than taking a screenshot of one’s text editor for a line or two of code.