News for hackers. Stuff that matters.
Re:What's TypeScript compiling? Use a treemap to find out by no_wizard on Monday August 01, 2022 @12:25PM (#32308441)
It should all be down the applications need for client side interactions. Even with hotwire/turboframes, phoenix liveview or other websocket / real time server driven update patterns, it can be suboptimal for many catagories of applications as these rely on (albeit smart) whole replacement of DOM nodes. In heavy applications, or applications that have a lot of represented state, its not the panacea it might seem at first glance.

I always tell people, "mileage may vary, there's no silver bullets in this industry". I think it holds true especially when talking about stuff like this.

Re:What's TypeScript compiling? Use a treemap to find out by helloguillecl on Monday August 01, 2022 @12:41PM (#32308705)
One thing is to have JS for client-side interactivity, and another thing is to generate the entire HTML using javascript by sending both the data and javascript bundles to the client.
Re:What's TypeScript compiling? Use a treemap to find out by no_wizard on Monday August 01, 2022 @12:59PM (#32308967)
Incremental rehydration techniques make this much much less of an issue (React 18 supports this now, IIRC, for instance). The tl;dr is that if you employ SSG or SSR you won't endup up with immediate re-hydrating once the client loads up, but only when something triggers the need for re-hydration, like a button click.

That to me seems like the sweet spot for highly interactive applications that are very stateful, however like I said previously, your mileage may vary.