Earlier quoted context omitted.
What I meant was that are a lot of like minded developers here who cringe every time they have to hear how JS is going to teleport us from Earth to Mars. And since there are no bonus cookies that can won by proving that you can create a functional website simply by using some good old HTML with CSS and vanilla JS, a lot of us resort to being silent and enjoy the show! So, what do ya say? Would you React the same way?…
It's funny because in writing my previous reply to you I felt a momentary sense of inclusion into a special club, I did think something along the lines of "should I just enjoy the show" and then on reflection I realised that taking such a stance would be equivalent to having no voice at all, and it would also essentially evaporate my chances to learn anything new from the good folk here as it would set up a "me vs th…
Microsoft Fast Design
171–180 of 216 posts
Re: Microsoft Fast Design
#172(Yes, yes. You can switch some of the site to light mode and, besides, you're an elite uber-hacker and white text on black background is totally easier on your eyes, and you always read everything like that since blahblahblahblahblah. Uh-huh. There's reasons we've been printing with black ink on white paper for 500 years.)
Re: Microsoft Fast Design
#173Re: Microsoft Fast Design
#174I love seeing a wider adoption of webcomponents, but I have some complaints about this library, mainly because they're really pushing the whole, "lightweight and low memory" lines. Take a look at the accordian component (the very first one in their system) and check it out in the dom inspector - it has a shadowroot that has precisely one child: a element. In this situation a shadowroot does nothing to help. All it me…
Just curious - where did you learn this level of detail w.r.t DOM, and what would you recommend I take a look at to learn it the right way?
https://github.com/Polymer/tachometer
I.e. for testing shadowroot performance, I threw this together: https://github.com/jjcm/shadowTests
You can see the results here: https://raw.githubusercontent.com/jjcm/shadowTests/master/re...
TL;DR - a custom element with no shadowroot is about twice as fast.
Re: Microsoft Fast Design
#175I love seeing a wider adoption of webcomponents, but I have some complaints about this library, mainly because they're really pushing the whole, "lightweight and low memory" lines. Take a look at the accordian component (the very first one in their system) and check it out in the dom inspector - it has a shadowroot that has precisely one child: a element. In this situation a shadowroot does nothing to help. All it me…
To clear my understanding of your first statement, you're saying that their "lightweight / low memory" claim is invalidated by components having one unnecessary level of nesting in DOM?
The results are here: https://raw.githubusercontent.com/jjcm/shadowTests/master/re...
TL;DR - the withShadow element takes about twice as long to render as the withoutShadow element. Don't use them unnecessarily.
Re: Microsoft Fast Design
#176Re: Microsoft Fast Design
#177Re: Microsoft Fast Design
#178Web Components, as a standard, remain problematic. Among other things, they fail to address the critical need for server-side rendering.
Re: Microsoft Fast Design
#179Even though they may be slow and have an unusable API, Web Components being built into browsers means they will continue to work long after React, Vue, etc. are all dead and unmaintained.
Re: Microsoft Fast Design
#180Even though they may be slow and have an unusable API, Web Components being built into browsers means they will continue to work long after React, Vue, etc. are all dead and unmaintained.
What makes you say web components are slow or have an unstable API?
In benchmarks WC scales very poorly compared to React. It just wasn't designed for performance. I could go on.
- strings as the only native serialization format
- templates are also strings
- messages are passed to children as attributes which are strings
- no way to take advantage of efficient tree algorithms (virtual DOM), just manipulate a giant string every tick like a caveman