react

Benjamin 2022-04-30T10:36:23.154659Z

I told a coworker functional react components are a good choice, he answered > the "business"/"view" separation in react is halfway non-existent| do you see any logic in that?

Benjamin 2022-04-30T10:40:50.036059Z

judging from my experience with a small re-frame webpage I'm deciding he is just full of shit 😛 Because it split business and view very convincingly to me.

lilactown 2022-04-30T15:24:42.794559Z

if you can separate your business logic into pure functions, then it's easy to have react use those pure functions to drive the view

lilactown 2022-04-30T15:25:37.021409Z

that being said, it can be difficult to figure out what's "business" logic and what's "view" logic, and React won't help you figure it out. it doesn't care.

👍 2
Aron 2022-04-30T21:58:15.647389Z

I understand the response, but not to your suggestion. Functional doesn't mean you have to separate business from view.

Drew Verlee 2022-05-17T05:03:05.420279Z

I don't understand what it means to be "halfway nonexistent"

Aron 2022-05-17T05:06:11.960859Z

precisely, me neither. But I know that enforcing encapsulation of state in the UI as a separation of concerns leads to low quality UI code

Drew Verlee 2022-05-17T05:08:54.343339Z

Yea, the lines are too blurred. It's best to just not get too hung up on it.