Live data from Hacker News

Angular 2 versus React

medium.com

171–180 of 249 posts

Re: Angular 2 versus React

#171
post #33
post #19

Earlier quoted context omitted.

Why did Google create Polymer? Google isn't using it. This is almost the same 'problem' with "AngularJS by Google", it's almost never used by Google. Edit: The reason I like React more is the fact that Facebook uses it in a high traffic production setting. Edit 2: I think the whole Javascript (or framework) fatigue is just a 'transition problem'. Old tools are getting replaced by new tools, causing confusion..

YouTube Gaming & the new Google Play Music are both built with Polymer, both moderately complex consumer facing sites.

Google Play was poorly made

https://play.google.com/store/apps/developer?id=itdisplayswh...

Re: Angular 2 versus React

#172
His argument about the 'Unix Philosophy' reminds me a lot of the argument between using big web frameworks like Django vs smaller micro-frameworks like Flask. Personally, I prefer Flask for the small projects I make because of how nimble it is but it's hard to argue with the large organizations using Django for massive projects to (seemingly) good effect. Ironic since I actually do like Angular (sorry)!

Overall I felt the article was preachy and extremely biased. It's as if the author was trying really hard to convince as opposed to just presenting the facts and letting the reader make a choice based on the evidence.

I have concerns about ng2 but having made an effort to learn React as well I think he dramatically oversimplifies it's ease of use for large scale projects (where Angular shines, IMHO).

Re: Angular 2 versus React

#173

It seems like Redux + React is clearly going to win out. What am I missing? Yes the ecosystem is constantly changing right now but the oscillations are getting smaller not bigger. In my opinion Redux is the highest level and most intuitive, just like React was for the view when it came out. It's only a matter of time.

Why does Redux imply React? I use Redux with virtual-dom and end up with far less bloat.

Re: Angular 2 versus React

#174
post #37

Earlier quoted context omitted.

> React and Angular2 do the same thing yet they are both bloated and force tons of tools and tech down your throat. For what? State control. The most important thing about a React app is that you can write your code to have every bit of application state inside a single variable. It gets you hot code loading, trivial testability, and session recording/replay. I can actually test the app without having to use selenium…

Note that mithril is much more lightweight than react, offers a similar vdom model, but has a completely different algorithm for deciding when to redraw. I actually think that mithril's redraw algorithm is less intuitive to use than react, but it is way simpler, which has its own advantages.

If you want just the vdom model, look at https://github.com/Matt-Esch/virtual-dom I remember at one point mithril's vdom implementation was based on virtual-dom but I can't seem to find any documentation to back this up.

Re: Angular 2 versus React

#175

Earlier quoted context omitted.

> to simply make web markup what it should be: Interactive I guess I missed the memo. When did it happen that web markup suddenly got a need to be interactive?

That's a good point, I think I should of said "Dynamic" for lack of a better word. Interactive, it needn't be.

I guess I missed the memo. When did it happen that web markup suddenly got a need to be dynamic?

Re: Angular 2 versus React

#176
post #37

Earlier quoted context omitted.

Note that mithril is much more lightweight than react, offers a similar vdom model, but has a completely different algorithm for deciding when to redraw. I actually think that mithril's redraw algorithm is less intuitive to use than react, but it is way simpler, which has its own advantages.

If you want just the vdom model, look at https://github.com/Matt-Esch/virtual-dom I remember at one point mithril's vdom implementation was based on virtual-dom but I can't seem to find any documentation to back this up.

Probably a coincidence. I only found out about virtual-dom after I released Mithril.

Re: Angular 2 versus React

#177

Earlier quoted context omitted.

What do you think about Ember's mobile performance problems?

First of all, let me share a wonderful (and performant) mobile app, written in ember. It uses ember-data to connect/normalize the iTunes api, and provide a slick fast mobile experience. https://fnd.io/ Disclaimer, I work on & with Ember.js (and I didn't work on https://fnd.io ) I've worked on several mobile web apps using ember, and performance did require being careful, but often "being careful" was nicely aligned w…

Thank you! This explains so much. I hope the Android experience gets better but I fear my next phone will have an Apple logo on it.

Re: Angular 2 versus React

#178
If anyone is new to both frameworks Angular 2 or React; I would prefer React. I have learned React in a day. I can use my existing knowledge of js in React (for, if etc), whereas in angular learning those directives is still a pain (in Angular 2 as well).

I love the fact how each component in React can be composed! Its just beauty!

Re: Angular 2 versus React

#179
post #9

To me it really feels like Polymer is taking all of the pros from both of these "libraries" or "frameworks" or whatever you want to call it and none of the cons. Why aren't we talking more about that? Polymer is a fraction of the size. It's one of several ways right now to write custom components. React and Angular2 do the same thing yet they are both bloated and force tons of tools and tech down your throat. For wha…

Polymer doesn't work on IE9, much less IE8; banks pay the company I work for millions to produce software that works on the browser they have today.

Re: Angular 2 versus React

#180

Earlier quoted context omitted.

It's the circle of life. I've been programming since I was a kid in the 80's, after a while you learn to stand back sometimes and let the bandwagon roll on past or as I've joked in the past "these days I simply get on every third bandwagon".

Yes, it would seem as a developer there is a certain amount of bandwagon jumping going on in the last few years. You're very right, you really have to pick your battles. It's interesting since I'm doing more contract work and finding out that one shop uses Angular and another Backbone and a third React. Which one should I really learn and focus on, when nearly every shop has a totally different philosophy?? Even tryi…

Truth is, it doesn't fucking matter. People are still building jQuery apps. The key is solving real world problems with nicely designed solutions. Doesn't matter what you do it in, how you do it. Just solve a problem.
Post reply on HN