>>107114827
>i regularly get bug tickets for things that would have been noticed immediately if it was tested even once
weird. That's been my experience with TS, although the static typing surely did keep out some of the more stupid stuff.
I specifically got into FP because pure functions are far easier to test than stateful objects, and picked up Clojure in part because so much of the tooling and even the language itself is engineered to make testing easier. I saw this guy evaluate every line of code as he was typing it out in the editor and thought "this is how I want my workflow to be like"
https://youtube.com/watch?v=C-kF25fWTO8&t=17m24s
I usually include one or two simple tests in the metadata of function definitions I write, as a form of documentation:
https://clojuredocs.org/clojure.core/test
And then of course every serious project gets a separate file with more elaborate tests (I just use clojure.test along with Malli, but there are other popular test libraries/frameworks)