This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-29
Channels
- # beginners (41)
- # cider (2)
- # cljs-dev (5)
- # cljsrn (16)
- # clojure (157)
- # clojure-russia (29)
- # clojure-uk (1)
- # clojurescript (164)
- # code-reviews (7)
- # cursive (3)
- # datavis (7)
- # datomic (1)
- # emacs (16)
- # hoplon (2)
- # ldnclj (1)
- # off-topic (4)
- # om (167)
- # other-lisps (10)
- # overtone (8)
- # parinfer (1)
- # re-frame (19)
- # testing (2)
does anyone have a favored library to use in vanilla JS when you can't reach for cljs/re-frame? I've been looking into redux but the async workflow seems much poorer than re-frame (in re-frame you just dispatch another event to add to the queue, but in redux it's an unsolved problem with about 15 third-party solutions and just as many discussions in the Github issues)
I'm prototyping a small app to try and convince coworkers to move away from jquery spaghetti to some JS framework, so I'm trying to limit the number of new concepts I introduce. RX and alternative DOM libraries may be a bit of a reach, though I see it can be used with react and JSX which is nice
There's been various attempts to port the Elm Architecture into js land. Cycle.js is one of them (but you'll be using virtual-dom, not React). I also like this snabbdom-based approach: https://medium.com/@yelouafi/react-less-virtual-dom-with-snabbdom-functions-everywhere-53b672cb2fe3#.mh5vs534d. If you want to be strictly React there's .... hmmm let me find it .... starts with 'y' ...
@mikethompson: not necessarily strictly react, but I like the idea of keeping a semi-standard templating language that users of Handlebars et al. will be familiar with (looks and feels like HTML)
http://google.github.io/closure-library/api/source/closure/goog/async/debouncer.js.src.html
@mikethompson: Would it be hard to do a straight-up port of re-frame in JS?
redux always seemed pretty close to re-frame ... right down to middleware (but without the slightest credit :-() ,,, but again with a bias towards the more pure Elm way of doing things
@jmmk: this might provide a good source of comparison - https://github.com/staltz/flux-challenge
See: https://github.com/staltz/flux-challenge/tree/master/submissions#submissions-and-libraries-used
Yolk! That's the library I was looking for above ... the one that is like Cycle.js but uses React: https://github.com/garbles/yolk