News for hackers. Stuff that matters.
Re:Ask HN: What are weird and/or novel ways to do web UIs? by krapp on Thursday October 03, 2019 @07:52AM (#21145921)
99% of those "apps" are still just documents with client-side rendering, though. And the web was designed with the intent of running code practically from the beginning, albeit with support envisioned for multiple languages, so programmatic elements in a website aren't really a perversion of the original intent.
Re:Ask HN: What are weird and/or novel ways to do web UIs? by romaniv on Thursday October 03, 2019 @11:42AM (#21148280)
>And the web was designed with the intent of running code practically from the beginning

This is absolute nonsense. In the beginning the web didn't even have inline images. It was a text-only protocol.

https://www.wired.com/2008/09/history-of-img-and-embed-tags/

Cookies and script tags were hacks added by Netscape, IIRC.

Re:Ask HN: What are weird and/or novel ways to do web UIs? by krapp on Thursday October 03, 2019 @02:09PM (#21150009)
>This is absolute nonsense. In the beginning the web didn't even have inline images. It was a text-only protocol.

Maybe you misinterpreted my comment. "practically from the beginning" does not mean the same thing as "from the beginning." I think something that was considered to be a part of the HTML spec, regardless of how it came about, since the 1990s counts as "practically from the beginning."

>Cookies and script tags were hacks added by Netscape, IIRC.

Tim Berners-Lee didn't seem to have a problem with the premise of embedded scripting in HTML in 1992[0], albeit not with the script tag and JS per se. And my comment was more referring to whether or not executing code in a browser was considered a legitimate use of HTML and the web at the time - and clearly it was, albeit not universally. That paradigm wasn't something Netscape just "hacked" in and entirely forced upon an unwitting web.

[0]http://1997.webhistory.org/www.lists/www-talk.1992/0064.html

Re:Ask HN: What are weird and/or novel ways to do web UIs? by pgcj_poster on Thursday October 03, 2019 @08:34AM (#21146213)
I didn't know that. Is there anywhere I can read about it?
Re:Ask HN: What are weird and/or novel ways to do web UIs? by krapp on Thursday October 03, 2019 @09:19AM (#21146586)
https://eager.io/blog/a-brief-history-of-weird-scripting-lan... mentions support for multiple languages, including TCL.

And the possibility of scripts is mentioned at least as far back as HTML3[0] in 1996, with the script tag being added as a placeholder element in HTML 3.2[1], and Java applets were already supported.

So while it wasn't there at the very beginning, it's clear the architects of the web didn't consider running code in the browser to be antithetical to its purpose.

[0]https://www.w3.org/TR/WD-script-960131.html

[1]https://www.loc.gov/preservation/digital/formats/fdd/fdd0004...

Re:Ask HN: What are weird and/or novel ways to do web UIs? by rswail on Thursday October 03, 2019 @10:21AM (#21147267)
The original thesis on REST by Fielding [1].

Section 5.1.7 Code On Demand

[1] https://www.ics.uci.edu/~fielding/pubs/dissertation/fielding...