How does this compare to Dash?
I've used Dash for many applications, so I'm wondering what are the advantages of FastHTML?
161–170 of 229 posts
How does this compare to Dash?
I've used Dash for many applications, so I'm wondering what are the advantages of FastHTML?
Frameworks like this are really next-gen, but I wish people would think in terms of the bigger Python ecosystem and not just their own framework. This is about the fifth web framework which are not compatible with each other: Streamlit, ReactPy, FastHTML, Dash, Shiny, etc.. I created a truly reusable Python component framework which is just a a string generation library and can be used for ANY existing Python web fra…
> Frameworks like this are really next-gen, How is this next-gen? It looks exactly like all current frameworks in various languages, but with more default functionality thrown in. Something like Postgrest would, to me, be "next-gen". I have a private/proprietary backend-based framework that I used for a few clients that has both less "magic" while simultaneously allowing more functionality with even less code than an…
One thing I'm dying to see is a Python template engine that builds to WASM. This is the killer feature of C# for me right now. Blazor removes any need for me to ever touch React or JavaScript ever again. I think if done as a stand alone template engine, then every web framework could benefit from it, including this one. I just might have to research.
Earlier quoted context omitted.
At the risk of being ignorant/heretical: Why use this over "raw" templating (e.g. jinja2) at this point?
My suggestion is to just try writing React for a week or two and experience the component based development. You never want to go back to templates again.
OT: is there a reason to open/close the DocType at the beginning of the homepage source?
Just wanted to say, nice job, love how much work has gone in to this and especially the site/docs to help people get going.
I am currently settled on [ludic](https://getludic.dev) which is very similar to my eyes and has been discussed here [1]. The developer is responsive and the repo has a comparable number of stars to FastHTML on github.
Ludic's big feature is type-guided-components[2] that allow compile time checking of the compatibility of components forming a structure---and autocomplete while writing. So for example the component `WithSideBar` from the catalog[3] needs to contain a `SideBar` component and a list oof other child components. It seems elegantly put together too.
Looking forward to trying out FastHTML.
[1] https://news.ycombinator.com/item?id=39776199 [2] https://getludic.dev/docs/components [3] https://getludic.dev/catalog/layouts#sidebar
Whoah, this comment section is surreal. People really aren't bothered by the propensity for runtime errors in python? How slow it is? That it has no good features for managing complexity in large codebasea? The fact that abstractions like these pretty much always break, or at some point you want to do something more outside of the box, and you have to put in a monumental effort? I'm working on a Django+graphQL app an…
Slow is if you need to download MBs worth of JS frameworks. I love that this is usable without JS if you want to. Also the abstractions around HTML seem to be very thin so I don't really get your pint there. GraphQL seems to be a performance killer too, so maybe just use simple, boring SQL?
OT: is there a reason to open/close the DocType at the beginning of the homepage source?
No. It's not in the spec, and in almost 30 years of web development, this might be the first time I've ever seen someone use a closing tag for it.