Hacker News new | ask | show | jobs
by findingFounders 1459 days ago
looks like Standalone Components, which are in preview in the latest v14, may yet see the deprecation of angular modules, or at least give more options to devs https://angular.io/guide/standalone-components

With decorators and dependency injection at least you're learning a concept which has been quite widely used across some popular languages/frameworks, there's a chance you'd already have come across these ideas in learning programming.

rxjs definitely can take some learning time, though to get started with basic things like handle an api request with observable it doesn't take long. There's a whole lot you can do, and that power is quite useful for complex scenarios.

2 comments

For me Angular's use of rxjs is a killer feature. Our back end code relies heavily on streaming computations, and rxjs provides a great front end complement to that.

Powerful tools often put people off because they appear complex. Often that complexity is at least partly an illusion - once you've learned the abstractions, much of what seemed to be complexity can actually be very simple.

yep i really like using rxjs now. i find using "await lastValueFrom(<observable>)" keeps code nicely readable and flat. it has 38m weekly downloads on npm so should be around for a good while.
I don’t want to use decorators. They’re another band-aid to keep OOP on life support. They are disguised functions applied to mutable objects in order to enhance their capabilities (or maybe to comply with type interfaces).

Dependency injection is the exact same thing, only with different syntax.