This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-07
Channels
- # admin-announcements (1)
- # arachne (1)
- # beginners (11)
- # boot (72)
- # cider (7)
- # cljs-dev (9)
- # clojure (31)
- # clojure-czech (8)
- # clojure-poland (1)
- # clojure-russia (7)
- # clojure-uk (17)
- # clojurescript (48)
- # community-development (5)
- # cursive (2)
- # data-science (1)
- # datascript (3)
- # datavis (1)
- # datomic (4)
- # devcards (45)
- # docker (3)
- # hoplon (5)
- # keechma (3)
- # lein-figwheel (1)
- # leiningen (4)
- # luminus (16)
- # off-topic (1)
- # om (2)
- # om-next (1)
- # onyx (4)
- # other-languages (104)
- # overtone (1)
- # re-frame (2)
- # reagent (37)
- # rum (35)
- # untangled (4)
- # yada (4)
reading reagent docs and looking at the example components - this looks angular-y to me, e.g. 2-way data-binding with magic re-renders
isn’t this a rabbit hole that can easily lead to complicated to reason about code?
am I simply wrong here in my observation?
@bojan.matic: Can you provide a specific example?
this does not look like a unidirectional data flow, it looks like a 2-way data bind
what seems to be emerging as a better ui architecture is to have strictly one-way flow with events being dispatched (redux in reactjs, elm architecture, cycle.js (though this one is a bit different))
if you look at the re-frame docs https://github.com/Day8/re-frame/wiki/Using-Handler-Middleware they propose something you may prefer
but most of the examples are intended to be concise and digestible, so the :on-change
should be as proposed in the re-frame doc but you can get away with just a simple rest!
or swap!
, it's doing reset!
or swap!
in your atom-input
or shared-state
that will make you loose all benefits
yes, it does
thank you
I’m looking into re-frame
@bojan.matic: Keechma is another alternative - with no global state http://keechma.com/
it also uses reagent for the rendering layer
i saw keechma too, thanks
i’ll look into it in more detail
are you the author?
does keechma do unidirectional data?
i’m looking for a fractal architecture, as described here: http://staltz.com/unidirectional-user-interface-architectures.html
yes, data down, commands up, here are some diagrams http://keechma.com/01-introduction.html
I’m also working on the forms lib (https://github.com/keechma/forms - should be released next week) which solves the data collection in forms before it gets committed upstream (to controllers)
I just completed the migration of an app from re-frame to keechma. I'm very happy with the outcome.
and a central description of the application, similar to component, is also very helpful.
everytime I started working on the project, the first file I’d open is the one that describes the dependencies.
with re-frame, it got a bit difficult to figure out where things were going after a while.
yeah, I might right a series of blog posts, but first I have to put this in production.
Are there any resources for learning about how to incorporate npm react components with reagent?
do you use browserify + npm?