Termina1
Re:Don't React
on Friday April 03, 2015 @10:22AM (#9316003)
For example, embedded FB post. In React you can deal with it using componentShouldUpdate and others. I don't know how to deal with it in virtual-dom (package), without going deep into patching algorithm.
Re:Don't React
on Friday April 03, 2015 @09:59AM (#9315887)
Sometimes you have no choice, in case of embeddable objects
Re:Don't React
on Friday April 03, 2015 @09:47AM (#9315820)
Also, React goes with Flux, and Flux is a reactive architecture. So, if you treat React a separate module, the whole flux architecture is pretty reactive.
Re:Don't React
on Friday April 03, 2015 @09:45AM (#9315804)
I think that author is completely right about the part, that React has the only one reactive part — its render function. But I don't see why it makes React bad. I think it is great, fast and easy to use.
By the way, virtual-dom is a little bit early to use for production application. For example, if you have some elements in your vdom, that are changing after you render it (i.e. like buttons, embeded posts, etc.), virtual-dom will be totally confused and unpredictable. For example, it can duplicate some elements on the page.
I believe it happens because vdom depends on its internal index to traverse real dom nodes. It is still a remarkably good piece of software.
Re:Ask HN: If an AI had slipped into the world would we notice?
on Saturday January 17, 2015 @05:34PM (#8905795)
If we mean "true" AI, I think we wouldn't. Until it would start to overrun the Net.