This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-10
Channels
- # beginners (15)
- # boot (15)
- # cider (6)
- # cljs-dev (231)
- # cljsjs (1)
- # cljsrn (26)
- # clojure (147)
- # clojure-argentina (1)
- # clojure-dev (8)
- # clojure-germany (1)
- # clojure-italy (26)
- # clojure-russia (2)
- # clojure-spec (83)
- # clojure-uk (154)
- # clojurescript (123)
- # conf-proposals (3)
- # core-async (5)
- # cursive (26)
- # datascript (21)
- # datomic (120)
- # emacs (2)
- # graphql (9)
- # hoplon (195)
- # instaparse (16)
- # jobs-discuss (1)
- # leiningen (8)
- # luminus (8)
- # lumo (7)
- # off-topic (17)
- # om (7)
- # om-next (3)
- # parinfer (121)
- # pedestal (5)
- # planck (13)
- # re-frame (11)
- # reagent (21)
- # ring-swagger (2)
- # spacemacs (28)
- # uncomplicate (3)
- # unrepl (7)
- # untangled (34)
- # vim (5)
@yogthos cool. Thank you so much for luminus. Not really using it, but such a breath of fresh air for understanding things. Really having a bit of a hard time in clojure land, since most resources available are pretty scattered and a lot of them are just examples not really "production way of doing things".
hello @yogthos
i was wondering why <<project-ns>>.db.core/*db*
is still dynamic?
— https://github.com/luminus-framework/luminus-template/blob/master/resources/leiningen/new/luminus/db/src/sql.db.clj#L31
i've tracked down where did this (defstate ^:dynamic *db* ...)
come from.
it was introduced when mount
was integrated into the luminus template:
https://clojars.org/luminus/lein-template/versions/2.9.8.64
at that time (2015-11-18) it used mount:0.1.2
(https://clojars.org/mount/versions/0.1.2)
which came from this commit: https://github.com/tolitius/mount/commit/a7770968dbfa4d010ed3827ce0108db5d0e27741
if you check that out, it does not mention ^:dynamic
anywhere in the source code,
so i think the luminus template just carried it around with itself in the hope of maintaining some kind of a backward compatibility, however i think it was simply a breaking change, since you fundamentally changed how *db*
should work and what should it mean.
shouldn't it be simply just (defstate conn ...)
?
just like it's suggested in http://www.luminusweb.net/docs/components.md ?
btw, i just watched your talk (https://vimeo.com/164256508) because it came up on #cursive thanks a lot for putting such high quality content up!