clojure

New to Clojure? Try the #beginners channel. Official docs: https://clojure.org/ Searchable message archives: https://clojurians-log.clojureverse.org/
zendevil 2021-03-21T12:43:55.282400Z

chrisn 2021-03-21T12:54:50.283700Z

Is there a method in the compiler or runtime that mangles a string to make it java-safe? A function that takes "a->b" and returns "a__GT__b"?

flowthing 2021-03-21T12:58:09.284400Z

munge?

chrisn 2021-03-21T13:02:22.284700Z

That is it, thanks ๐Ÿ™‚.

vemv 2021-03-21T13:11:02.284900Z

Not a direct answer, but when having a "message-passey" system there's likely a pure-functional system hidden underneath (which is obviously a good thing) Many production :clj: codebases aren't pure-functional. If yours doesn't happen to be, perhaps you'd have it reasonably easy to make it so. The benefit being: you can create test suites that exercise failure scenarios comprehensively/generatively and instantly. This is very different to hand-crafting failure scenarios that run slowly (because they have to run kafka, datomic, spin up an aws instance, w/e)

william 2021-03-21T14:52:50.286400Z

if anyone's up for a bit of pair programming, I propose trying to add a simple feature to clojure-lsp (background on me: I usually do Haskell, and I'm trying to learn the clojure way)

1
seancorfield 2021-03-21T19:50:09.288Z

Hi @munichlinux Please donโ€™t cross-post Qs between #beginners and #clojure

piyer 2021-03-21T20:39:55.288500Z

will keep that in mind

rgm 2021-03-21T23:03:43.290300Z

I extracted a standalone demo of how to use tatut/clj-chrome-devtools to render JS-rich HTML into downloadable PDFs, in case this is of use to anyone: https://github.com/rgm/experiments/tree/master/202102-headless-chrome

3๐Ÿ‘1
valtteri 2021-03-22T09:38:04.293100Z

Really cool! Iโ€™ve been using this in the past to do similar https://github.com/alvarcarto/url-to-pdf-api

rgm 2021-03-22T13:14:52.294200Z

Oh neat, thanks. Another tool for the belt.