On a reasonably fast connection, I hit the increment button and it took almost two seconds for the counter to increment. Is it immediate for everyone?
Totally depends on your latency to the server and server response time. Please don’t throw away two decades of client side advancements and do this for state changes that should be entirely local, people with higher latency will hate your guts. Use alpine or something like that if you don’t want to go full react/vue/svelte/solid/etc. It’s utterly terrifying that I now see this pattern evangelized every day. As an asi…
Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
31–39 of 39 posts
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#32Earlier quoted context omitted.
Totally depends on your latency to the server and server response time. Please don’t throw away two decades of client side advancements and do this for state changes that should be entirely local, people with higher latency will hate your guts. Use alpine or something like that if you don’t want to go full react/vue/svelte/solid/etc. It’s utterly terrifying that I now see this pattern evangelized every day. As an asi…
the htmx/hypermedia approach doesn't perclude scripting for client-side interactions: https://htmx.org/essays/hypermedia-friendly-scripting/ https://hypermedia.systems/client-side-scripting/
Additionally, while not htmx, in the adjacent land of LiveView, client side scripting is a bitch. I built a complex application in LiveView two years ago and later regretted it. Hard to resolve client side state and server side state diverging with complex but local state changes, and complex local changes are made more difficult than good old imperative jQuery thanks to a managed DOM. It’s extremely tempting to render local state changes with an HTML patch from the server to avoid all the pain, but like I said, high latency users will hate my guts for it.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#33Earlier quoted context omitted.
Totally depends on your latency to the server and server response time. Please don’t throw away two decades of client side advancements and do this for state changes that should be entirely local, people with higher latency will hate your guts. Use alpine or something like that if you don’t want to go full react/vue/svelte/solid/etc. It’s utterly terrifying that I now see this pattern evangelized every day. As an asi…
I've been following projects like Hotwire and HTMX for awhile now, and I haven't seen anyone argue that scraping is a major reason to adopt this approach. I also don't see a lot of opposition to the idea of incorporating something like alpine to add some UI niceness. What you see as a "terrifying" disregard for "two decades of advancements", others see as a liberating departure from two decades of unnecessary bloat.…
Is moving the bloat to a blackbox in the backend really a better approach? Why not just not create a bloated frontend?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#34On a reasonably fast connection, I hit the increment button and it took almost two seconds for the counter to increment. Is it immediate for everyone?
Same. I know this is unfair but it made me subconsciously write off the framework. OP, this is purely marketing feedback but try to make the button fast. Love the direction you're taking, good luck!
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#35Earlier quoted context omitted.
I've been following projects like Hotwire and HTMX for awhile now, and I haven't seen anyone argue that scraping is a major reason to adopt this approach. I also don't see a lot of opposition to the idea of incorporating something like alpine to add some UI niceness. What you see as a "terrifying" disregard for "two decades of advancements", others see as a liberating departure from two decades of unnecessary bloat.…
> others see as a liberating departure from two decades of unnecessary bloat Is moving the bloat to a blackbox in the backend really a better approach? Why not just not create a bloated frontend?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#36On a reasonably fast connection, I hit the increment button and it took almost two seconds for the counter to increment. Is it immediate for everyone?
No. It's fast, but not immediate. It's annoying but not unusable. Worse though, it starts dropping repeated clicks. Triple click increments counter by 2. Unfortunately, this is unusable.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#37Earlier quoted context omitted.
> others see as a liberating departure from two decades of unnecessary bloat Is moving the bloat to a blackbox in the backend really a better approach? Why not just not create a bloated frontend?
Because it might be in fact easier and simpler to implement it on backend?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#38Earlier quoted context omitted.
Because it might be in fact easier and simpler to implement it on backend?
it might, it probably isn't. Unless you only have a hammer.
And I have a strong suspicion for many the beloved hammer is big complex client-side JS framework.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#39Earlier quoted context omitted.
I've been following projects like Hotwire and HTMX for awhile now, and I haven't seen anyone argue that scraping is a major reason to adopt this approach. I also don't see a lot of opposition to the idea of incorporating something like alpine to add some UI niceness. What you see as a "terrifying" disregard for "two decades of advancements", others see as a liberating departure from two decades of unnecessary bloat.…
> others see as a liberating departure from two decades of unnecessary bloat Is moving the bloat to a blackbox in the backend really a better approach? Why not just not create a bloated frontend?