clojuredesign-podcast

Discussions around the Functional Design in Clojure podcast - https://clojuredesign.club/
genekim 2020-07-15T23:45:34.105500Z

@nate So incredibly pleased with myself for using partial today β€” I used it to get rid of an unsightly bit of repeated code, which I would have found so tolerable a year ago. I can’t wait to use juxt!!!

πŸ‘ 1
genekim 2020-07-15T23:45:56.106Z

@nate So thank you for your awesome podcasts! Keep up the amazing work β€”Β I learn so much!!

genekim 2020-07-15T23:47:36.107Z

FWIW β€”Β I’m using it in my first clojure-lanterna program, to gain an understanding of getting keystrokes:

(defn loop-until-esc []
  " get key, print, until you hit ESC key"
  (let [get-key (partial s/get-key-blocking scr)]
    (loop [k (get-key)]
      (if-not (= k :escape)
        (do
          (println k)
          (recur (get-key)))
        nil))))

nate 2020-07-15T23:48:23.108400Z

@genekim awesome! So glad to hear you improving your code. I've really enjoyed these function-focused episodes. There's so much power and depth to the core of Clojure.

genekim 2020-07-15T23:48:31.108500Z

Once upon a time, that (s/get-key-blocking scr) would never have bothered me β€” now, it seems intolerable. πŸ™‚

nate 2020-07-15T23:49:37.109300Z

Oh yes. Tidied that up quite nicely.