ClojureScript testing with Figwheel.
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.
I like functional programming languages, especially Clojure(Script) and Elixir.
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 experienced a strange phenomenon while using clojure.core.async. The timeout channel not working; the blocking/parking functions immediately return instead of blocking/parking.1
I use clojure.spec to verify input data. and I test the spec using Expectations as following: (latest version: https://gitlab.com/snippets/1638290)