This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (9)
- # aws (2)
- # beginners (45)
- # biff (2)
- # calva (20)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (9)
- # clojure (102)
- # clojure-austin (14)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (1)
- # clojure-norway (39)
- # clojure-spec (1)
- # clojure-uk (3)
- # conjure (8)
- # cursive (6)
- # datahike (3)
- # datomic (8)
- # emacs (28)
- # events (1)
- # holy-lambda (6)
- # hyperfiddle (13)
- # jobs (11)
- # keechma (2)
- # lsp (4)
- # malli (33)
- # nbb (36)
- # off-topic (52)
- # pathom (5)
- # pedestal (2)
- # portal (1)
- # reagent (2)
- # reitit (3)
- # remote-jobs (1)
- # scittle (1)
- # spacemacs (2)
- # xtdb (5)
Does anyone know of a good blog / doc on how to create / integrate reader tags? The docs are sparse and search fu is not finding anything
On the print side I recommend lambdaisland/data-printers. Given the multiple printers (built in and libraries) it's a bit of effort to get custom types to consistently print with the right reader tags.
I vaguely know what to do but I feel like we're missing a step by step guide (and I'll do one if we have nothing)
I’m not sure if it counts as a good resource, but I wrote together some issues I had and some steps I took here (also quite short): https://javahippie.net/clojure/2022/01/08/data-readers-lein.html
I like it. I think there is a
print-method too though, no? Also according to the docs
> Reader tags without namespace qualifiers are reserved for Clojure.
You are right about both, it’s not comprehensive
good stuff though so not meant as a 🔥
Thanks! It took a day for me to find out the Leiningen issue, so that was the focus 😄
@raymcdermott are your tags for clj only or do you need cljs support too ? (it gets more complicated if cljs support is required, and there are some limitations)
also, using records/types as the in-memory representation of tags caused us enough issues with our reloaded workflow that we abandoned the approach and reverted to plain maps
I'll be porting a frontend from PHP/jQuery to a REST/SPA thing, most probably using reagent and re-frame. I'm thinking I would like to do it in small steps. So maybe just part of a page is ported at some point, and then at some other point some more parts. Is this a sane approach? Anyone has experience with similar ports or just know where to find material around it?
I just watched a video about this: https://www.youtube.com/watch?v=CcTM5BuLdQo They’re not porting to CLJS, but the tactical patterns apply nevertheless. You can proxy (using CDN or something custom) or use an iframe.
I’d probably build the REST API first, at least the most important parts. They can be easily tested without the frontend. Then either redirect the frontend, or just replace it in part or whole. I wouldn’t fancy mixing php/jquery and clojurescript, but its probably not as hard as I think. A lot depends if its a straight replacement or if the API should be redesigned
Just mentioning for fun: https://blog.michielborkent.nl/using-babashka-with-php.html Someone in the comments starting porting his PHP website to Clojure using this approach as a first step. I'm not suggesting you do this, but just thought it was worth sharing in this context.
It absolutely makes sense. We replaced a webshop one page at a time :) https://vimeo.com/145011983 If you decide to try Fulcro instead of reagent, let me know. I'd be happy to help :-)
not particularly about porting (although we are adopting the approach while porting our cordova app to RN), but if you aren't already looking at it, https://storybook.js.org/ is well worth a look - dnolen has some vids around how vouch are using storybook+re-frame+RN , but it's equally applicable to react.js
We are doing the same for production, migrating a Node.js/jQuery api to graphql/cljs. We ended up doing the page by page approach, but we reimplemented the surrounding chrome too. The reason being, it's hard to merge jQuery and React on the same page, and CSS is also leaking all over the place.
In the legacy app, we started defining routes that would redirect to the new app, and vice versa.
Continuing my miniscule efforts towards world peace, I used org-mode in Neovim today 😄
Isn't it violating the Geneva convention ?
No violation in my version of reality... 😄 apparently there are other versions :rolling_on_the_floor_laughing: