Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Stephen Wakely
Yes, on reflection you could very well be right on that one. The practical scenarios I've been messing about with do only go at most two levels deep. The other situations I've been thinking about that do go many levels deep when I think of it would also be terrible UX. I have a tendency to over-e

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread David Nolen
I would argue if you have a matrix/cell pattern and you have to go several levels you have a design problem. David On Fri, Oct 17, 2014 at 3:11 PM, Stephen Wakely wrote: > Yes you can. But that does rely on passing the callbacks down the chain > which could be several layers deep. > >

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Stephen Wakely
Yes you can.  But that does rely on passing the callbacks down the chain which could be several layers deep.  Original message From: David Nolen Date:17/10/2014 8:08 PM (GMT+00:00) To: clojurescript@googlegroups.com Subject: Re: [ClojureScript] Om - Passing channels down th

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread David Nolen
Why can you can just use simple callbacks for this pattern? David On Fri, Oct 17, 2014 at 3:04 PM, Stephen Wakely wrote: > This is a good pattern that will help in a lot of situations, but I don't > think it will catch everything. > > Unless I am missing something (very possible - I'm only just

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Stephen Wakely
This is a good pattern that will help in a lot of situations, but I don't think it will catch everything.  Unless I am missing something (very possible - I'm only just getting to grips with this stuff) this relies on the parent and children knowing the topic to pub/sub on.   So for example say

Re: [ClojureScript] [ANN] lein-cljsasset, a lein plugin to manage JavaScript/CSS dependencies

2014-10-17 Thread Kyle Cordes
On Friday, October 17, 2014 at 10:27 AM, Paul Bostrom wrote: > Thanks for your feedback. The primary use case that drove this project was > wanting to ship an Om wrapper around Codemirror, but not have to include a > bunch of instructions in the README telling the user how to pull in the 5 > dif

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Brian Crescimanno
@David--that's awesome; the last time I clicked into the "Advanced Tutorial" I got what amounted to "coming soon" text. "In many applications you have some component several levels deep in the render tree. The question is, how do we get data to this component without having to pass data to ever

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Brian Crescimanno
@David--that's awesome; the last time I clicked into the "Advanced Tutorial" I got what amounted to "coming soon" text. "In many applications you have some component several levels deep in the render tree. The question is, how do we get data to this component without having to pass data to ever

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread David Nolen
This is not entirely true. core.async supports pub/sub on topics making one global publish and one global notification channel a good strategy. I recently wrote about this: https://github.com/swannodette/om/wiki/Advanced-Tutorial David On Fri, Oct 17, 2014 at 11:11 AM, Stephen Wakely wrote: > T

Re: [ClojureScript] [ANN] lein-cljsasset, a lein plugin to manage JavaScript/CSS dependencies

2014-10-17 Thread Paul Bostrom
Thanks for your feedback. The primary use case that drove this project was wanting to ship an Om wrapper around Codemirror, but not have to include a bunch of instructions in the README telling the user how to pull in the 5 different JS/CSS Codemirror files, which would change every time I wante

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Stephen Wakely
This would only work if there was only one global channel needed. It wouldn't work if you needed separate channels for different branches of the tree - say if you had multiple items in a list and each of those items needed a channel to pass to sub-components. On 17 October 2014 16:02, Jamie Orcha

Re: [ClojureScript] [ANN] lein-cljsasset, a lein plugin to manage JavaScript/CSS dependencies

2014-10-17 Thread Kyle Cordes
On Friday, October 17, 2014 at 9:56 AM, Paul Bostrom wrote: > https://github.com/pbostrom/lein-cljsasset > - Library authors can declare dependencies on JavaScript and CSS assets in > the project.clj file. > - Library users can resolve and concatenate JavaScript and CSS dependencies > into single

Re: [ClojureScript] Om - Passing channels down through hierarchy

2014-10-17 Thread Jamie Orchard-Hays
I have a base component that creates a channel and then I pass the channel via the :opts key-value to its children. However, another user posted recently that the :shared data could be modified as it is passed down the hierarchy. It seems to me this would be a DRYer way to pass the channel down

[ClojureScript] [ANN] lein-cljsasset, a lein plugin to manage JavaScript/CSS dependencies

2014-10-17 Thread Paul Bostrom
https://github.com/pbostrom/lein-cljsasset - Library authors can declare dependencies on JavaScript and CSS assets in the project.clj file. - Library users can resolve and concatenate JavaScript and CSS dependencies into single file(s) to include in their application. See https://github.com/pbost

[ClojureScript] Re: Clojurescript Canvas Library

2014-10-17 Thread Nikita Beloglazov
Quil should be mentioned too, it is animation library that uses canvas in ClojureScript. But it's not very low level. http://quil.info http://github.com/quil/quil -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because y

[ClojureScript] Re: Clojurescript Canvas Library

2014-10-17 Thread Лапшин Александр
BTW, in IRC channel someone mentioned https://github.com/rm-hull/monet and https://github.com/nhusher/tincan, which might be of use to someone. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed t

Re: [ClojureScript] [ANN] lively - ClojureScript live coding with ease

2014-10-17 Thread Gary Verhaegen
The Chrome Tincr extension can reload html and css (and javascript, but it's a complete reset of the js page I think). Not sure it can reload html without reloading the page, though. On Thursday, 16 October 2014, Gary Johnson wrote: > P.S. I'm wondering how difficult it would be to make lively r