| ▲ | skeptic_ai 3 hours ago |
| That’s basically a massive hack. Every real world app will need enough js that htmx will require you to put js on front end and you’ll need to hack it together. Just like we did php+js 15 years ago. |
|
| ▲ | prologic 3 hours ago | parent | next [-] |
| I've found this to not be true at all. You can do quite a lot with just HTMX. Any client-side Javascript™ you strictly need can often be done fairly minimally with Locality of Behaviour (LoB). |
| |
| ▲ | asdfsa32 2 hours ago | parent [-] | | LoB isn't going to reconcile Chat Messages rendering state and Notifications. Their dependent state by nature. HTMX largely seems to ignore this reality. In fact, the complexity of Chat Messages and Notifications synchronisation is one of the prime reasons why React exists. | | |
| ▲ | Zanfa 2 hours ago | parent | next [-] | | > In fact, the complexity of Chat Messages and Notifications synchronisation is one of the prime reasons why React exists. Which makes it even more ironic that in the 10 years since React was announced in 2013 and when I quit Facebook, they never managed to fix the original state synchronization bug that they demonstrated in the original React announcement for more than a few months at a time at best. I'm sure technically it wasn't a singular bug over the years and the causes were complex, but React did fuck all in relation to the unread message counter being correct. | |
| ▲ | infamia an hour ago | parent | prev | next [-] | | > In fact, the complexity of Chat Messages and Notifications synchronisation is one of the prime reasons why React exists. SSE is perfect for chat/notifications and is a lot simpler than syncing. The server pushes updates to the client doesn't require a sync. SSE is also more performant since it can keep the connection open. The example below is on a $10 vps last I heard. https://data-star.dev/examples/dbmon | |
| ▲ | 2 hours ago | parent | prev | next [-] | | [deleted] | |
| ▲ | greenchair 2 hours ago | parent | prev [-] | | right, so use the right tool for the job. most apps are boring CRUD apps and dont support chat. |
|
|
|
| ▲ | Levitz 2 hours ago | parent | prev | next [-] |
| That "massive hack" is supposed to be one of the core features of React. |
|
| ▲ | asdfsa32 3 hours ago | parent | prev [-] |
| But it is different this time, we are going back to HTML! /s |