Live data from Hacker News

Angular 9.0

blog.angular.io

141–150 of 308 posts

Re: Angular 9.0

#141
post #40

Earlier quoted context omitted.

It reminds me of the whole .NET ecosystem. All of these custom magical special ways to do everything, compared to ‘dumb’ setups like node/ruby/go where the actual logic is just right there in front of you And every release .NET just keeps moving closer to the dumb systems. Simple and raw is good, keep the magic away

I am really glad there are other people who think this way. I am experienced with Python/JS/Ruby web app development models and recently had a look at ASP.NET Core web api projects. The amount of complexity is mind boggling. I mean, look at Flask in Python. Or even Expressjs in Node, why can't Microsoft come up with a simple framework that can run well on the .NET runtime? I am a huge fan of C#, having used it for De…

What's so complex about ASP.NET Core web api, other than having to learn to use a DI framework?

I found it very simple and minimal (again, other than the DI) when learning it.

Re: Angular 9.0

#142
post #12

Why is Angular so less popular than React?

Angular: Learn about property binding, event binding, pipes, templates, views, metadata, attribute directives, structural directives, services, modules, components, injectors. React: Write a function that generates a piece of HTML. Use standard event handlers to manage user interactions. Update state via setState methods. Ship it.

Yep, when I was studying Angular I kinda felt it was trying to reinvent everything, so personally I can wrap my head around React a little bit more. However I know people consider React more of a library, maybe Angular is more of a full on framework?

Re: Angular 9.0

#143
post #88

The only thing I like about Angular is the dependency injection of services. Having "services" managed for you and just picking and choosing what you want is pretty nice. What I don't like is the verbosity and boilerplate... here's 2 examples: - Routing boilerplate is convoluted and time consuming. I think Nuxt.js has a much nicer implementation of SPA routing, where the filesystem is used to map the routes. - Angula…

The great thing is nowadays you can use Typescript for React or Vue very easily :-)

Re: Angular 9.0

#144
post #117

I have a policy of only shipping "back-end" apps because I'm worried about performance, browser compatibility and SEO. I don't know if the situation has improved in Angular 9. Does anybody here use Angular for their customer facing websites?

Have a look at Phoenix Live View -> https://www.youtube.com/watch?v=8xJzHq8ru0M

It is still early days, and isn't suitable for every use-case, but it could be the answer you're looking for. Continue to write back-end code only. But with the benefits of quick-response front-end app. I'm a total convert (evangelist) who has been increasingly put off by the evolution (devolution?) of front-end development over the past 5-10 years. This could be one way of the mess.

Re: Angular 9.0

#145

Earlier quoted context omitted.

Only sane way, you missed a word. Of course there are other ways, but they clearly flawed in my opinion. I used to hate web development before 2014 and now I love it. Php is an awful language, jquery was a nightmare. Angular makes no sense hence why it keeps reinventing itself, Vue forces you to have some logic expressed using an ad hoc language in templates like it’s 2010 instead of just using JS constructs etc... I…

> Vue forces you to have some logic expressed using an ad hoc language in templates That's not true, you can use JSX with Vue, we do use that for one of our clients and it hasn't raised issues whatsoever

You are right indeed, but from a developer point of view at that point you could be using a react based framework and your experience would be the similar to vue with JSX.

Render functions returning JSX is the key brilliant idea invented by react and the fact that vue adopted it just proves the point even more:

React or the ideas at the core of react are not the mistake of the last decade but the blessing of the last decade for web development (and more).

Re: Angular 9.0

#146
post #70
post #54

Earlier quoted context omitted.

I think the breathless claims of performance are because for what React is doing -- storing the entire application tree using virtual DOM and seamlessly rendering updates -- it is really impressive. The fact that it is has similar performance as some much more naive frameworks is pretty amazing. In practice all of these frameworks are fast enough that you wouldn't notice unless you were doing something really crazy.

Then why are all the React-based web apps I use so slow?

React ecosystem is centered heavily on "components". This sounds nice, but IMO it breaks down quickly on the "whole program" level. What you end up with is crazy re-renders because it doesn't make sense to "componentize" the state.

Re: Angular 9.0

#147

After 2 years of Angular madness I will send my resignation and I hope I will never work with it again. My app is a big stack of workaround stuff that might break anytime. Because that is how angular work. Some stuff work in a context and doesn't in an other. Nobody's know why ! They have so much issue on Github that they need a bot to close them after a while. They hope the bug disappear by himself ?

Meanwhile, the web apps I wrote in 2014 in react still work flawlessly.

Join us, you’ll enjoy the ride!

Re: Angular 9.0

#148
post #144
post #117

I have a policy of only shipping "back-end" apps because I'm worried about performance, browser compatibility and SEO. I don't know if the situation has improved in Angular 9. Does anybody here use Angular for their customer facing websites?

Have a look at Phoenix Live View -> https://www.youtube.com/watch?v=8xJzHq8ru0M It is still early days, and isn't suitable for every use-case, but it could be the answer you're looking for. Continue to write back-end code only. But with the benefits of quick-response front-end app. I'm a total convert (evangelist) who has been increasingly put off by the evolution (devolution?) of front-end development over the past…

It's not Angular's architecture I have a problem with. As a former Delphi and current .NET developer, Angular fits like a glove, not to mention Typescript which was created by Anders Hejlsberg.

It's the output I'm worried about. The HTML outputted by Angular pre-Ivy is verbose and runs very slow on old browsers (IE9, with polyfills). A customer facing website can be visited by anyone, from a tech savvy Linux user to your grandma which uses Internet Explorer and thinks Facebook is the internet.

I don't want to face the wrath of clients who realize that their website is slow and non-optimized because I'm using Angular.

Re: Angular 9.0

#149

Earlier quoted context omitted.

> Vue forces you to have some logic expressed using an ad hoc language in templates That's not true, you can use JSX with Vue, we do use that for one of our clients and it hasn't raised issues whatsoever

You are right indeed, but from a developer point of view at that point you could be using a react based framework and your experience would be the similar to vue with JSX. Render functions returning JSX is the key brilliant idea invented by react and the fact that vue adopted it just proves the point even more: React or the ideas at the core of react are not the mistake of the last decade but the blessing of the last…

> from a developer point of view at that point you could be using a react based framework and your experience would be the similar to vue with JSX

It will not, because Vue has a better integration with the data source (Vuex) and a better integration with the routing (Vue Router)

I mean, I agree that React is an awesome framework implemented upon great design ideas (pure functions and plain JS templates), but it has its shortcomings, that frankly make me still prefer Vue to React (mainly Redux and the router)

Re: Angular 9.0

#150

Earlier quoted context omitted.

Facebook and Twitter are slow?

Facebook absolutely is, it's a beast. I find it can frequently freeze up my old laptop, which is admittedly getting past it but I have little trouble with most any other site. I don't use Twitter, so can't comment.

Try mbasic.facebook.com
Post reply on HN