4 ms·
"You can use whatever programming language you like to deliver HTML, just like we used to." Is this suggesting writing any language we want in the browser? I
by mikece 3y ago
"You can use whatever programming language you like to deliver HTML, just like we used to."
Is this suggesting writing any language we want in the browser? I have wondered for a couple decades why Python or some other open source scripting language wasn't added to browsers. I know Microsoft supported VBScript as an alternative to JavaScript in Internet Explorer and had it not been a security nightmare (remember the web page that would format your hard drive, anyone?) and not a proprietary language it might have a rival to JavaScript in the browser. In those days it wouldn't have taken much to relegate JavaScript to non-use. Today we just get around it by compiling to WASM.
- loloquwowndueo 3y agoIt is not suggesting that. On the server, you can use your language of choice to generate complete or partial HTML responses to be sent and then put in the right places on the page by JavaScript (htmx) running on the browser.
- biorach 3y ago> Is this suggesting writing any language we want in the browser? Nope, server
- traverseda 3y agoIt is not suggesting running arbitrary languages in the browser. It's basically Ajax.
- avisser 3y agoCommenting on "It's basically Ajax": Yes, and it's also a return to the basics of a browser. Making HTTP calls (Hypertext Transfer Protocol) to get HTML (the aforementioned Hypertext) and rendering it is the core thing that browsers do. It's both necessary and sufficient to being a browser.
- mikece 3y agoI hope the execution is better than Ajax! They way that was implemented in WebForms was horrible and a complete PITA to debug.