4 ms·
which ui library are you using? not claiming to be an expert, but i always found it easier to test programs when logic is completely decoupled from event flow.
by keymone 9y ago
which ui library are you using? not claiming to be an expert, but i always found it easier to test programs when logic is completely decoupled from event flow. but yeah, UI can be pita.
also isn't clojure.spec useful for describing and asserting the shape of data taken and returned by functions?
- hellofunk 9y agoClojure.spec is useful for a lot of things, but unless you are adding spec/assert to nearly every destructuring or "get" or "get-in" then it's still easy get nils running through your data transformations because you mistyped a keyword or something. Also there is not a good answer for asserting the value of a function passed to another function; the return values of functions can be spec'd but they are not included in an assert test.
- sooheon 9y ago> the return values of functions can be spec'd but they are not included in an assert test I agree this is a shortcoming, but that is why this library exists: https://github.com/jeaye/orchestra https://github.com/jeaye/orchestra
- deleted 9y ago[deleted]