I should add I found Om very easy to work with (even in the pre-alpha state) and liked the major design opinions. The cursor + single state atom approach feels like an improvement over the React.js approach of emphasizing separate state storage for each component.
The only (rather small) drawback I encountered to this design is that sometimes the info in the cursor variable is an out-of-date version when I needed to access it, which is easily resolved by making sure to access the state only from within the "update!" function in those cases. (I haven't fully wrapped my head around the behavior of the cursor yet, so this confusion might disappear once I get more familiar with it.) On Sunday, December 22, 2013 11:19:00 PM UTC-6, Conrad Barski wrote: > Hi guys, just wanted to post an extra Om example, in case it's useful to > anyone. This is a simple triangle-based icon editor written in Om, with 163 > LOC (a big chunk of which is just for doing triangle math) > > Demo: http://drcode.github.io/tricon/index.html > Source code: > https://github.com/drcode/tricon/blob/gh-pages/src/client/core.cljs > > The main noteworthy features of this app: > 1. Works in all major desktop browsers > 2. It shows how to integrate a canvas correctly into an Om component > 3. It uses a series of chans to massage the mouse data (so no need for > ugly "is_mouse_down" state) > 4. I tried to make it as idiomatic as possible (not that anyone really > knows what an idiomatic Om program looks like yet :-) > > Limitations: > 1. My half-hearted attempt at supporting touch events doesn't work > completely yet (more css tweaks?) > 2. Using slow cljsbuild dev compilation (Weird errors when trying to > compile in release) -- 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.
