←back to thread

873 points belter | 2 comments | | HN request time: 0s | source
Show context
ertucetin ◴[] No.42947096[source]
> REPLs are not useful design tools (though, they are useful exploratory tools)

I disagree with this. I’m a Clojure dev, and most of the time, I use the REPL to iterate on features, fix bugs, and refactor, thanks to the fast feedback loop.

I used to be a Java dev—oh god, restarting the whole app after every change made me want to shoot myself in the head. Now, I use the REPL to build what I want and then move on. This brings joy back to programming.

I’m not saying other languages are bad, but working with Clojure is more enjoyable for me. I’m at least 2-3 times faster than I was with Java. Of course, there are techniques you need to know to write efficient and idiomatic functional code.

replies(5): >>42947281 #>>42947566 #>>42951218 #>>42954166 #>>42957162 #
1. cess11 ◴[] No.42947566[source]
I'm a heavy REPL/interactive shell user so when I do Java I abuse the testing framework, basically I put my sketches in unit tests and run those. The feedback loop is pretty tight, close to what I get in some other languages, whatever happens behind the scenes in IntelliJ it's much shorter than a full recompile and boot.

Supposedly there are some Java shells around but I haven't tried them out.

replies(1): >>42947931 #
2. skydhash ◴[] No.42947931[source]
You either REPL or do TDD.