News for hackers. Stuff that matters.
Re:The Frontend Treadmill by nobleach on Friday March 21, 2025 @09:56AM (#43435758)
But it's based on the fetch standard and formData submission. You're literally running a server that handles those two things.
Re:The Frontend Treadmill by nullpoint420 on Friday March 21, 2025 @06:32PM (#43441439)
My point being, it's "based on" Web Standards, it is _not_ Web Standards.

What if I use `fetcher.submit(data, { encType: "application/json" })`? Why not just use fetch directly at that point? I believe it adds a layer of indirectness that just wasn't there before.

If web standards are so important, why don't we use `window.fetch` and `new FormData()` directly instead of wrapping it?

Re:The Frontend Treadmill by nullpoint420 on Friday March 21, 2025 @06:34PM (#43441462)
My favorite example of this being JSON gets converted to FormData on the frontend, which then gets POST-ed to the server, which then converts it to JSON on the backend.