Fork me on GitHub
#re-frame
<
2018-07-13
>
Dos11:07:28

Any success stories writing GIS projects(openlayers or leaflet) with re-frame?

Hukka18:07:55

@U0D8J9T5K Don't know about success, but I'm doing it

Hukka18:07:19

The problem is the same as with ES/JS React app: there doesn't seem to be a really fitting map component. The map wants to handle its own DOM, and it keeps the markers in a kind of a virtual dom

Hukka18:07:11

The wrappers I've seen don't really do anything smart. IIRC if anything in their data changes, they will just erase and recreate everything

Drew Verlee18:07:35

This might be obvious, but why call the larger app state “coeffects”

mikerod18:07:37

@drewverlee I believe the docs mention some details on this concept

mikerod18:07:21

but I think it relates to the idea of “side-effects” vs “side-causes”

Drew Verlee18:07:21

ah ok. ill give that a read, its on my list.

mikerod18:07:53

yeah, the docs on effects/coeffects are valuable info

mikerod18:07:56

and they aren’t very long

Drew Verlee20:07:24

Can anyone explain the why re-frame uses the interceptor pattern? I believe i understand the pattern, but i’m not sure i understand why it makes sense to organize things this way. I don’t have strong feelings one way or the other i’m just interested if there are any notes on why 🙂

shaun-mahood21:07:02

@drewverlee: http://tomasp.net/coeffects/ is a good read on coeffects (pretty sure it was part of the inspiration)

Drew Verlee21:07:11

intresting! Thanks, i wasn’t sure if that was related

kennytilton22:07:46

@drewverlee Your request confuses me. You say you understand the pattern then express doubt without making any point whatsoever as to why. Do you see a fault in the pattern? Do you like a different pattern? This comes, btw, from someone not enamored with the pattern!

Drew Verlee22:07:31

I should have asked if anyone knows if there is a rational anywhere that explains its use with re-frame. I’m guessing the author had his reasons, i’m curious if he jotted them down anywhere. I use “understand” fairly loosely here, I read over several high level explanations of the pattern and a blog post that gives one explanation of how it fits within reframe.

kennytilton05:07:44

Well, you are right. The author has produced an amazing amount of quality doc but nothing I can recall justifying the architecture. Given things like Redux and Ring, maybe middleware is just the default framework design. Me, I do not like frameworks period.

kennytilton05:07:20

So I am curious. Got an alternative in mind?

kennytilton05:07:34

btw, I just got reminded of Mike’s distinction between interceptors and middleware, so forget everything I said. 🙂

dfcarpenter22:07:08

Can anyone point to some larger re-frame apps in the wild that are on github? Something even larger than the conduit-reframe for example.

kennytilton22:07:46

This may be bigger, depending on your metre stick: https://github.com/kennytilton/rehiring That page has a link to the live version (albeit using my JS hack, but otherwise a straight port). I also have an exemplar doing some magic on Ajax callback hell. Throw me a challenge feature-wise, I’ll try to knock it off.