News for hackers. Stuff that matters.
Re:How Facebook's Instagram Acquisition Led to the Open Sour... by polskibus on Saturday November 18, 2017 @03:47PM (#15730591)
Winapi and windows forms in .net. message loop for UI programming is a very very old pattern. It was just reinvented for web and JS. I don't know if people that created react actually ever used Windows message loop.
Re:How Facebook's Instagram Acquisition Led to the Open Sour... by hesarenu on Sunday November 19, 2017 @10:42AM (#15734310)
Not the loop. JSX way of declaring UI structure.
Re:How Facebook's Instagram Acquisition Led to the Open Sour... by polskibus on Sunday November 19, 2017 @01:51PM (#15735237)
Re:How Facebook's Instagram Acquisition Led to the Open Sour... by mlsarecmg on Monday November 20, 2017 @02:57AM (#15738474)
XAML is a template, it hooks into a controller via bindings. You could compare it to Angular maybe.

In React a view is a function of state:

    const Header = ({ color, children }) => <h1 style={{ color }}>{children}</h1>
    
    // Gets transpiled into:
    const Header = ({ color, children }) => createElement('h1', { style: { color } }, children)
    
    <Header color="red">hello</Header>
A large part of my career was about XAML/WPF/SL. I know it took me a year or more to really understand it deeply, being able to extend and do everything i wanted. I came to the same state 60 minutes into React. The pattern behind it does make many things easier. And that is an understatement. I believe that's also the main reason Microsoft itself is betting on React for cross platform and native apps as well as extension eco systems:

https://github.com/Microsoft/react-native-windows

https://github.com/Microsoft/reactxp

https://developer.microsoft.com/en-us/fabric

Re:How Facebook's Instagram Acquisition Led to the Open Sour... by hesarenu on Monday November 20, 2017 @02:34AM (#15738404)
I suppose so. But i do like reactjs declarative style rather code behind. Something which Flutter does as well.