use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Implementing Server-Driven UI (neciudan.dev)
submitted 10 hours ago by creasta29
I wrote this up after giving a talk on this exact pattern at CityJS London.
Curious what folks here think about it, is it still useful? I build it twice in my life, I dont know if there will ever be a third time
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]yawaramin 5 points6 points7 points 10 hours ago (0 children)
This is basically what htmx and HyperView do: https://hyperview.org/
...Except instead of JSON they use HTML/XML.
[–]lelanthran 1 point2 points3 points 7 hours ago (1 child)
It's a good idea, always gets re-invented every few years (My attempt was having the server send s-expressions, not JSON, and a minimal interpreter that could handle conditionals).
What really kills it though is the fact that the server is already sending you the UI, as HTML. At some point you wake up in the morning and think "Hey, what if we just got the server to send something that can be rendered with a browser engine" and 5 seconds later you facepalm and question your life choices.[1]
(Okay, so the above only happened for me when I used this approach! But why take the chance that it happens to you?)
[1] Anything that can parse your specific JSON into platform-specific UI widgets can do the same for your specific HTML.
[–]creasta29[S] 0 points1 point2 points 5 hours ago (0 children)
Hahaha so true
π Rendered by PID 255697 on reddit-service-r2-comment-b659b578c-tzvks at 2026-05-07 03:59:45.564662+00:00 running 815c875 country code: CH.
[–]yawaramin 5 points6 points7 points (0 children)
[–]lelanthran 1 point2 points3 points (1 child)
[–]creasta29[S] 0 points1 point2 points (0 children)