News for hackers. Stuff that matters.
Re:Leaving The Qt Company by nightski on Wednesday May 18, 2022 @11:08AM (#31423749)
I think the point was that they were declarative and retained mode systems and existed long before react. I'm deeply familiar with React and systems such as WPF/QT and I can see the comparison.
Re:Leaving The Qt Company by lucideer on Wednesday May 18, 2022 @01:25PM (#31425335)
> I think the point was that they were declarative ...

> I'm deeply familiar with React

I'm not trying to be snarky here but... React is not declarative.

Though it's good you highlighted that as that is essentially the fundamental difference here: WPF/QT are declarative, CSS is declarative, UIKit is (mostly?) declarative, HTML is declarative(-ish). React components aren't.

Re:Leaving The Qt Company by nightski on Wednesday May 18, 2022 @02:13PM (#31425877)
I have to disagree. You produce a data structure representing the UI. That's basically the definition of declarative. Just because you can build that dynamically doesn't mean it is not declarative. You could always build up XML dynamically as well.

It's a far cry from an immediate mode API where you are making draw calls.

Re:Leaving The Qt Company by lucideer on Thursday May 19, 2022 @02:56AM (#31431519)
A React component is a class or function - there is no static "data structure", except for what any individual dev might define as convention for their own application. Unless we're calling class members "declarative data structure", in which case we may need to revisit some definitions across the programming world.

And it's not really representing UI: that's the main point here. Layout is decoupled; it's only really representing front-end logic and state.