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?
Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
11–20 of 39 posts
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#12On 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?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#13On 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?
As an aside, I hate websites/apps sending HTML fragments like it’s 2005 because it’s much harder to pull data or automate things that way. But that’s usually considered an upside for developers who want to combat scraping. In practice it’s hardly a road bump for devoted scrapers, and actually increases server load for the same amount of data pulled, but it’s still considered a win by many.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#14My advice to the OP, is to break out the component piece of the framework into a standalone lib that other frameworks can use. I think it'll be much easier to gain adoption that way.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#15The best part is you can use components like you would with React but you write all / most of your logic in C# in the case of something similar for Python I would expect the logic to all be Python even if it affects the DOM.
As an aside thats on topic, I was contenplating HTMX and Django for a project I was working on but I am still overengineering in my head. I have landed on maybe using Astro instead for all the frontend logic.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#16On 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?
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#17One thing I want to see eventually is Blazor for Python maybe with Django. I am using Blazor at a new job and it is impressive. If I change a type on the backend not only will other classes that rely on it squak if theres mismatches, but my frontend joins in on squaking at me as well! Really nice in all honesty. The best part is you can use components like you would with React but you write all / most of your logic i…
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#18The requirement of @override on the render method is a bit unwieldy, have you considered using pedantic's BaseModel instead of TypedDict? I think it would allow you to get rid of @override? Not sure it'd be worth it for the extra dep though.
Something I always look for in a web framework is the ability to run the app from the repl. Is this possible with Ludic? I remember in Clojure, the app was just a function of a hashmap request -> hashmap response, so testing was really easy, you just do something like (app my-request) and inspect the return value, 'my-request' can be a hashmap constructed by hand or generated with a tool like core.spec. Much more convenient than running uvicorn just for a quick test! I recommend adding this use case to Ludic if it's not already there.
Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#19Re: Show HN: Web Development with Htmx, Type-Guided Components, Pure Python
#20On 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?