Multimethod hierarchies and spec

Here is a small example of combining spec-based dispatch via multi-methods with hierarchies. https://gist.github.com/Azel4231/53b610befc62085a87666bb812ec118e It’s super interesting how you can mix and match Clojure’s mechanisms. Is this useful? Parsing by content: yes I can imagine specs to be useful for business rules. e.g. „if the person info misses an email address, we need to ask … Weiterlesen Multimethod hierarchies and spec

Speccing Functions

I started using clojure.spec’s fdef for speccing functions recently. The short version: it’s super fun and mind-blowingly useful. Things I learned fdef + instrument are awesome. They are great for building up incrementally the program you’re trying to build. They are also great for finding bugs. Spec a function, get error messages if the function … Weiterlesen Speccing Functions

Culture Shock

I want to clarify a recent tweet of mine: The amount of Clojure I can write over the weekend is (partly) constrained by how much pain I expect to be able to stand the following week in my day-job (Java). — Azel (@Azel4231) July 1, 2018 There were weekends where I felt reluctant to program … Weiterlesen Culture Shock

DSUI is on Clojars

I finally published DSUI on Clojars. There are no new features since I last wrote about it. And it still is swing and still looks like crap. But in every second Clojure project of mine I use it to great effect. Much to my surprise it proves useful Why does it surprise me? Generating UI … Weiterlesen DSUI is on Clojars