Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread Conrad Barski
Yes, docstrings/etc are hard work- Certainly sensible to focus on the core design issues. On Tuesday, January 28, 2014 7:59:48 PM UTC-6, David Nolen wrote: > People should implement sugar if they feel so inclined. Om is not mature > enough that I want to spend time supporting extra stuff when th

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread David Nolen
People should implement sugar if they feel so inclined. Om is not mature enough that I want to spend time supporting extra stuff when the library is evolving so rapidly. Keeping docstrings and tutorials in sync and fielding questions is keeping me plenty busy :) David On Tue, Jan 28, 2014 at 8:4

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-28 Thread Conrad Barski
Is it wrong to wish "component" worked like this? (component (render [] (div nil "Hello There!"))) (component (render-state [state] (div nil "Hello There!")) (component (will-mount [_] (js/console.log "mounting!"))L (render [

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
Well at least I can know guess at the etymology : sql join leaps to mind, joining on a different "branch" of the state tree with keys from another branch. I didn't understand that until I read your tutorial. On Monday, January 27, 2014 10:35:54 AM UTC-8, David Nolen wrote: > om/join is conceptu

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread Rudi Engelbrecht
Hi David I managed to fix it by: 1. Changing project.clj to use om 0.3.0 2. lein cljsbuild clean Thanks a lot for following up ;-) I am enjoying working in Om/React with ClojureScript ;-) On 28/01/2014, at 5:23 AM, David Pidcock wrote: > Did you get this fixed Rudi? > If your project file r

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Nolen
om/join is conceptually quite cool, but it actually needs some serious work as alluded - currently you're likely to run into some nasty surprises if you really try to use it. The tutorials aren't going to proceed until this is addressed sometime this week. David On Mon, Jan 27, 2014 at 1:28 PM,

Re: [ClojureScript] ANN: Om 0.3.0

2014-01-27 Thread Jamie Orchard-Hays
looking forward to working through the new stuff later this week. On Jan 26, 2014, at 10:19 PM, David Nolen wrote: > Glad to hear it. I recommend taking a look at the new section "Higher Order > Components" > http://github.com/swannodette/om/wiki/Tutorial#wiki-higher-order-components, > we're

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
I'm a big fan of this new tutorial. It hi-lights some of the benefits of cursors, and I actually realize how I might use om/join suddenly :D -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-27 Thread David Nolen
On Mon, Jan 27, 2014 at 12:48 PM, Mike Haney wrote: > I was initially surprised by the implementation in your tutorial using > multimethods instead of protocols, especially since you are only > dispatching on a single function. But as I thought about it more, I > realized this could be a perfect

Re: ANN: Om 0.3.0

2014-01-27 Thread David Pidcock
Did you get this fixed Rudi? If your project file requires om 0.2.3, then it was something with the lein new command (which is now fixed). I recommend manually changing the project file to require om 0.3.0 and then don't forget to "lein cljscript clean" before recompiling (which I did). O

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-26 Thread mynomoto
Thank you for this David. It's really amazing. On Monday, January 27, 2014 1:19:03 AM UTC-2, David Nolen wrote: > Glad to hear it. I recommend taking a look at the new section "Higher Order > Components" > http://github.com/swannodette/om/wiki/Tutorial#wiki-higher-order-components, > we're fina

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-26 Thread David Nolen
Glad to hear it. I recommend taking a look at the new section "Higher Order Components" http://github.com/swannodette/om/wiki/Tutorial#wiki-higher-order-components, we're finally getting to the "good stuff" IMO :) David On Sun, Jan 26, 2014 at 9:59 PM, Jamie Orchard-Hays wrote: > :) Worked thro

Re: ANN: Om 0.3.0

2014-01-26 Thread mynomoto
Hi wuqi...@gmail.com, You can just open the file. I got some blank pages when for some reason I wasn't able to reach fb.me. Check your Network tab in the developer tools. On Sunday, January 26, 2014 6:12:52 AM UTC-2, wuqi...@gmail.com wrote: > On Saturday, January 25, 2014 8:16:15 AM UTC+8, Davi

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
This fixed it for me. Thanks ! On Saturday, January 25, 2014 7:13:43 PM UTC-5, David Nolen wrote: > > The tutorial doesn't cover using advanced optimizations and it doesn't > appear your index.html page is setup for it. I switched your project to use > :optimizations :none. I ran `lein cljsbuild

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
The tutorial doesn't cover using advanced optimizations and it doesn't appear your index.html page is setup for it. I switched your project to use :optimizations :none. I ran `lein cljsbuild clean` to blow everything away. I ran CIDER and followed your instructions. At that point everything works f

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
The one on master is using 0.2.3. Checkout the 0.3.0 branch for the same results. On Saturday, January 25, 2014 6:17:32 PM UTC-5, David Nolen wrote: > > That project.clj is using Om 0.2.3 and not Om 0.3.0. > > > On Sat, Jan 25, 2014 at 6:16 PM, john walker > > > wrote: > >> Woops, left it off:

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
Woops, left it off: https://github.com/johnwalker/hellom On Saturday, January 25, 2014 6:15:59 PM UTC-5, john walker wrote: > > This is what I did (using the om-start template.) > > On Saturday, January 25, 2014 5:51:06 PM UTC-5, David Nolen wrote: >> >> I cannot replicate this. If somebody wants

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
That project.clj is using Om 0.2.3 and not Om 0.3.0. On Sat, Jan 25, 2014 at 6:16 PM, john walker wrote: > Woops, left it off: > > https://github.com/johnwalker/hellom > > > On Saturday, January 25, 2014 6:15:59 PM UTC-5, john walker wrote: >> >> This is what I did (using the om-start template.)

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
This is what I did (using the om-start template.) On Saturday, January 25, 2014 5:51:06 PM UTC-5, David Nolen wrote: > > I cannot replicate this. If somebody wants to publish a repo that exhibits > the problem I'll take a look. Thanks. > > > On Sat, Jan 25, 2014 at 5:12 PM, Rudi Engelbrecht > >

Re: ANN: Om 0.3.0

2014-01-25 Thread David Nolen
I cannot replicate this. If somebody wants to publish a repo that exhibits the problem I'll take a look. Thanks. On Sat, Jan 25, 2014 at 5:12 PM, Rudi Engelbrecht wrote: > I experienced the same as you when following the tutorial - it works the > first time and when adding the deref the delete b

Re: ANN: Om 0.3.0

2014-01-25 Thread Rudi Engelbrecht
I experienced the same as you when following the tutorial - it works the first time and when adding the deref the delete button stops working Rudi > On Jan 26, 2014, at 6:51 AM, David Pidcock wrote: > > > I was following along with this and hit an interesting "bug" > > > The contact list

Re: ANN: Om 0.3.0

2014-01-25 Thread Rudi Engelbrecht
Hi David Thank you for a great tutorial! I really enjoyed working through your Tutorial on LightTable and Om.  A note: In my environment the contact is being deleted when the contact-view has the following code (defn contact-view [contact owner] (reifyom/IRenderState(render-state [

Re: ANN: Om 0.3.0

2014-01-25 Thread john walker
I'm getting the deref error, but the first example failed as expected in 0.3.0. On Saturday, January 25, 2014 2:51:08 PM UTC-5, David Pidcock wrote: > > I was following along with this and hit an interesting "bug" > > The contact list delete button actually works "out of the gate" in the > firs

Re: ANN: Om 0.3.0

2014-01-25 Thread David Pidcock
I was following along with this and hit an interesting "bug" The contact list delete button actually works "out of the gate" in the first example, (when its supposed to fail) and when I add the deref in the next step I get Uncaught Error: No protocol method IDeref.-deref defined for type om.c

ANN: Om 0.3.0

2014-01-24 Thread David Nolen
A few minor simplifications to the Om model in this release. A breaking change if you were using om.core/bind, om.core/pure-bind or om.core/read - these complications have been removed. There's also now a tutorial optimized for Light Table for people want to understand the Om approach to React wit