Live data from Hacker News

Angular 4.0.0 Now Available

angularjs.blogspot.com

121–130 of 360 posts

Re: Angular 4.0.0 Now Available

#121

I'll be that guy. I'm sure the Angular team are great people, and they're clearly talented devs... but stay away from Angular. It doesn't help with the problems you will actually face. Typed Javascript is a cargo cult. Angular just plain confusing for no apparent benefit. Dependency injection is bizarre. The distinction between modules, components, and directive is unnecessary. The Javascript community in general is…

Angular is a mess but typescript is alive and kicking on its own, even with react. Personally I'm one of the apparently rare breeds that hate angular but loves typescript. I wish there were more of us. They're really in different realms and please don't make them part of the same whole. Typescript is a transpiler but the transforms it does are designed to mimic accepted JavaScript idioms. When I'm debugging typescrip…

Typescript with React is necessary for me. I feel like it highly increases my productivity when coding, and it makes it easy to refactor the code.

Plus you can do some cool things like Component inheritance.

I've never tried Flow, but I guess it's practically the same.

Re: Angular 4.0.0 Now Available

#122

I'll be that guy. I'm sure the Angular team are great people, and they're clearly talented devs... but stay away from Angular. It doesn't help with the problems you will actually face. Typed Javascript is a cargo cult. Angular just plain confusing for no apparent benefit. Dependency injection is bizarre. The distinction between modules, components, and directive is unnecessary. The Javascript community in general is…

Some clarifications:

1. Angular 2 is not object oriented in the standard meaning of the term: it does not rely on inheritance or polymorphism that much.

But it does rely on classes as the backing structure of your UI components. In other words, they tried to create a platform for creating widgets that compose. And more or less succeeded.

This is a tried and true pattern that has been used to create complex user interfaces since forever. I would wait a while before claiming that this stile is obsolete.

2. Angular 2 is quite functional.

Decorators in Javascript are just higher order functions (like python I guess). They look like like Java's annotations, but work in a completely different way.

They made streams (RxJs) the standard way of working with data.

And pipes are also a functional construct.

3. There are some good things to say about their routing module too, but I have to go.

Anyway, my opinion is that Angular and React address different needs and there is definitely room for both of them.

Re: Angular 4.0.0 Now Available

#123

Earlier quoted context omitted.

Despite being new to AJAX, I wrote a Vue app within a week, 4-5 weeks into reading Angular, I was still reading the docs. Edit: removed a brash statement.

Yes and no. It says as much about you as it says about Angular or Vue. Look, Angular is far from being my favorite framework, and I have nothing against Vue, I'm more of a ClojureScript / om.next guy myself. I'm just really allergic to brash statements about frameworks, or hype in general. How easy it is to get up and running with a framework doesn't actually tell me that much about the framework. Is the apparent sim…

True, I didn't mean to sound brash, I have edited out the statement, I wasn't belittling Angular, neither did I intend to say that Vue is the way better in it's internals over Angular. I wanted to share my experience that learning how to write an app in Vue was faster than Angular.

> In the end, whether you use Angular, React or Vue is really secondary to what you build with it.

yes and no, you are also making a tradeoff at the learning curve of the chosen framework.

Re: Angular 4.0.0 Now Available

#124
Honest question,

How does Angular make my life easier or better in some way?

I currently use Python and Pyramid as a framework. Mako templates. And SQLAlchemy for database interactions.

How is any of this really better?

Re: Angular 4.0.0 Now Available

#125

I'll be that guy. I'm sure the Angular team are great people, and they're clearly talented devs... but stay away from Angular. It doesn't help with the problems you will actually face. Typed Javascript is a cargo cult. Angular just plain confusing for no apparent benefit. Dependency injection is bizarre. The distinction between modules, components, and directive is unnecessary. The Javascript community in general is…

