There are times when I want to play around with some idea and I want to write some potentially throwaway code. There is no requirements, I'm just playing with some lib to see what is it capable of. The repl makes it really nice to explore.
One of my current workflow is for node.
1. go to the terminal and open node.
2. require some random library and play around with it.
3. export the command history to a file with '.save'
4. modify the file with a text editor.
5. load the new file with '.load'
6. Repeat and iterate till I have some proof of concept code.
I was previously tried using LightTable but it was kinda buggy. I'm kinda happy with this workflow except that I can't rerun a multiline command while in the repl which makes typos more painful.
Does anyone have a similar workflow, better editor or suggestions on how to improve it?
Would love to hear your thoughts if you try it.