3 ms·
Have a look at this video in Rails’ Turbo 8: https://m.youtube.com/watch?v=hKKycPLN-sk https://m.youtube.com/watch?v=hKKycPLN-sk In a nutshell: we had a 7 year
by mosselman 3y ago
Have a look at this video in Rails’ Turbo 8: https://m.youtube.com/watch?v=hKKycPLN-sk https://m.youtube.com/watch?v=hKKycPLN-sk
In a nutshell: we had a 7 year old server side rendered page on our site that shows a chat between two users that was more like email. So you have to refresh to see new messages. We added 2 lines of code to the HTML(!!) and now the page is fully multiplayer so messages come in directly when the other user sends one and you see other things update as they are changed in the database, etc.
2 lines of fucking HTML.
Sure turbo is built in JavaScript, but I have to spend zero time writing any and I get all the benefits in a 7 year old server side rendered page.
- eddd-ddde 3y agoRecently I just wrote a basic tutorial on building a real time chat web application using htmx: https://dev.to/viiik/making-a-real-time-chatroom-app-with-cloudflare-workers-2cp4 https://dev.to/viiik/making-a-real-time-chatroom-app-with-cl... Minimal html, like just a couple of lines including regular html boilerplate. The amazing thing of libraries like turbo or htmx is the client complexity does not increase with feature complexity.