4 ms·
A REPL allows you to work in real-time with the system as it's written. It's nothing like unit testing. It's like running around in the system able to poke-pro
by casion 7y ago
A REPL allows you to work in real-time with the system as it's written.
It's nothing like unit testing. It's like running around in the system able to poke-prod things as you go.
Particularly important is that it doesn't mean working in a console. Most REPL-based dev is done in the source code file itself, and you send code from the document to the REPL process. Code is written in a file as usual, and you utilize the REPL to massage the system as you want.
Though it's Clojure-based, you might want to watch this talk: https://vimeo.com/223309989 https://vimeo.com/223309989
- marcus_holmes 7y agoyeah that would be interesting to try out, thanks for the link :) I meant that I use tests as a way of poke-prodding things - because Go compiles so fast, and you can run individual tests, it's easy to tool around in test code setting up specific state in code and seeing what happens.