https://github.com/yogthos/reagent-forms
Feedback and contributions are welcome. :)
My apologies for an off topic post in this thread - we can take it off list or to a separate thread if it needs more than a simple reply - especially since the library looks really good!
Sean could you write a little about why you switched away from Om?
I'm just trying to get a better understanding of what pros and cons Om and Reagent have and why Reagent is a better fit for your specific use case. I've seen a few people switching lately so I'm interested in hearing people's thoughts.
On 9 September 2014 at 08:52:01, Daniel Kersten (dker...@gmail.com) wrote:
I'm just trying to get a better understanding of what pros and cons Om and Reagent have and why Reagent is a better fit for your specific use case. I've seen a few people switching lately so I'm interested in hearing people's thoughts.
On 9 September 2014 at 08:52:01, Daniel Kersten (dker...@gmail.com) wrote:
I'm just trying to get a better understanding of what pros and cons Om and Reagent have and why Reagent is a better fit for your specific use case. I've seen a few people switching lately so I'm interested in hearing people's thoughts.
I've written a couple of production systems using Reagent. I've not written any with Om, but have played with it quite a bit while evaluating it.The reason why I decided to go with Reagent is code readability - I find it much easier to read. This is particularly relevant as many of the developers working on the code are new to Clojure/ClojureScript and my view was that they would find it much easier to understand Reagent than Om.
--
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 clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at http://groups.google.com/group/clojurescript.
https://github.com/yayitswei/t-edit
I'd also appreciate any feedback on the code from anyone who gets a chance to browse through it. In particular, I think the text field binding could have been implemented more elegantly, so I'm looking forward to trying out reagent-forms.
Dmitri, I would say that all of the donain data - that is, data that you might persist in a database - should be stored in the app state atom, but all temporary data about how to display the domain data (what page are you on, what tab is visible, is the button pressed, how much of a list is being shown, etc etc) should be in component local state.
From what I've read, this is also how Facebook do things with their flux architecture.
I started writing Om by storing everything in the one atom (I think the natural tendency is to do that) but I think you quickly realise that it's unwieldy (as you and others have asserted). Because it is! Then you transition to a model where the data you are operating on is separated from the incidental data and everything becomes much nicer and easier.
It sounds like Reafent naturally encourages this model while with Om there's a tendency to put everything into one atom - until you learn through experience at least!