fulcro

Book: http://book.fulcrologic.com, Community Resources: https://fulcro-community.github.io/, RAD book at http://book.fulcrologic.com/RAD.html
Gleb Posobin 2021-01-11T00:28:07.283100Z

Glad it's helpful ^_^ The books that switched me to that way of thinking were "the humane interface" and "design of everyday things". Kind of easy (at least for me) to get used to blaming people for all the mistakes after spending a lot of time programming (i.e. interacting with an infallible machine that does exactly as told).

👍 1
Mr. Savy 2021-01-11T02:53:57.286300Z

fulcro has helped me internalize a valuable lesson by beating it into me senselessly until i'm eating dirt. it's that if you have any problem, the first step to fixing it is to reduce it to the simplest case and solve that first; then you build back up to wherever you were before.

😆 3
Gleb Posobin 2021-01-11T14:26:45.291700Z

I have a MainPage component, which when the state of a session state machine is :logged-in renders the personal page, and in other case renders the landing page. How do I load data for the personal page, if the user is logged in and they navigated to the main page? Do I make another state machine which tracks if the MainPage is navigated to, and make the session state machine call an event on that new machine once the user logs in? Making the session UISM know about the MainPage looks like coupling, is there a way to subscribe to the events of a state machine without changing its handlers?

Jakub Holý 2021-01-12T19:01:05.326600Z

But you can trigger a mutation from UISM. Couldn't the mutation trigger the route change?

Jakub Holý 2021-01-11T17:37:00.292600Z

Dynamic router? Landing page as the 1st,default target and homepage as the 2nd. When you see she is logged in, route to it

Alex 2021-01-11T18:56:08.293500Z

anyone here uses emacs w/ fulcro RAD that I could DM about setup?

Gleb Posobin 2021-01-11T20:01:23.293600Z

Route from the session state machine?

Gleb Posobin 2021-01-11T20:05:13.293900Z

I guess this is the best solution, unless there is a way to subscribe to state machine state changes. Is there a conceptual reason why it is not implemented if not?

JAtkins 2021-01-11T21:46:50.295200Z

Ditto above - no subscriptions. I think it's related to Tony's experience/opinion of event systems, though feel free to correct me on that.

hayley 2021-01-11T22:13:34.297400Z

Noob question, if someone is learning fulcro from scratch, is it recommended that they start with the fulcro 3 book/videos or jump right into fulcro RAD stuff?

Alex 2021-01-11T23:24:47.297800Z

@slack1304 I started with the book so I can make sense of the RAD codebase

Alex 2021-01-11T23:25:10.298300Z

now I'm trying to work w/ RAD but I'm having some issues running it, it might be me messing the setup thoug

Mr. Savy 2021-01-11T23:31:10.301200Z

@ hayley and alex it depends on what you want to use it for, but upon reflection I would suggest forming some sort of plan of action (like making a simple form or a state mutation via an event) and try to accomplish that while working with the book. there's also some guides/wiki stuff out there sorta. in particular holyjak has a fulcro troubleshooting guide on his blog that might help. that's what has worked for me, anyways.

✅ 1
nivekuil 2021-01-11T23:45:00.301400Z

my 2c: read the main book, and critically read it for understanding and not knowledge. fulcro is really hard if you try a "want to do thing -> look up how to do thing -> do thing" loop, but easy once you understand the basic logic behind it

☝️ 2