This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-01
Channels
- # aleph (6)
- # announcements (37)
- # aws (1)
- # beginners (67)
- # calva (9)
- # clerk (5)
- # clj-kondo (3)
- # clojure (19)
- # clojure-europe (40)
- # clojure-nl (1)
- # clojure-norway (36)
- # clojure-uk (5)
- # clojuredesign-podcast (7)
- # clojurescript (28)
- # datomic (9)
- # emacs (8)
- # figwheel-main (4)
- # fulcro (6)
- # hyperfiddle (19)
- # integrant (4)
- # java (9)
- # lsp (131)
- # malli (9)
- # missionary (85)
- # off-topic (13)
- # pathom (3)
- # polylith (11)
- # releases (1)
- # sci (4)
- # shadow-cljs (7)
- # specter (2)
- # vscode (1)
- # xtdb (2)
Have you ever spent more time scaffolding a test than writing it? Must I/O-laden code be awful to test? Can simple logic be tested simply? In our latest episode, we need to test our logic, but the I/O is getting in the way. https://clojuredesign.club/episode/109-extractify/
I'm working on a legacy codebase where all stateful resources (connection pools etc) are stashed in dynamic vars, the run-in-test-context
macro is 15 lines long, and that's just to make testing possible
I haven't found any, the code is pretty ok, it's just not written in what I'd call idiomatic and with explicit mutable state management. But you never know!
So much of my Clojure learning experience has been learning different patterns and techniques than the ones I used in OO. I started by trying to "port" my OO thinking into Clojure, and now I write code that I can't imagine "porting" over to OO! 😂
oh, my first attempts at writing Clojure was to emulate how Ruby/Rails worked - db connections appearing out of thin air, auto loading and all of that - it took a while to unwind :D