Fork me on GitHub
#re-frame
<
2016-05-10
>
hugobessaa17:05:15

@juliobarros: thanks for sharing, nice article

fasiha18:05:42

@hugobessaa @juliobarros : Elm's "subscriptions" are pretty much same as re-frame's right?

juliobarros18:05:39

@fasiha @hugobessaa They seem similar. I haven’t had a chance to play with the new Elm. I hope to make some time tonight.

hugobessaa18:05:26

@fasiha: they are used very differently as Elm is static

hugobessaa18:05:34

we decided to opt-out of re-frame for now, on our project

hugobessaa18:05:00

we are now using reagent reactions directly

hugobessaa18:05:31

important points: indirection of subscriptions and handlers; hard to use the same subscription as dynamic and normal;

hugobessaa18:05:49

anyone hit the same problems?

roberto18:05:52

yeah, me too

roberto18:05:00

but I switched to keechma

roberto18:05:43

still has subscriptions, but they are defined as dependencies in a system map. So it is clear what a component depends on. Plus it has a really nice router.

richiardiandrea21:05:26

@roberto: impressions on keechma? I had really good feelings about it

richiardiandrea21:05:17

there is some learning curve I guess but in which way it improves the flow? For instance, are network calls first class citizens?

roberto21:05:22

yeah, no need to ping-pong around

roberto21:05:59

there is some good docs, but you still need to experiment a bit with it, especially the way the Controller handle the routes

roberto21:05:16

and with the EntityDB, but once I understood how EntityDB works, I loved it

roberto21:05:58

the router is also pretty good.

richiardiandrea21:05:35

ah EntityDB , interesting

roberto21:05:42

I’d recommend you start slowly to understand how things relate: first with only components and controllers. Then add a router, then finally add an entitydb.

roberto21:05:13

yeah, so instead of having a giant atom that you manually create, there is an entityDb with useful functions that help you query and modify it

roberto21:05:38

also, it is a nice way to separate your entities from other meta data not related to the entities.

roberto21:05:57

you can also use it with re-frame because it has been extracted from keechma

roberto21:05:19

it is a way to try it without having to learn the rest of keechma

richiardiandrea21:05:55

yeah 2 stars is kind of scary, but I guess we are used to niche techs 😄

richiardiandrea21:05:08

I was even having a look at the Datalog implementation for clojure maps..

roberto21:05:38

hehehehe, yeah, the author doesn’t go around promoting his framework

roberto21:05:08

om has lots of stars but it is not the most pleasant thing to work it.

roberto21:05:23

keechma’s author is also very helpful, he has always replied when I have a question

richiardiandrea21:05:37

The docs looks ok 😄

roberto21:05:29

yeah, I finished migrating a re-frame app to keechma over the weekend, planning on writing a blog series about getting started with it.

roberto21:05:58

trying to find a way to gently introduce it without having to spend so much time up front explaining how to setup the system map.

richiardiandrea22:05:11

@roberto the blog posts idea is really good