Live data from Hacker News

Angular 2 Beta released

angularjs.blogspot.com

81–90 of 273 posts

Re: Angular 2 Beta released

#81
post #75
post #69

I'm curious what Angular 2 is like for developers who normally write React? I hear 2 is a lot better than 1, but I'm still turned off by the amount of Angular-specific terminology, whereas most of React terminology is not necessarily React-specific.

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.

I'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-wi...

Re: Angular 2 Beta released

#83

Earlier quoted context omitted.

is that a european thing?

As a European, we prefer it described as a 'poorly conceived and universally despised European law thing'

As a Brit living within a region under the influence of the EU, I concur. A massively annoying imposition from power-tripping bureaucrats who have no idea what a stateless protocol is.

Re: Angular 2 Beta released

#84
post #70

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

I've been using TypeScript for a few months now and have been so impressed with it that I am beginning to favor Angular 2 over React just because of Angular 2's TS integration. TypeScript basically made JavaScript more powerful and a whole lot more fun for me. I feel so much better about slinging around parameters now that I know my IDE will catch type/parameter mismatches before I run the code, before I build it, ev…

Welcome to the programming world, js developers.

Re: Angular 2 Beta released

#85
I am in Germany and this link forces a redirect to angularjs.blogspot.de because of my location (which is a version of the blog in German, which I don't read).

No simple way around this, and no link I can see to go to .com instead. That's quite frustrating.

Re: Angular 2 Beta released

#86
post #69

I'm curious what Angular 2 is like for developers who normally write React? I hear 2 is a lot better than 1, but I'm still turned off by the amount of Angular-specific terminology, whereas most of React terminology is not necessarily React-specific.

Never understood why people liked React so much. I don't know why, but mixing javascript and HTML just looks... gross.

Re: Angular 2 Beta released

#87

Earlier quoted context omitted.

We've been using TypeScript with Angular 1 projects for almost a year now and have really been enjoying it. Having it integrated directly into the framework is a great improvement for my team, at least.

When using Typescript with Angular 1 where you able to make use of TS types and type checking? Want to give this a try :-) Thanks

Yes. You just include a "type definition file" for Angular in your project. There is a very large existing repository of type definitions for popular JS libraries in the DefinitelyTyped project.

https://github.com/DefinitelyTyped/DefinitelyTyped

Re: Angular 2 Beta released

#88
post #75
post #69

I'm curious what Angular 2 is like for developers who normally write React? I hear 2 is a lot better than 1, but I'm still turned off by the amount of Angular-specific terminology, whereas most of React terminology is not necessarily React-specific.

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.

I wonder what you guys would think of this:

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

Here is an example app built on it: https://github.com/EGreg/Overlay/blob/master/web/js/Overlay....

Re: Angular 2 Beta released

#89

How many Angular folks are sticking with native ES6 and babel vs TypeScript? Angular is clearly directing folks to TypeScript. I don't want to have to use TypeScript on front-end and ES6 + Babel in Node. Trying to pick one.

From my understanding the two aren't mutually exclusive. From example, couldn't you use ES6 decorators and typescript in the same project?

TyoeScript supports decorators with the --enableExperimentalDecorators flag.

Re: Angular 2 Beta released

#90
Angular 2 is late to the party. The user base of Angular 1.x has already moved on.

I wish the success of a web framework was a bit more about the technology nature of it rather than the market adoption and hype.

Post reply on HN