Live data from Hacker News

React is mostly hype

en.arguman.org

121–130 of 138 posts

Re: React is mostly hype

#121

Earlier quoted context omitted.

Angular 2way is based on dirty check. Ractive and vue.js are really data binding with atomic changes.

I said nothing about Ractive and Vue. Their 2 way binding is better, but with large quantities of bindings, it's still slow.

Virtual dom consume more computation processor while data binding consume more memory.

Re: React is mostly hype

#122

Earlier quoted context omitted.

I said nothing about Ractive and Vue. Their 2 way binding is better, but with large quantities of bindings, it's still slow.

Virtual dom consume more computation processor while data binding consume more memory.

...In theory, but IIRC, binding doesn't cover all the types of updates that vdom does, and vdom is better at avoiding thrashing.

Re: React is mostly hype

#123

Earlier quoted context omitted.

That's only addressing perf on IE. It says nothing about perf overall.

Dom / component recycle and batch updates are about performance

Well, okay. Then my favorite framework's getting speed optimizations. I'm not complaining.

Re: React is mostly hype

#124

Earlier quoted context omitted.

No, the perf's pretty bad if you do a lot of binding, and the manual binding gives you a better sense of what your app is doing, the performance tradeoffs you're making, and more control over an area where you'll probably have to optimize.

Vue.js 2 is an hibrid between virtual dom and data binding.

All VDOM systems are. The difference is how explicit the data binding is: I maintain implicit 2-way binds, Angluar style, are a Bad Idea.

Re: React is mostly hype

#125
post #106

Earlier quoted context omitted.

It might not have a explicit opinion stated anywhere but in any library or framework, the API provided influences how those APIs are used. By having the central unit of work start with a query selector is one such influence which I feel implicitly encouraged DOM manipulations. Taking a look at the original jQuery website on web.archive, this is the introduction to the $() function: "The functionality of jQuery center…

> [...] I feel implicitly encouraged DOM manipulations. That's jQuery's primary job. It isn't DOM manipulation that causes code/architectural issues. "All" (I'm simplifying) jQuery does is provide mechanisms to select and manipulate DOM. How to organize its usage is an exercise left to the reader, and most readers did it poorly. It's not jQuery's fault that people wrote shitty code with it. And, in fairness, when Pro…

Take an average developer (or two) and sit them down in front of React and jQuery for the first time. My bet is anything based on React will be better built than that of jQuery.

Of course you can architect those flexible, extensible, testable and clean projects. But straight out of the box you do not get that with jQuery. It requires planning and architecture engineering.

Whereas every React project starts off with those principals.

In other words, the ways people can use jQuery wrong is worse than the ways people can use React wrong.

Re: React is mostly hype

#126
post #106

Earlier quoted context omitted.

It might not have a explicit opinion stated anywhere but in any library or framework, the API provided influences how those APIs are used. By having the central unit of work start with a query selector is one such influence which I feel implicitly encouraged DOM manipulations. Taking a look at the original jQuery website on web.archive, this is the introduction to the $() function: "The functionality of jQuery center…

> [...] I feel implicitly encouraged DOM manipulations. That's jQuery's primary job. It isn't DOM manipulation that causes code/architectural issues. "All" (I'm simplifying) jQuery does is provide mechanisms to select and manipulate DOM. How to organize its usage is an exercise left to the reader, and most readers did it poorly. It's not jQuery's fault that people wrote shitty code with it. And, in fairness, when Pro…

[deleted]

Re: React is mostly hype

#127
post #106

Earlier quoted context omitted.

It might not have a explicit opinion stated anywhere but in any library or framework, the API provided influences how those APIs are used. By having the central unit of work start with a query selector is one such influence which I feel implicitly encouraged DOM manipulations. Taking a look at the original jQuery website on web.archive, this is the introduction to the $() function: "The functionality of jQuery center…

> [...] I feel implicitly encouraged DOM manipulations. That's jQuery's primary job. It isn't DOM manipulation that causes code/architectural issues. "All" (I'm simplifying) jQuery does is provide mechanisms to select and manipulate DOM. How to organize its usage is an exercise left to the reader, and most readers did it poorly. It's not jQuery's fault that people wrote shitty code with it. And, in fairness, when Pro…

[deleted]

Re: React is mostly hype

#128
post #106

Earlier quoted context omitted.

It might not have a explicit opinion stated anywhere but in any library or framework, the API provided influences how those APIs are used. By having the central unit of work start with a query selector is one such influence which I feel implicitly encouraged DOM manipulations. Taking a look at the original jQuery website on web.archive, this is the introduction to the $() function: "The functionality of jQuery center…

> [...] I feel implicitly encouraged DOM manipulations. That's jQuery's primary job. It isn't DOM manipulation that causes code/architectural issues. "All" (I'm simplifying) jQuery does is provide mechanisms to select and manipulate DOM. How to organize its usage is an exercise left to the reader, and most readers did it poorly. It's not jQuery's fault that people wrote shitty code with it. And, in fairness, when Pro…

[deleted]

Re: React is mostly hype

#129
post #47

Earlier quoted context omitted.

Well, React has one huge disadvantage: It requires you not suing FB, even if they abuse some of your own patents. That patent license they have in their project basically means you can only use React as dev in a company if your company does not have patents or noteworthy IP.

Not true any more: https://mobile.twitter.com/paul_irish/status/754864479460929...

That makes things a lot easier indeed.

Re: React is mostly hype

#130

Earlier quoted context omitted.

Vue.js 2 is an hibrid between virtual dom and data binding.

All VDOM systems are. The difference is how explicit the data binding is: I maintain implicit 2-way binds, Angluar style, are a Bad Idea.

Mmm no sorry i don't agree. For me virtual dom is only a tree generated from code,diffed and batched. Speaking only of the algoritm. For me databining templates libraries are vue and ractive. See this 2 links for comparison. https://vuejs.org/guide/comparison.html

http://blog.ractivejs.org/posts/whats-the-difference-between...

Post reply on HN