by pcr910303 · 6y ago · 0 comments
According to the instructions:
> The exports of this package can generally be thought of as un-styled base components that implement semantic and accessible markup and behavior.
> it exports parts and pieces intended to be composed into Web Components, allowing you to implement your own design language by simply applying CSS styles and behaviors without having to write all the JavaScript that's involved in building production-quality component implementations.
Which means... if I want to make my own components, I can just take this package and don't worry about making broken components. Since the core HTML/JS is properly taken care (by MS, hopefully) I can less worry about re-implementing keyboard access, or things like accessibility which is hard to do properly. This is IMO huge, and should be more universal.
---
As a jaded old web developer I've seen so many frameworks along the way all promising this and that.
Can someone who is familiar with this answer me this: Does this framework automatically sort out ARIA standards for me? Like tab ordering and stuff is dealt with automatically?
I know it seems I am being lazy but I am just fed up.
"FAST is a collection of JavaScript packages centered around web standards, designed to help you efficiently tackle some of the most common challenges in website and application design and development."
COOL! (/s)
"Have you ever needed a reusable set of UI components that you could drop into your app and have an amazing experience? That's FAST."
UNIQUE! (/s)
"Have you ever needed to create your own components, and share them across your company, including across groups that use different, incompatible front-end frameworks? That's FAST."
<record scratch>
Different, incompatible front-end frameworks?
So like, this shit is magic that will let me streamline components between my Oceania team's WordPress and my German team's Magento frontends?
And I don't have to learn any new paradigm to make this work?
I don't have to use their specific, custom HTML in order to leverage it? https://www.fast.design/docs/components/accordion
SWEET! (/s)
Come on. We'd have to re-write everything to use this library specifically, and train our teams.
Honestly this is to me just another bunch of shit that will get tacked into projects and have to be known and supported, because some sprightly young thing will convince management this is the panacea to seemingly redundant development work.
What's the actual selling point here.
But I have used react, vue, jquery, and my favourite which is just plain old JS and to me this is just generating templates with a different DOM structure and class semantics. IDK it just seems like this is not something I'd want to retrofit but would have to adopt as a standard to see any value long-term over a bunch of projects.
Usually I am more measured in my responses but this time I tried to just say what I am thinking (screw my ignorance) so maybe I can learn a thing or two.
Thanks for responding.
That is not how web components work. Web components are just HTML elements, so any framework that can use HTML can use web components. That's what sharing across different, incompatible frameworks means.
What's the main advantage here? That we have a standardised way of writing HTML markup so that CSS / JS knows how to operate on it?
I'm almost certainly coming across as "old man yells at cloud" (lol just realised a pun there) but what would you say is the best resource for me to go and upskill so I can see the actual value in this for me and / or my teams in the future?
Since frameworks define their own component model, components are typically incompatible between frameworks. You can't use an Angular component in React because React defines a different model.
This leads to huge fragmentation across the ecosystem and internally within large companies, and a waste of effort to reimplement components in each framework.
Web components are a standard component model where the _browser_ is effectively the framework. It calls the component lifecycle, and to other userland JS code, or HTML markup processors, web components act like any other HTML element. It's like being able able to add your own elements to the HTML spec.
Web components only specify the interface between the components and the DOM, they don't specify how the components are implemented. So you see several libraries that help implement web components. These libraries usually do a subset of what a framework does: main templating and reacting to state changes. They don't do the component model part of a framework.
Fast is another library that helps you build web components. Polymer was probably the first, and currently there are Polymer's LitElement, Ionic's Stencil, Salesforce's Lightning, and many more. They're all compatible with each other and with frameworks because the libraries only manage the internals of the components, the externals are standard.
In general those who use these frameworks are ok with adding build complexity if they allow to avoid, at least a little bit, problems that can come from lack of standardization and one-off solutions to deceptively simple problems, taking care of edge cases your team is likely to find but unlikely to think beforehand.
-- which depend on Javascript and have no good answer to "what about SSR"?
https://docs.microsoft.com/en-us/aspnet/web-forms/videos/how...