Skip to content

Instantly share code, notes, and snippets.

@WillNess
Last active March 16, 2018 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WillNess/e9d522633559c74c6c58a257bd6b87c9 to your computer and use it in GitHub Desktop.
Save WillNess/e9d522633559c74c6c58a257bd6b87c9 to your computer and use it in GitHub Desktop.
even non-executable.
"fix $ map head . scanl (\\) [2..] . map (\p->[p,p+p..])" -- what is (\\)?..
"sv (p:xs) = p : sv (remove (multiplesOf p) xs)" -- what is remove?.. what is multiplesOf?..
<< https://twitter.com/yminsky/status/974411177731280896
Yaron Minsky @yminsky 19h19 hours ago
A technique that I think people don't use often enough, and that I don't use often enough:
Write an executable spec.
It's a simple, low-tech technique. Create a freestanding implementation of key subsets of the logic you need to write. >>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment