Better HN
topnewbestaskshowjobs
Log inSign up

ngFanboi45

10 karma · joined Jul 19, 2023 (3y ago) · 3 submissions

Submissions

comment 3y ago · link · parent

Yep. The author is making a big leap by falling into the "Angular slow" meme. In my experience it isn't, and it provides ease of use thanks to its bi-directional binding, as oposed to React's unidirectional binding. It is not the champion of speed though, might be even the slower out of the box, but still fast enough.

comment 3y ago · link · parent

Change detection is one thing, and double buffering is another. Change detection is just projecting from state changes to UI changes. It doesn't try to solve this hypothetical "flashing". That is entirely up to the browser. Double buffering is a graphic technique meant to show smooth UI changes at the cost of doubling the memory used for the graphical object.

comment 3y ago · link · parent

> Angular’s change detection is a disaster. The developer gets two suboptimal choices: (1) the slow and naive default implementation, or the complexity of managing change detection manually.

This is completely wrong. The "naive" approach is the one you should always use, with the onpush strategy reserved for breaking certain cascading situations manually. But the default approach works perfectly fine, it is performant enough, and even more when compiled for production, as it runs only once (as compared to twice in the debug mode). The author is incorrectly assuming that the change detection is slow because it is automatic. That's the entire point of the framework btw.