DEV Community

Discussion on: REPL Driven Development

Collapse
 
joshcheek profile image
Josh Cheek

I do something very similar in Ruby. I don't put it at the bottom of a file, though, as the final representation typically doesn't look like the experiment. I do often stick it in an experiments directory, or in the git commit. Mine doesn't keep a REPL running in the bg, though, it just reruns from scratch. For testing, I do drop an actual REPL (pry) into the tests or the implementations very frequently.