News for hackers. Stuff that matters.
Re:Angular 11 by josteink on Thursday November 12, 2020 @07:44AM (#25069204)
> I would say with its deep RxJS integration Angular has its merits

That’s funny, because for the exact same reason I’ve taken a strong dislike on it.

The rest of NodeJS flows on promises and constantly have to switch between that, and having to use different APIs, and no longer be able to write simple awaitable async code...

It drove me mad. Angular without RxJS would be so much better.

Re:Angular 11 by tashoecraft on Thursday November 12, 2020 @12:01PM (#25071833)
Strongly disagree. Rxjs is such a better async pattern than anything else in the javascript ecosystem. The front end shouldn't care what node is doing, especially since not everyone's front end uses node. What I don't like about async await is it changes the pattern you are seeing, intermingling synchronous and asynchronous code based on the correct placement of a keyword, then using try catch blocks to catch errors are just so ugly. Passing my data through a stream of pure functions that transform the data into what I need just feels pleasant to work with, but I do agree it takes awhile to be proficient in it.
Re:Angular 11 by hckrnwsthrwwy on Thursday November 12, 2020 @04:05PM (#25075032)
Use NestJS, you can have RxJS and Angular in your backend
Re:Angular 11 by k__ on Thursday November 12, 2020 @08:05AM (#25069395)
Doesn't Node.js mainly flow on callbacks?

As far as my experience goes, promises require some extra work too.