News for hackers. Stuff that matters.
Re:FastUI: Build Better UIs Faster by slmjkdbtl on Saturday March 02, 2024 @02:59AM (#39570885)
What's the use case for this? Is doing a roundtrip to the server on every client interaction ever a good idea for building user facing UI?
Re:FastUI: Build Better UIs Faster by dgellow on Saturday March 02, 2024 @06:18AM (#39571789)
Internal tooling
Re:FastUI: Build Better UIs Faster by Culonavirus on Saturday March 02, 2024 @07:07AM (#39571994)
It's even called "FastUI", that is hilarious.
Re:FastUI: Build Better UIs Faster by jacobyoder on Saturday March 02, 2024 @10:36AM (#39573214)
Fast to develop, not necessarily as fast as a 'written and optimized by hand' UI.
Re:FastUI: Build Better UIs Faster by jasonjmcghee on Saturday March 02, 2024 @12:52PM (#39574270)
Have you used FastAPI? Certain functionality like file upload is mind blowingly slow.

FastX is popular these days.

Re:FastUI: Build Better UIs Faster by dralley on Saturday March 02, 2024 @02:41PM (#39575202)
Anyone have experience with Django Ninja?
Re:FastUI: Build Better UIs Faster by duckmysick on Sunday March 03, 2024 @10:08AM (#39581285)
I have trouble finding the FastX project you mentioned. Can you tell me its website?

The top results I get are for the Fast and Furious movie. After specifying the context ("API", "web", "framework") I get hits for remote desktop software which also has API:

https://www.starnet.com/fastx/ https://www.starnet.com/help/fastx-v3-api/

And "fastx python" returns a module for parsing FASTA files

https://pypi.org/project/pyfastx/

Re:FastUI: Build Better UIs Faster by jasonjmcghee on Sunday March 03, 2024 @06:59PM (#39585672)
Sorry for the confusion. I just meant, naming something "Fast" and then a descriptor, has become very popular.

FastHTTP, FastGPT, FastChat, FastAI, FastLED, FastText, FastClick, FastHub, FastSAM

Most of these have 10s of thousands of stars on github.

https://github.com/search?q=fast&type=repositories

Re:FastUI: Build Better UIs Faster by __jonas on Saturday March 02, 2024 @10:04AM (#39573002)
> Is doing a roundtrip to the server on every client interaction ever a good idea for building user facing UI?

Hold on I thought HN is all hyped about HTMX now? Isn't that what that does too?

Re:FastUI: Build Better UIs Faster by Capricorn2481 on Saturday March 02, 2024 @10:58AM (#39573376)
Yes that's exactly what it does, and it's possible some people don't know that because they haven't had to think about that stuff at work. But I do think the ergonomics of HTMX are better. I would argue that lowers the barrier to doing exactly what you want, which will lead to less over fetching.
Re:FastUI: Build Better UIs Faster by jacobyoder on Saturday March 02, 2024 @10:35AM (#39573210)
It can be.

1. It can save a lot of repetitive boilerplate code

2. You can keep validation rules in one spot.

I've been working with some toolkits like these after years of 'backend api, frontend vue/react/angular' and it definitely can save a lot of time. It's not always the best fit, but there isn't one approach to all applications that is the best fit. Everything has tradeoffs.

Re:FastUI: Build Better UIs Faster by williamdclt on Saturday March 02, 2024 @11:43AM (#39573712)
Htmx and phoenix liveview do this, and they’re quite popular
Re:FastUI: Build Better UIs Faster by shmooper on Saturday March 02, 2024 @01:27PM (#39574604)
The ingenuity here is exactly not needing a roundtrip for every interaction. You request a page -> fastapi sends the client a json defining the components -> the frontend knows how to render this json into react components that run locally just like any other js framework.
Re:FastUI: Build Better UIs Faster by QuadmasterXLII on Saturday March 02, 2024 @01:56PM (#39574899)
I recieved a "secure patient portal message" in email from my doctor. Navigating to the actual message took 5 clicks, and each click involved waiting 3 to 12 seconds for pages to load, while all sorts of react-y things happened like hydration, spinning loading icons, placeholders. This is on gigabit internet with 50 ms ping. Shipping javascript to provide snappy UI has utterly failed, please let us go back to 1 round trip to the server for each client interaction.