r/webdev • • Jan 05 '16

Angular 2 versus React

https://medium.com/@housecor/angular-2-versus-react-there-will-be-blood-66595faafd51
194 Upvotes

74 comments sorted by

View all comments

0

u/[deleted] Jan 05 '16

[deleted]

33

u/Shaper_pmp Jan 05 '16

What does it mean to just use JS?

The author means that if you know how to iterate over an array in Javascript then you also already know how to do it in React (in this case, using Array.map()).

In Angular you have to remember the Angular syntax for iterating over an array, which is additional cognitive overhead.

FWIW I'm neither an Angular nor React developer so I have no dog in this fight, but it does seem that this specific point is a valid one - leveraging your existing javascript knowledge for conditionals/iterations/etc should lead to lower cognitive overhead than having to learn/memorise/recall a completely different syntax.

0

u/[deleted] Jan 05 '16

[deleted]

6

u/Shaper_pmp Jan 05 '16

However, for Ember the list of "propriety" syntax isn't that long: http://emberjs.com/api/classes/Ember.Templates.helpers.html

True - I'm not saying it's necessarily a massively significant drawback (especially if you pick one framework and dedicate your career to it), but I can see how it's an additional mental stumbling-block for newbies, and anyone who jumps from framework to framework and always has to stop for a second and remember (or even look up) the right helper name and syntax each time they want to use it.