4 ms·
This isn't a weird UI as such, but it's probably a technology that isn't explored enough. Back in the very early 2000s before Javascript was universally availa
by rwmj 7y ago
This isn't a weird UI as such, but it's probably a technology that isn't explored enough. Back in the very early 2000s before Javascript was universally available, we wrote a CGI-based technology that worked by persisting the entire state of the page between clicks. It was a true widget-based server-side GUI, so you could build single page UIs by composing widgets such as buttons, labels, and more complex things, hierarchically (like native GUIs). The whole page would reload between clicks but everything was so lightweight and tiny that wasn't actually much of a problem, at least by the standards of the day.
It's all open source but probably doesn't compile on modern machines, and of course for extra fun we wrote the entire stack including the webserver, CGIs, cooperative threading, database layer and C libraries from scratch. From top to bottom this is the entire stack:
http://git.annexia.org/?p=monolith.git;a=summary http://git.annexia.org/?p=monolith.git;a=summary
http://git.annexia.org/?p=rws.git;a=summary http://git.annexia.org/?p=rws.git;a=summary
http://git.annexia.org/?p=pthrlib.git;a=summary http://git.annexia.org/?p=pthrlib.git;a=summary
http://git.annexia.org/?p=c2lib.git;a=summary http://git.annexia.org/?p=c2lib.git;a=summary
Edit: I should say that it's obsolete if you can make the nowadays reasonable assumption that Javascript can be used on the client side. It's more like "this is the crazy shit that a team of developers in their 20s with VC funding, disfunctional management and time on their hands get up to".
Edit 2: It was used in production for quite a long time, certainly until the 2010s. If you were in a UK school in the mid 2000s there's a chance you might have used this.
- regularfry 7y agoSounds a little bit like Seaside: https://github.com/SeasideSt/Seaside/blob/master/README.md https://github.com/SeasideSt/Seaside/blob/master/README.md
- zxcmx 7y agoIf I'm not mistaken this is pretty much how ASP.NET Web Forms work(ed). I think Java Server Faces (JSF) uses a server rendered component approach also. The giveaway being the need for a ViewState. So for a long time this has been a widely used pattern! With today's dominance of (MVC || SPA) architectures I agree it's not as widely known as perhaps it should be.
- thrower123 7y agoYou could do some heinous, heinous stuff the Web Forms and UpdatePanels. Interestingly, Blazor seems to be reviving the whole idea. With SignalR, it is actually not completely insane to handle events with the equivalent of code-behind.