This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-10-27
Channels
- # announcements (14)
- # aws (2)
- # babashka (12)
- # beginners (23)
- # calva (71)
- # cider (37)
- # clj-kondo (47)
- # cljs-dev (3)
- # clojure (55)
- # clojure-brasil (1)
- # clojure-europe (51)
- # clojure-nl (1)
- # clojure-norway (63)
- # clojure-poland (1)
- # clojure-seattle (1)
- # clojure-uk (3)
- # clojurescript (10)
- # conjure (3)
- # cursive (23)
- # data-science (5)
- # emacs (16)
- # events (1)
- # hoplon (16)
- # hyperfiddle (19)
- # introduce-yourself (1)
- # kaocha (5)
- # nyc (1)
- # portal (31)
- # practicalli (2)
- # reitit (3)
- # releases (4)
- # sci (28)
- # slack-help (13)
- # sql (4)
- # squint (40)
- # tools-build (25)
- # tools-deps (10)
I cant remember a cli tool for passing shell output to clojurescript code (something like nbb). Can you help me?
Please don't cross-post questions into multiple channels -- you posted this in at least three channels so answers get spread out everywhere and people in one channel don't know whether you've already gotten an answer elsewhere.
IF there's any beginners here that would like to connect let me know I am also learning Clojure and have a very basic IRC bot project that I am working on
#C3APA2B6W but I suspect that's fairly quiet...?
I suppose I am going from practice to practitioner currently & that involves modelling solutions to problems I am working on an IRC bot that involves implementing client functionality. I am wrapping my head around modelling this problem domain in a way that makes sense. IRC has messages, as we all know, and these have a known format, as you’d expect The format is as such: https://modern.ircdocs.horse/#message-format I aim to parse these messages (obviously), but what is the best way to do so? Would (defrecord) be helpful here? That would result in many instances of messages, which doesn’t sound like what I want, but is it the way that chat applications are approached and designed? :man-shrugging: P.S. I just picked up a copy of Clojure Applied by @alexmiller and would appreciate any other resources to supplement this journey to mastery!
i’ve seen lots of cool projects that end up doing lots of complicated stuff by just starting. make a function that parses what you need. let your needs drive what you need from the parser. analysis paralysis when you are trying to learn can lead to stalled projects. start making what you need. as it evolves, keep reading about parsers to see if there’s some theory that could help you. But don’t wait for a beautiful design before you jump in
One thing to be aware of with Clojure Applied: it leans heavily on records to model domain entities but the author (Alex) has said that if a "next edition" happens, he would emphasize plain old hash maps more and records less. So don't reach for records unless you actually need them.

Hey Sean, thanks for clearing that part up; I was discussing with the folks in #C03S1KBA2 on Libera.chat , and this also came up.
also, a side benefit of just jumping in is that your questions get much more grounded. And the more concrete the question the better help you’ll get here
@U02UHTG2YH5 now that seems like a fun and interesting way to go about doing this
@U04V70XH6 should I even bother with reading this book then?
in some domains you can get by with just regex. in fact, @U064J0EFR made a parser for clojure code with regex that didn’t break down until like 800 character forms
The book is great. Just substitute "hash map" for "record" in your mind while reading those sections 🙂
A record is-a hash map but with some additional constraints.
Alex's comments about tilting more towards maps than records are v interesting, thanks for the heads-up Sean 🙂 https://clojurians-log.clojureverse.org/clojure/2019-02-23/1550951811.265000 https://clojurians-log.clojureverse.org/beginners/2019-08-10/1565476937.294200