Live data from Hacker News

Angular 2 Beta released

angularjs.blogspot.com

241–250 of 273 posts

Re: Angular 2 Beta released

#241
post #237
post #233

Earlier quoted context omitted.

When you say "up around 40 jobs", do you keep a historical graph on these stats? It would be an interesting read!

I just remember looking into various frameworks at the beginning of the year and trying to evaluate if React was "worth" getting into. I'm very pragmatic about frameworks. Yes, React might be technically better than Angular 2, but it has to be better at putting food on the table. It probably will be. In the meantime, there are a lot of Angular 1 projects that will need migrating to Ang 2.

Will people bother to migrate though? I think they might just stick with what they have and if they do need to upgrade frameworks they may very well steer away from angular altogether.

Re: Angular 2 Beta released

#242
post #227

Congratulations to the Angular 2 team on shipping before Christmas. The estimate was originally somewhere around early 2016, so this is a huge deal for them to get this out before the year was up. Unfortunately, Angular 2 launched into beta too late. In the amount of time that Angular 2 has taken to get to beta, ReactJS has slaughtered the front-end market share (in a good way) and completely taken developers by stor…

I usually evaluate frameworks based on the job market. In the UK there are currently 298 jobs for Angular and 109 for React (www.cwjobs.co.uk). React is up on around 40 jobs at the beginning of the year. The reality is that you should know Angular AND you should know React. These are not mutually exclusive.

Yes, but whey you get to influence what to use you should know what you want and why. For the time being I don't recommend starting with angular unless you already know angular 1 or know that your first release won't be until the fall 2016.

Re: Angular 2 Beta released

#243
post #233
post #227

Earlier quoted context omitted.

I usually evaluate frameworks based on the job market. In the UK there are currently 298 jobs for Angular and 109 for React (www.cwjobs.co.uk). React is up on around 40 jobs at the beginning of the year. The reality is that you should know Angular AND you should know React. These are not mutually exclusive.

When you say "up around 40 jobs", do you keep a historical graph on these stats? It would be an interesting read!

Indeed allows you to search for terms historically (like a Google trends for jobs): http://www.indeed.com/jobtrends?q=angularjs%2C+angular%2C+re...

React as a term is understandably a bit polluted though.

Re: Angular 2 Beta released

#244
post #156

Earlier quoted context omitted.

I just checked Datanyze which crawls the Alexa 1m and more to see which services & libraries websites are using. They've detected 234,003 sites using Angular and 2,069 using React.

I think Angular is more accessible than React. I don't think React will be adopted as much by non-engineers. React is usually used alongside significant tooling like babel and webpack/browserify and some flux library. It's probably more complex. You can't just drop some js script file in your HTML document and go with that. I say that as someone who thinks React is the future of JavaScript development and there's no…

For very small projects you can write react code in one or a few files without babel, webpack/browserify and similar tools. That closes the gap but I agree that angular is easier to just prototype something simple if you're not a developer.

Re: Angular 2 Beta released

#245
post #237

Earlier quoted context omitted.

I just remember looking into various frameworks at the beginning of the year and trying to evaluate if React was "worth" getting into. I'm very pragmatic about frameworks. Yes, React might be technically better than Angular 2, but it has to be better at putting food on the table. It probably will be. In the meantime, there are a lot of Angular 1 projects that will need migrating to Ang 2.

Will people bother to migrate though? I think they might just stick with what they have and if they do need to upgrade frameworks they may very well steer away from angular altogether.

Depends if they want to keep their devs. Not moving is not an option. You just need to be coding defensively.

Re: Angular 2 Beta released

#246
post #18

Earlier quoted context omitted.

I'm very impressed with the power Visual Studio Code offers for developing JS/TS projects. Do you do all of your development in the .NET flavour of Visual Studio?

I really wanted to start using ts in my next React app but did not find any good resources and couldn't get it off the floor. Happen to have any insight on that?

I've been working on a TS/React/Redux app for the last couple of months, trying to make use of the "latest and greatest" tools and best practices, and hope to write up a blog post over Christmas describing my experience (overall very positive) and how to set it all up, so I will be sure to post it to HN when it is done.

Re: Angular 2 Beta released

#247
post #239

Earlier quoted context omitted.

People hate Dart, written by Google, for same reason: it is better to stick to single language, for better ecosystem, than to fragment it. I, personally, just ignoring Dart, CoffeeScript, TypeScript, etc. Life is short.

