4 ms·
Me too. Impression, admittedly only from reading about it and looking at a few code samples, is that Angular 2 is over engineered and complected, as is 1.x, whi
by erokar 11y ago
Me too. Impression, admittedly only from reading about it and looking at a few code samples, is that Angular 2 is over engineered and complected, as is 1.x, which I have worked in daily for over a year. ReactJs is much more appealing these days.
- clessg 11y agoI've used and followed Angular 2 somewhat over the past year. My take is that React is better for engineers familiar with JavaScript, while Angular may be more comfortable for engineers with a preference for Java/C#. I don't mean that in a bad way; it's simply been my experience that people coming from those languages love what they see of Angular 2, and are repelled by React. It's not hard to see why. This code[0] from Angular 2 would just be a function in React: @Pipe({ name: 'tempConvert' }) // The work of the pipe is handled in the tranform method with our pipe's class class TempConvertPipe implements PipeTransform { transform(value: number, args: any[]) { if(value && !isNaN(value) && args[0] === 'celsius') { var temp = (value - 32) * 5/9; var places = args[1]; return temp.toFixed(places) + ' C'; } return; } } There's also the fact that Angular is a framework, whereas React is a library. Those of us in JS land typically (but not always) prefer smaller libraries. [0] https://auth0.com/blog/2015/09/03/angular2-series-working-with-pipes/ https://auth0.com/blog/2015/09/03/angular2-series-working-wi...
- Matthias247 11y agolet's be fair, Pipes can do a little bit more then pure functions. E.g. the async pipe which lets someone directly use Observables in the view is really helpful. And a simple function in combination with Observable.map() or Promise.then() won't bringt that functionality to React (you need to write lifecycle hooks or mixins, and in the end it would look similar to your construct.
- EGreg 11y agoI wonder what you guys would think of this: http://qbix.com/platform http://qbix.com/platform It was built with concepts from Angular 1 and React in mind. But it doesn't use either. Especially this: http://qbix.com/platform/guide/tools#dom http://qbix.com/platform/guide/tools#dom Here is an example app built on it: https://github.com/EGreg/Overlay/blob/master/web/js/Overlay.js https://github.com/EGreg/Overlay/blob/master/web/js/Overlay....