In ClojureScript, I wanted to run only tests changed, like as lein-test-refresh, but could not found appropriate package. So, I had implemented that functionality.
When you create and use macros in a single “.cljc” file. You have to include macros as follows:
Clojure defprotocol yields a object, interface and functions, the object is a map representing a specification of the protocol, the interface can use to define the type, the functions is the dispatching function like as Multimethods using the class function. (In the protocol, A default dispatch value is the ‘Object’.)
I wanted to know “how to re-render a Reagent component/function”.
Clojure programmer want to improve readability of codes through vertical alignment.1 It’s a good idea, but sometimes it looks ugly. I wanted to highlight local variables in the binding form like let to improve readability.
I have supposed Multimethods is immutable(or fixed at compile time), However, I realized it was not true. Multimethods is an instance of class that inherit the AFn class.
I use clojure.spec to verify input data. and I test the spec using Expectations as following: (latest version: https://gitlab.com/snippets/1638290)