This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-27
Channels
- # admin-announcements (1)
- # announcements (1)
- # babashka (16)
- # beginners (222)
- # bristol-clojurians (6)
- # calva (13)
- # cestmeetup (5)
- # cider (19)
- # cljs-dev (2)
- # cljsrn (4)
- # clojure (65)
- # clojure-europe (31)
- # clojure-nl (1)
- # clojure-norway (1)
- # clojure-uk (33)
- # clojurescript (64)
- # community-development (5)
- # core-async (18)
- # cursive (15)
- # datomic (6)
- # devcards (1)
- # emacs (18)
- # figwheel-main (102)
- # fulcro (51)
- # graalvm (2)
- # helix (8)
- # instaparse (33)
- # jobs (8)
- # jobs-discuss (3)
- # leiningen (42)
- # off-topic (88)
- # pedestal (15)
- # re-frame (18)
- # reagent (26)
- # reitit (15)
- # rum (3)
- # shadow-cljs (119)
- # spacemacs (9)
- # sql (2)
- # tools-deps (7)
haha, I am sometimes tempted to use mongodb for a quick project set up but then I remember that I regret the choice so often…
actually it is quite satisfying once you (think you) start understanding the aggregation pipeline before you hit the next unsolvable problem
Good morning!
mornin
note that if you're generating xml with clojure that clojure.xml does not properly escape text nodes, so it's really easy to generate invalid xml
btw. is there a library to easily traverse an xml? don’t know if xpath is the most convenient way already
I’m still in the search of a serious personal project, where I can apply clojure and learn it in production 😅
xml-zip
makes it a little less painful. Also I've used this function to extract maps a bit better:
(defn extract-map [xml-map]
(into {} (->> xml-map
(map (fn [xml-tag]
[(csk/->kebab-case-keyword (name (:tag xml-tag)))
(let [c (:content xml-tag)]
(if (every? xml/element? c)
(extract-map c)
(first c)))])))))
I’m a fan of Specter for walking XML files. Been a long while since I used it though. https://github.com/MastodonC/kixi.hecuba.dcc.measurements/tree/master/src/kixi/hecuba/dcc/measurements