Fork me on GitHub
#re-frame
<
2015-10-14
>
danielcompton08:10:13

@nowprovision: we make the distinction between replayable events and non-replayable events in our re-frame app

nowprovision09:10:29

hey daniel, how do you do that metadata on the vector ?

danielcompton11:10:13

@nowprovision: we have two functions, emit!, and dispatch!. dispatch is for non replayable events, emit is for replayable events, and adds to the log, then calls dispatch

nowprovision13:10:26

ah that makes sense, simple and clean

Pablo Fernandez15:10:18

Do you have all the handlers in one file, all the subscriptions in another, all the views in another? Or do you group them by subject, like views, handlers and subscription for loging in and registering in one file and so on?

gadfly36115:10:37

Fractal pattern, folder for each subject and each will have their own file for subs and handlers and view

Pablo Fernandez15:10:56

I think I’ll do it with one file per subject until it’s big enough. Some are very small and breaking it into several files seems to hinder navigation, not help it.

Pablo Fernandez15:10:14

My db layer is quite empty. I wonder if I’m doing something wrong here.

gadfly36115:10:39

Yeah, i tend to have lots of files when i code in general, probably too many, so makes sense to me to only break it down when the need arises like you say