News for hackers. Stuff that matters.
Re:How much can a Clojure developer do alone? by jimbokun on Tuesday March 30, 2021 @03:00PM (#26638847)
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.

Re:How much can a Clojure developer do alone? by kgwxd on Tuesday March 30, 2021 @04:30PM (#26640030)
When 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.

Re:How much can a Clojure developer do alone? by mustermannBB on Wednesday March 31, 2021 @02:20PM (#26650962)
That is my understanding of REPL driven development, too.
Re:How much can a Clojure developer do alone? by gorjusborg on Tuesday March 30, 2021 @10:56PM (#26643042)
This 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