Angular is a mess but typescript is alive and kicking on its own, even with react. Personally I'm one of the apparently rare breeds that hate angular but loves typescript. I wish there were more of us. They're really in different realms and please don't make them part of the same whole. Typescript is a transpiler but the transforms it does are designed to mimic accepted JavaScript idioms. When I'm debugging typescrip…

It's interesting how OP says people are moving towards more functional-style Javascript, but also dismisses statically typed Javascript. The two work really well together.

Re: Angular 4.0.0 Now Available

#126

I'll be that guy. I'm sure the Angular team are great people, and they're clearly talented devs... but stay away from Angular. It doesn't help with the problems you will actually face. Typed Javascript is a cargo cult. Angular just plain confusing for no apparent benefit. Dependency injection is bizarre. The distinction between modules, components, and directive is unnecessary. The Javascript community in general is…

> Redux, React

Golden cage then eh?

Nah, I'd rather go with polymer instead which is much closer to DOM and is a small library indeed (It's not like redux is working only for react).

And without polyfills I'm looking into 15kb download for users, instead of react + reactDOM behmoth.

I can't wait for someone to add JSX+VDom support for polymer (for the folks who like that approach).

Re: Angular 4.0.0 Now Available

#127

Angular core team here, we're pretty excited about this release. Main change, as noted, is the new View Engine. The design doc[0] is worth a read if you're interested in front-end at all. Happy to answer any questions! [0] https://docs.google.com/document/d/195L4WaDSoI_kkW094LlShH6g...

We're using the universal fork of the CLI with the recent AOT (client side) patch for a current project. Will my upgrade path be straightforward? The project is a simple content based website which consumes a ruby API that we had built earlier. We use universal for setting up meta tags, crawlability, etc.

Re: Angular 4.0.0 Now Available

#128

Earlier quoted context omitted.

Despite being new to AJAX, I wrote a Vue app within a week, 4-5 weeks into reading Angular, I was still reading the docs. Edit: removed a brash statement.

Meh, it says something, but not a lot. Some tools are harder than others, sometimes because they accomplish more. Imagine if you'd said "one day into learning about homeopathy, I was able to prescribe homeopathy-things, but after 4-5 weeks of med school I was still taking classes about blood cells." I'm not actually defending Angular as such, because I am super ignorant about it. Perhaps Angular is a byzantine mess.…

>Imagine if you'd said "one day into learning about homeopathy, I was able to prescribe homeopathy-things, but after 4-5 weeks of med school I was still taking classes about blood cells."

I get your point, I removed the last statement, it was incorrect. the thing is, I wanted to state that Vue is super easy to use, now, if it is a toy or a serious framework is upto the programmer to decide :-)

Re: Angular 4.0.0 Now Available

#129

I'll probably try it. But man, am I getting jaded about all this javascript framework stuff. Every 6 months stuff breaks, every 2 years there's a huge shift. The problem with javascript I've been facing is value. Time and effort doesn't always correlate to what I get in the other end. In fact, I can say when building, going single-page is a time sink. And it's almost always a mistake to go SPA first. Using a django o…

Look into polymer. Let's you do server side rendering then use custom web components for the widgets needing interactivity. I found building sites this way refreshing.

Yeah, I've been using polymer for quite a bit of time. It is very easly to pick up, small, fast and interoperable with everything else.

Re: Angular 4.0.0 Now Available

#130
post #111
post #90

Earlier quoted context omitted.

As someone who is new to React, Angular, Vue, etc., he/she is in the PERFECT position to judge them. Libraries/frameworks are not just about performance, but how you learn them as well. Those frameworks/libraries don't write themselves.

Frameworks are also about comprehensiveness. The start of the learning curve is not the sine qua non . That always reminds me of those complaints that writing a "Hello World" application in your GUI library of choice requires plenty of boiler plate etc., but you're probably not going to spend your developer life doing that. Often benefits for larger apps aren't obvious for the neophyte. This is really aggravated that…

I agree with your points, I'd like to make one small point, Vue is not a framework per se, it is a library. That puts the responsibility of everything else on the programmers shoulders.
Post reply on HN