I'm very much in favour with a "stream and filters" approach. It lends
itself to the clojure philosophy of small simple composeable functions that
operate on data. It would also be most reusable outside of om.
On 7 May 2014 19:01, "Dylan Butman" <[email protected]> wrote:

> Just a few additional comments.
>
> The reason I'm so strongly for this approach vs DOM mutation is that there
> are huge benefits to the transparency of interpolation generators. At any
> step of the process, there is the opportunity to introduce arbitrary
> control flow based on the output of the generator.
>
> For example, say you want to transition width from 0 to 100. Easy enough
> in jquery syntax, just get your element.animate({width: 100}, 500,
> callback); Now what if you want to transition the height to 100 starting
> halfway through the animation. Okay, well delay and then start it and run
> twice as fast. Now what if I want to start the height animation when width
> > 60. What about more complicated criteria?
>
> If you're animation by transitioning state using values coming out of a
> generator, you can introduce arbitrarily complex control flow around
> animations. For example, you could check at every step of the animation if
> some condition is satisfied or else cancel the animation. Or following the
> above example, you could transition a value, and then trigger another
> transition when it crosses a certain threshold. etc. etc.
>
> --
> Note that posts from new members are moderated - please be patient with
> your first post.
> ---
> You received this message because you are subscribed to the Google Groups
> "ClojureScript" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to