3 ms·
Blazor Server and other HTML over the wire frameworks (Livewire, Hotwire, HTMX, etc.) are the new sweet spot for a lot of LoB web applications I think.
by tiberriver256 4y ago
Blazor Server and other HTML over the wire frameworks (Livewire, Hotwire, HTMX, etc.) are the new sweet spot for a lot of LoB web applications I think.
- bob1029 4y agoThe amount of leverage you can get out of these paths is pretty incredible. The fundamental idea is really simple too if you boil it down to the absolute minimum essence... The following 6 lines of javascript is all it takes to connect a hot pipe from server to client and dynamically invoke whatever is required. function StartApplication() { document.ApplicationSocket = new WebSocket(...); document.ApplicationSocket.onmessage = function (e) { return new Function('use strict";\n'+e.data)(); } } Anything that needs to talk back to the server would just send a message on the same socket. This is pretty similar to how Blazor Server works, except we are able to bootstrap our client off <1kb of javascript+html source.
- willbudd 4y agoI can't believe it took people 12 years since the publication of the WebSocket standard to figure this stuff out. Is everyone just running in circles?
- pjmlp 4y agoWe were already doing this kind of workflows with WebForms and Java Server Faces alongside DHTML, but naturally we weren't cool, so the kiddies took 12 years to re-discover the wheel.
- lawn 4y agoThe productivity boost I've gotten with Phoenix LiveView vs a typical front/backend split is simply unreal. Seriously, if you haven't tried it, you're missing out.