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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.