Fork me on GitHub
#architecture
<
2017-08-11
>
yonatanel08:08:49

@claudiu too complicated for my needs. I'm not sure at what level of app complexity it will be worth the overhead

claudiu10:08:32

@yonatanel Yep. Rum is pretty easy, got in 3 days more that I managed to get in om after 2 weeks 🙂 quite a lot to learn, to get basic things going 🙂

claudiu10:08:47

But rum is kinda like reagent, just a react wrapper, you still need something like re-frame (roman01la/scrum) as you app grows, or write your own stuff.

claudiu10:08:32

I went with om-next since I want to reduce complexity for larger apps 🙂 and it's quite nice. Then switched to fulcro, since it simplified om-next a bit and has some really nifty helper functions, that take om-next to the next level + awesome docs 😄

yonatanel12:08:52

@claudiu What kind of thing is rum missing? State management, flux etc?

claudiu12:08:00

@yonatanel yep 🙂 pretty much, as far as I know

claudiu12:08:48

https://github.com/roman01la/scrum -> this one looks interesting, also think pairing it with datascript solves some of if (haven't had the chance to experiment that much with datascript)

claudiu12:08:10

One think that I really liked about fulcro, is that the dataflow is really simple & upfront. 🙂 (difference from om-next is that you don't have read-parser in client)

claudiu12:08:24

(defui ^:once LoginPage
  static f-core/InitialAppState
  (initial-state [this params] {:id :login :ui/username "" :ui/password "" :ui/error nil})
  static om/IQuery
  (query [this] [:id :ui/username :ui/password :ui/error])
  static om/Ident
  (ident [this props] [:login :page])
  Object
  (render [this]

claudiu12:08:11

I know what the inital db will look like for the data that this component users, what data it uses, and the ident tells me from what location (normalized db).

claudiu12:08:12

So basically my main reason, even it's a bit of overkill to learn for some of my apps.... Is that I think this flow (once you get it) will allow you to build, better apps faster. And since a lot of the complexity is gone, the apps should also be easier to maintain