Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
21–30 of 39 posts
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#22On 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?
This is just one more layer on top, and one more possible point of failure/frustration, as illustrated by this parent comment.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#23Of course, we often need something dynamic, so we can't just use HTML. But why not something a lot like HTML so those additional pieces are as small and simple as possible... you know... like a template engine.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#24I'm just never going to understand why you'd want to write your HTML in something unlike HTML (Python in this case). Then you need to know the thing that isn't like HTML, plus HTML, plus the details of how the other thing is transformed to HTML. Of course, we often need something dynamic, so we can't just use HTML. But why not something a lot like HTML so those additional pieces are as small and simple as possible...…
It's more robust to go the other way: start with the full-powered programming language, and emit the static HTML data after doing the complex logic stuff.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#25On 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?
This is to me a non starter. Why does the server care what that im incrementing the local data? None of that is likely important until I am done. This is just one more layer on top, and one more possible point of failure/frustration, as illustrated by this parent comment.
Which doesn't matter for trivial counter examples but the same technique is something I've used (not with ludic, but with HTMX) to trigger actions in physical space.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#26I'm just never going to understand why you'd want to write your HTML in something unlike HTML (Python in this case). Then you need to know the thing that isn't like HTML, plus HTML, plus the details of how the other thing is transformed to HTML. Of course, we often need something dynamic, so we can't just use HTML. But why not something a lot like HTML so those additional pieces are as small and simple as possible...…
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#27On 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?
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
#28This looks promising. How do you compare with https://github.com/pydantic/FastUI (made by the authors of Pydantic)?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#29On 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…
What you see as a "terrifying" disregard for "two decades of advancements", others see as a liberating departure from two decades of unnecessary bloat. It's healthy to have more than one strategy available for building web applications.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#30On 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…