Mike, thank you so much for writing this. Just reading the README makes so many 
things clearer (to me).

For anyone interested in trying re-frame under a Boot project, this example 
might be useful:
https://github.com/daslu/tenzing-re-frame-todomvc
(just copied re-frame's todomvc example and made it work as a Boot project 
using Tenzing).



On Tuesday, March 10, 2015 at 3:32:10 PM UTC+2, Mike Thompson wrote:
> On Tuesday, March 10, 2015 at 2:03:00 PM UTC+11, Mike Thompson wrote:
> > On Tuesday, March 10, 2015 at 2:14:42 AM UTC+11, Mike Haney wrote:
> > > I'm really enjoying re-frame.  I've tried several different architectures 
> > > over the last 6 months and ended up with something about 80% similar to 
> > > the re-frame approach.  The key piece missing for me was reactions - 
> > > there is absolutely no documentation on them in Reagent, but knowing 
> > > about them now solves so many problems.
> > > 
> > > I recently started a side project and since it's in very early stages, I 
> > > decided to switch it to re-frame over the weekend.  I'm quite pleased 
> > > with the results so far.  Anyone who wants to follow along can check it 
> > > out at https://github.com/mdhaney/homesale-clj
> > > 
> > > I welcome feedback, and am happy to help with re-frame itself wherever I 
> > > can.
> > 
> > 
> > A success story is always positive, but an example using firebase is even 
> > better.  I was toying with doing a shared TodoMVC example of re-frame using 
> > firebase, but now I don't have to -- you are blazing the trail!! 
> > 
> > My only suggestions (and they are minor):
> >    - try using middleware on your event handlers (eg debug, trim)
> >    - get a Prismatic Schema going for you "app-db"
> > 
> > Then combine both of the above to always re-check the integrity of your 
> > app-db after each event handler has run, via the "after" middleware. 
> > 
> > In effect, add the middleware "(after validate-schema)"  to all of your 
> > event handlers. Every single one.  
> > 
> > And then write a validate-schema function which takes the "db" as a 
> > parameter and checks it against this prismatic schema you created. 
> > 
> > It's a thing of beauty from a debugging point of view.  So is using the 
> > "debug" middleware. 
> > 
> > I'll shortly write up a page on this is the Wiki.  Should have already done 
> > it.
> 
> 
> Here is a page describing these ideas in more detail:
> https://github.com/Day8/re-frame/wiki/Debugging-Event-Handlers
> 
> --
> Mike

-- 
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 clojurescript+unsubscr...@googlegroups.com.
To post to this group, send email to clojurescript@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to