4 ms·
To me, that's similar to waiting to save your Word document until you have finished editing your document. REPL should be used for rapid experimentation, but t
by jimbokun 6y ago
To me, that's similar to waiting to save your Word document until you have finished editing your document.
REPL should be used for rapid experimentation, but then the code should be transferred to a source file and saved before moving on to the next thing.
- kgwxd 6y agoWhen doing REPL dev with clojure, I usually never type directly in the REPL, it's connected my editor and there are shortcuts for evaluating forms already typed in there (e.g. form under cursor, form before cursor, outer most form, entire file) and it outputs the results right after the form (as a temporary display or can even be output the text into the file). There's also the handy "comment" function that lets you do something like (comment (+ 1 1)) in your code file that won't get compiled but keeps all the editing benefits (syntax highlight, structural editing) that you wouldn't get if an expression was commented out using comment syntax.
- mustermannBB 6y agoThat is my understanding of REPL driven development, too.
- gorjusborg 6y agoThis comment reveals a view of REPL for non-image based languages. In clojure, we usually add forms (like functions) to the editor then eval them to update the namespace hosted by a separate REPL running in background. Often the file is already saved before