Recently I’ve been thinking about writing a more efficient version of my 8-queens solver from a recent coding dojo. Finally I found time and made two improvements to the code. No longer „holding on to the head“ In a recent reddit discussion joinr mentions that holding on to the head of lazy sequences (especially large … Weiterlesen Making my 8-queens solver more efficient
Recently I went to a coding dojo where we tried to solve the eight queen puzzle. My Clojure solution can be found here. Three things during the dojo made me think about low-level vs. high-level. The thing is that when I started learning Clojure it felt extremely low-level. This mainly due to the fact that … Weiterlesen High-Level vs. Low-Level
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
I’m being asked that a lot. TLDR: I wanted to make less typing errors and be able to type faster. Staggered layouts prevent this because they make typing more error prone. I wanted to be able to type parentheses and special characters quickly and accurately. The german keyboard layout sucks for programming because of badly placed … Weiterlesen Why build a custom keyboard?
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
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
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