News for hackers. Stuff that matters.
Re:PostgREST: Providing HTML Content Using Htmx by markbnj on Monday December 18, 2023 @05:40PM (#38689424)
Years ago, mid-90's, I visited Compuserve in Ohio. The web was just getting going and one of the engineers I met there showed off a music store he was building by returning html from SQL stored procedures :).
Re:PostgREST: Providing HTML Content Using Htmx by bsdpufferfish on Monday December 18, 2023 @05:44PM (#38689468)
The quality of open source databases with views, partitions, etc as well as improvements in server hardware have made this approach much more appealing.
Re:PostgREST: Providing HTML Content Using Htmx by est on Monday December 18, 2023 @10:01PM (#38691273)
if you think about it, serverless lambdas are just stored procedures with bells and wistles.
Re:PostgREST: Providing HTML Content Using Htmx by icedchai on Monday December 18, 2023 @10:46PM (#38691575)
Lambdas feel more like CGI scripts. Too bad they didn't just use the CGI standard instead of something proprietary.
Re:PostgREST: Providing HTML Content Using Htmx by lemper on Monday December 18, 2023 @11:41PM (#38691904)
if you think about it, php is just stored procedure with bells and whistles.
Re:PostgREST: Providing HTML Content Using Htmx by est on Tuesday December 19, 2023 @12:25AM (#38692176)
nah you have to worry about deployments of where .php were placed and mod_php and php-fpm stuff. DB can scale and you don't have to worry where SP were executed.
Re:PostgREST: Providing HTML Content Using Htmx by agumonkey on Monday December 18, 2023 @07:57PM (#38690478)
I have a huge feeling there will be a compressive period after the sort of cambrian explosion we've seen in the last decade.. everybody do very similar things, spread across N layers just so you can modify a bunch of rows in db. Mind boggling.
Re:PostgREST: Providing HTML Content Using Htmx by j-a-a-p on Tuesday December 19, 2023 @07:50AM (#38694885)
Yes, we had that at Oracle as a product. SQL + PL/SQL = HTML. It also had a built in versioning that if two users would change the same record it would moan.