Live data from Hacker News

Angular 2 Fundamentals Course

courses.angularclass.com

41–50 of 120 posts

Re: Angular 2 Fundamentals Course

#41
post #3

I heard angular is a framework and react is lib. angular 2 or react. Coming from nodejs, python, php, jquery experience which should I learn?

Having used and studied both React and Angular2, Angular2 can do certain things that React can't. Two features at the forefront of this difference are:

1) Dependency injection

2) Direct support for using observables and promises in templates

However, I cannot think of anything major in the reverse direction.

There is also the fact that it is designed to be used with Typescript from the get-go, which can be a plus if type safety is your thing.

Re: Angular 2 Fundamentals Course

#42
post #12
post #3

I heard angular is a framework and react is lib. angular 2 or react. Coming from nodejs, python, php, jquery experience which should I learn?

I don't have time to learn both. TBH, I am forcing myself to learn cuz... all these examples I could accomplish with jquery...

You could get the end result of a lot of these smaller example applications with jquery but making anything bigger is going to get very unmanageable very quickly. Also considering how close angular 2 is to react I'd be surprised if by learning one you wouldn't be able to at least understand code in the other. I guess it really depends what your end goal is.

Re: Angular 2 Fundamentals Course

#43
post #13

Angular 2 is great, just look at all the features you get: WebWorker, Server-Side Rendering, mobile, progressive web application, Lazy loading support, Router, Material Components, Precompile your app. Tree-Shaking support, fast rendering, CLI, and TypeScript. The framework is backed by Google and Microsoft

You don't need all that to create SPA app. it's bloated framework.

You don't need to use all of that just because it's there and having it there is more reliable than having to cobble together your own, at least in a corporate setting.

I actually find it surprising that this is a Google project, if you just gave me the code/docs and didn't tell me what project it is I would have guessed this came from Microsoft (feels much more WPF/Silverlight like than GWT/Closure, hell it even uses Rx which came out of MS)

Re: Angular 2 Fundamentals Course

#44
post #3

I heard angular is a framework and react is lib. angular 2 or react. Coming from nodejs, python, php, jquery experience which should I learn?

With Angular you get all you need out of the box. Easy to get going with ng-cli (creating an app, generating components etc.). Typescript is default, so you get type safety if you want it. I like a lot of what I see.

Conceptually, React and Angular are quite close. In both you build an app with components nested in a three structure. Angular let's you do two-way binding if you want — convenient, but makes state changes less explicit.

React is closer to bare bones JS and HTML. Templating in HTML only consists of a simple way to embed JS code and a few reserved keywords. In Angular, templating is much more elaborate, and therefore more complex and takes a longer time to learn.

React — both by design and community — favours FP priciples, while Angular is mor OOP oriented, though neither is strictly one or the other.

Personally I like both. React for its simplicity, Angular for its all-batteries-included approach and support for static typing as default.

Re: Angular 2 Fundamentals Course

#45
I have only one question - when NG2 will be released? Because now it is not possible build real applications, many libraries are not stable, and still in beta or rc... Four month I'm trying to do real application and I must say that it was my big mistake when I decided use Ng2., with every new release I always have troubles with some dependencies or with new API, and there are no many stable components which I can use without pain. Ng2 has good promotion however we need wait official release., and then make some conclusions about it.

Re: Angular 2 Fundamentals Course

#46
post #36

Earlier quoted context omitted.

My experience is that Angular 2 is a great solution for enterprise-style shops who are looking for an all-in framework. With React, you benefit from greater flexibility outside the view layer, but ... well, you also suffer from greater flexibility outside the view layer. In general, I'd say that the more comfortable you are with current FEAD practices and toolchains, the more power you'll get out of a React-based arc…

What does "FEAD" mean?

[deleted]

Re: Angular 2 Fundamentals Course

#47
post #36

Earlier quoted context omitted.

My experience is that Angular 2 is a great solution for enterprise-style shops who are looking for an all-in framework. With React, you benefit from greater flexibility outside the view layer, but ... well, you also suffer from greater flexibility outside the view layer. In general, I'd say that the more comfortable you are with current FEAD practices and toolchains, the more power you'll get out of a React-based arc…

What does "FEAD" mean?

Guessing its Front End Application Development

Re: Angular 2 Fundamentals Course

#48
post #20

Earlier quoted context omitted.

You don't need all that to create SPA app. it's bloated framework.

having the option to precompile your framework to 20kb file size which is smaller than some libraries feels like a great feature

20kb? Really? On last week I built NG2 application(rc.4) with one component and size was over 500kb, with all dependencies which needed to run it. Maybe @angular/core weight 20kb, but in order to run real world application need add many dependencies. rxjs, zoom.js, shims, and so on..

Re: Angular 2 Fundamentals Course

#49
post #20

Earlier quoted context omitted.

having the option to precompile your framework to 20kb file size which is smaller than some libraries feels like a great feature

20kb? Really? On last week I built NG2 application(rc.4) with one component and size was over 500kb, with all dependencies which needed to run it. Maybe @angular/core weight 20kb, but in order to run real world application need add many dependencies. rxjs, zoom.js, shims, and so on..

It's possible using smart techniques (standard minification/gzipping, Google Closure/Rollup, etc.).

Re: Angular 2 Fundamentals Course

#50
post #6

Interesting coincidence. This week I've been tasked with looking into a JavaScript framework to replace our pure-Clojure stack at work. One of the front-end candidates is Angular. But we're considering cutting it from the race. The three main things we're looking for in a front-end framework: 1. Longevity: we don't want to adopt yet another fad framework that we'll have to replace in 2017. The current trend looks to…

> Longevity: we don't want to adopt yet another fad framework that we'll have to replace in 2017. No such thing. They're all pretty much fad frameworks.

Looking back, though, I might have said the same thing about Rails or Sinatra or Laravel, but they stood the test of time, and people still use them. A lot of what gives a framework longevity is just whether or not big players adopt them and developers love them, these two factors will go a long way in ensuring a framework continues to get upgrades and continuous maintenance. At least longer than Backbone, anyway.
Post reply on HN