We're stuck with javascript due to historical reasons, not because it's any good. I think that treating it as a bytecode, binaries, etc.. is the way to go. I.e. javascript (preferably fast subset of it) will be produced by proper tools and you'd never have to look at it again. Fragmentation is only natural. So these languages exist precisely because life is short. Are they the perfect/stable solution? Probably not. B…

We're stuck with javascript because it is good enough, so switching to an another language, e.g. Dart or VBScript, are not worth effort and consequences. JS even used at backend side. IMHO, it is better to invest into JS than to fight with it.

Re: Angular 2 Beta released

#248

Earlier quoted context omitted.

> 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. As a big fan of types myself, I hear you. Have you tried using flow with react? I wonder how they compare.

I can't tell you anything about flow (no experience and no interest), but I have no played a little bit with React & Typescript as well as Angular 2 & Typscript. Imho both configurations work quite good: What I liked about React is that I also got type checks in JSX (compiler tells me if the types that I assign to props are correct). I don't get that kind of type checks for angular2 templates. If I assign something w…

It is a shame that so few React-based libraries are on DefinitelyTyped. As the project I've been building had quite a short timeline, I've just been creating "any" type definitions for libraries which don't have definitions (in an ideal world, I'd like to create and share a proper definition), which works but you lose type safety and auto-complete for these libraries. Not the end of the world but it allows more runtime errors to creep in.

On the Flow vs Typescript thing, I evaluated both for this project, and almost went with Flow primarily because at the time, I liked that Flow felt lighter weight (it is truly "opt in" unlike TS, and getting the TS setup right was quite hard work), and I was also put off by the overhead of having to write .d.ts files (now I can create an "any" definition for a library in a few seconds, but at the time found it all quite time consuming).

However, I persevered with Typescript in the end, as I felt that some of the features it offered over Flow were worth the extra effort - specifically, the editor/IDE support (Atom with Nuclide for Flow was really unstable for me and the autocomplete still didn't compare to TS) and the fact that Typescript does a full compile of your code, so will pick up on things like mis-spelled imports, which Flow didn't seem to.

Also, I found documentation for Flow (beyond the basics) to be quite lacking, and there didn't seem to be as much community around it - for example, I just couldn't work out how to get it to check React propTypes, which was a pretty important feature for me. Bit of a shame, as its type system actually seems more fully featured than Typescript's (e.g. types are non-nullable by default), but TS's type system is certainly good enough.

I'd say go Typescript at the minute if it's a reasonably large greenfield project, but Flow might suit your needs if it's something smaller (whether that's in amount of code or in team size), or if you prefer the lighter touch/opt-in approach - for example, if you want to introduce it to an existing JS code base. I would definitely say it is worth the effort to go with one or the other, I'm not looking forward to going back to writing plain JS - having the compile stage makes refactoring in particular trivial, without the overhead of having to write loads of unit tests. In TS I'll refactor constantly as I go whereas in a large JS app, it's tempting to put off refactoring as you might miss somewhere and not know until it is QA tested (or the customer spots it is broken...).

Re: Angular 2 Beta released

#249
post #216
post #132

Earlier quoted context omitted.

React providing a mustache-like format (like ractive.js uses) would be great - more familiar than JSX and less clumsy than createElement(). Edit response to person below (rate limit): there's no 'problem', just that mustache is still more familiar. Moving JSX into a different file doesn't change that.

JSX/createElement is not just syntax sugar though. It avoids the whole step of parsing the template. Because JSX is JS code, you can pass native JS values to it including callbacks. Whereas anything you could pass to mustache-style templates will be stringified. So for example in case of parsed templates, to pass a callback to onClick you'd need to define a convention on how you're going to locate the callback by a g…

> to pass a callback to onClick

Putting behaviour in HTML is a bad idea. Leave it in JS, and have one place to go when the behaviour changes.

Re: Angular 2 Beta released

#250

Earlier quoted context omitted.

based on HN hiring posts, more companies ask for React than Angular experience. React growth in 2015 is absolutely stunning. http://www.ryan-williams.net/hacker-news-hiring-trends/2015/...

Is HN hiring posts REALLY representative of the industry as a whole? Seems more like the startup scene and often forgets about all the developers out there in corporations, agencies and other work that don't get represented here.

Usually startups pickup new tech and slow moving corporations follow later(whatever by buying these startups or by hiring ex-startup employees).
Post reply on HN