Live data from Hacker News

Angular 2 Fundamentals Course

courses.angularclass.com

21–30 of 120 posts

Re: Angular 2 Fundamentals Course

#21
post #9
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?

Angular is a more full featured than React by itself. To get React to equivalent features you have to add on (and learn) several other things (Redux, WebPack, etc, etc). As a bonus, there are lots of different conflicting flavors-of-the-week for things to use with React to build out your stack, so whichever you pick to go with React might not be cool next week.

This. In the end both work similarly, but with React you have to shop around to decide what to use. With Angular things are a bit more strict and directed.

Re: Angular 2 Fundamentals Course

#22
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?

What should you learn? both. But you should also be able to write "rich" single page applications without a framework and understand basic DOM manipulation.

Re: Angular 2 Fundamentals Course

#23

Earlier quoted context omitted.

That doesn't address the issues the comment just above you (at time of writing) brings up, namely that even with Vue you still need to set up all the tool chain around it, whereas Angular brings a lot of that to the table for you.

I handle a big React app at my job. It's messy as fuck with JSX. We made a transition to Vue. Couldn't be happier.

What in particular about JSX makes it messy compared to vue? Messy template code can happen in both.

Re: Angular 2 Fundamentals Course

#24
"Learn Angular 2 fundamentals while rebuilding a real app."

Wouldn't it be great to turn business requirements into code training documentation and crowdsource the development of things?

Re: Angular 2 Fundamentals Course

#25
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.

Re: Angular 2 Fundamentals Course

#26

Earlier quoted context omitted.

Ignore both. Learn vue.js to get shit done.

That doesn't address the issues the comment just above you (at time of writing) brings up, namely that even with Vue you still need to set up all the tool chain around it, whereas Angular brings a lot of that to the table for you.

If you want, you can use Vue.js just like jQuery. Pop it in a tag and you're done. No tool chain needed. I do that all the time for small-medium sized projects and it works absolutely fine.

Re: Angular 2 Fundamentals Course

#27
post #9
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?

Angular is a more full featured than React by itself. To get React to equivalent features you have to add on (and learn) several other things (Redux, WebPack, etc, etc). As a bonus, there are lots of different conflicting flavors-of-the-week for things to use with React to build out your stack, so whichever you pick to go with React might not be cool next week.

This is not accurate. You don't need to learn Redux or WebPack to use React. With Angular you also need a build process so you can use gulp or WebPack. Maybe there's a pre baked process but you still need to know some build tool.

Because React doesn't care about how you manage your state, you can use Redux or other solutions. Not because they are cool , but because it fits your needs.

Re: Angular 2 Fundamentals Course

#28
post #23

Earlier quoted context omitted.

I handle a big React app at my job. It's messy as fuck with JSX. We made a transition to Vue. Couldn't be happier.

What in particular about JSX makes it messy compared to vue? Messy template code can happen in both.

Vue templates support conditional rendering (v-if/v-show/v-else) which I didn't realize I missed until using them. Also, conventions around component data are really nice and help keep markup tidy and very readable.

I like to think of Vue as React with sensible conventions. That said, both are terrific and solve UI problems very elegantly.

Re: Angular 2 Fundamentals Course

#29

Earlier quoted context omitted.

That doesn't address the issues the comment just above you (at time of writing) brings up, namely that even with Vue you still need to set up all the tool chain around it, whereas Angular brings a lot of that to the table for you.

I handle a big React app at my job. It's messy as fuck with JSX. We made a transition to Vue. Couldn't be happier.

So it's your engineer's fault. Plenty of companies get stuff done with React everyday.

Re: Angular 2 Fundamentals Course

#30
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

Just a note, that 20kb also includes the dependencies, such as the reflect metadata polyfill, zone.js polyfill, and an ES6 shim such as core.js. Once static template compilation lands (think of it like the JSX compiler), it will get even smaller.

Angular 2 is shaping up to be a framework like no other out there in its capabilities.

Post reply on HN