This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-15
Channels
- # admin-announcements (2)
- # beginners (93)
- # boot (34)
- # capetown (1)
- # cider (15)
- # cljs-dev (30)
- # cljsjs (9)
- # clojars (8)
- # clojure (199)
- # clojure-austin (3)
- # clojure-france (3)
- # clojure-greece (2)
- # clojure-italy (46)
- # clojure-quebec (7)
- # clojure-russia (2)
- # clojure-spec (76)
- # clojure-uk (16)
- # clojurescript (43)
- # core-async (7)
- # cursive (14)
- # data-science (1)
- # datascript (4)
- # datomic (3)
- # devcards (60)
- # editors (5)
- # funcool (5)
- # garden (3)
- # hoplon (32)
- # immutant (22)
- # jobs (1)
- # lein-figwheel (21)
- # leiningen (1)
- # mental-health (11)
- # mount (2)
- # off-topic (6)
- # om (16)
- # onyx (15)
- # re-frame (43)
- # reagent (20)
- # rum (18)
- # specter (37)
- # sql (2)
- # testing (8)
- # untangled (7)
- # yada (19)
just to describe from memory what i think i saw, something that was like a maybe 100x100 px square fixed on the right side of the page, then clicking on it would expand in a tree like fashion showing you everything in the atom
btw. have been working lately on proper support for deftype/defrecord in cljs-devtools: https://dl.dropboxusercontent.com/u/559047/cljs-devtools-upcoming-support-for-types.png
Eww. Nice
so you can drill down into type internals, instance internals, or stuff emitted by IPrintWithWriter
I can see Person
implements IFormat
?
Oh very nice indeed
IFormat is just new IDevtoolsFormat, I wanted to move all protocols under new namespace, so I renamed it as well
also want to refactor it in a way that reusable templates can be easily called by people implementing their own IFormat
Is there anything I have to be aware of when working with subscriptions and infinite lazy sequences? I’m experiencing some weird behavior when sometimes the ultimate subscription (that only takes the first 14 of the lazy sequence) will not return and get stuck in an infinite loop instead.
Found the issue, I was inspecting the function with s/fdef
that is why it went into an infinite loop.
Can anyone point me to an explanation of how to pass query params into the new def-sub
function?
(let [some-ids (reaction (q/ids @db))
some-entities (reaction (q/entities @db))
changed (reaction (map (fn [id] (merge (get @some-entities id) {:test true})) @some-ids))])
I have a suspicion that in this circumstance, those maps over @some-entities won’t react
@lwhorton: map
is lazy - you might need to force it with doall
or dorun
that was exactly it @mccraigmccraig .. so it’s nice to know that (reaction thing)
doesn’t realize thing
cool 🙂
I tend to use (for ...) although I find it "distasteful" (looks too much like imperative loops 😫). But having to clutter (map ...) with a (do___) isn't any better.
After all the discussion lately about using re-frame with devcards, are there any publicly available examples of a project using it? I wouldn't mind going through something working to update both the re-frame and devcards wikis with instructions and examples.
@naomarik: Not sure exactly what you’re talking about, but we’ve adapted https://github.com/noprompt/ankha to get something similar to what you’re describing (click thing, see atom, click more to dig into it)
There is also https://github.com/Odinodin/data-frisk-reagent which looks similar
@naomarik @richiardiandrea ^ Might be what you were talking about earlier, similar concept I believe
Great I think that's exactly what I was thinking about 😉
@wasser: mind that (for ...)
is also lazy, and purely functional... it's not "imperative"
@shaun-mahood: there are some examples of re-frame+devcards using iframes in https://github.com/nberger/devcards/blob/iframe/example_src/devdemos/re_frame.cljs. it's basically some of the reagent examples adapted to re-frame
@nberger: Awesome, thanks! I'll see if I can get something started so we have somewhere consistent to point to when the question comes up again.
I think there's room for adding macro sugar to make it easier to create the cards. At the implementation level there were also some suggestions from Bruce to use IDevcardOptions and implement it as a custom devcard or something like that. I didn't have enough time to get to that point, help is welcome in that area :)
@shaun-mahood: cool, that sounds great!
@dobladez: your right. I didn't mean to imply that it IS imperative, just that it looks that way. When I see a "for" my brain says "Java", when I see a "map" it says "Clojure"