News for hackers. Stuff that matters.
Re:Browsers, JSON, and FormData by mjburgess on Saturday November 12, 2022 @08:35AM (#33572903)
There's a lot of value in modern browsers asking "what are all these JS frameworks providing?" and providing primitives for the top 20% of features natively.

The existence of JS frameworks to build apps, in this sense, I think can be seen as a browser failure. The browser exists to provide a GUI for HTTP, and it's failing to provide "the common default" we now expect.

Re:Browsers, JSON, and FormData by TheRealPomax on Saturday November 12, 2022 @11:45AM (#33574714)
They tried, but made the mistake of stopping once the low-level stuff was done. Welcome to Webcomponents, it can do what you currently use Angular, Vue, or React for, but it only covers the plumbing, not the actual kitchen itself, so you either have to write your own kitchen, try to mimic the kitchens that vue/angular/react/etc already made, or use a kitchen made by someone else and hope that does everything you needed.

Which is an unfortunate side-effect of the whole "JS is about giving people APIs to make things with, not dictate what those things are" philosophy. In this specific case, that leads to APIs that technically cover the needs, while also offering exactly nothing that people can "just use" for writing UIs that are natively understood by the browser.

Re:Browsers, JSON, and FormData by nonethewiser on Saturday November 12, 2022 @11:54AM (#33574793)
What is the plumbing and kitchen in this context?
Re:Browsers, JSON, and FormData by moritzwarhier on Saturday November 12, 2022 @01:21PM (#33575565)
Plumbing = DOM updates and events, and in the case of Web Components, Shadow DOM for scope isolation. Kitchen = Declarative way to define DOM structures depending on application state. Plus optionally some conventions around updating application state. What it boils down to is "components".
Re:Browsers, JSON, and FormData by ctxc on Saturday November 12, 2022 @03:32PM (#33576739)
Meta: Plumbing and porcelain is the more popular pair.

https://git-scm.com/book/en/v2/Git-Internals-Plumbing-and-Po...