3 ms·
> In fact, it can be nice to do one's explorations in the REPL and then reify one's discoveries as tests. This is how I wrote unit tests when I worked on Mathe
by hhhAndrew 2y ago
> In fact, it can be nice to do one's explorations in the REPL and then reify one's discoveries as tests.
This is how I wrote unit tests when I worked on Mathematica: try out every edge cases of the function in a notebook, and then use a tool to extract all the input/output cells and convert them to tests. I didn't know the term reify for this practice, I like it!
- erichocean 2y agoReify is a general term, it means to "make concrete" (or to "make real" depending on the usage) something that is previously fuzzy or abstract. When you make a concrete subclass of an abstract class, you are "reifying" that class. When you made the abstract class from the concept of something, you are "reifying" that concept. It's a fun word.
- eigenhombre 2y agoAnd, possibly, Clojurists are more likely to use the word, because of: https://clojuredocs.org/clojure.core/reify https://clojuredocs.org/clojure.core/reify