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.

--
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 [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