I see this as similar to the global scope in JavaScript. Yes, that’s the way the language works and it’s good to understand it, but modules are so much better for developers. Lowering cognitive overhead to get started is always a good thing.https://twitter.com/yoavweiss/status/1039434537317687296 …
-
Show this thread
-
Also similar: the argument over classes in JavaScript. A lot of people thought they were unnecessary but it really helps new-to-JS folks get a foothold.https://humanwhocodes.com/blog/2012/10/16/does-javascript-need-classes/ …
1 reply 2 retweets 10 likesShow this thread -
Replying to @slicknet
The motivation for us to push so hard for classes was that you should be able to "say what you mean" in your code. Same should be true in styling.
1 reply 0 retweets 2 likes -
Replying to @slightlylate @slicknet
This is why we built Shadow DOM, FWIW. SD isolates your styles so you're operating on a small tree based on the observation that CSS only works in the small.
1 reply 0 retweets 6 likes -
Replying to @slightlylate @slicknet
I'm obviously pretty disappointed that Mozilla and MSFT have dragged their feet for so long. It's transformational once you can rely on a true scoping mechanism.
2 replies 1 retweet 4 likes -
Replying to @slightlylate @slicknet
is there a clear justification for SD taking so long to ship? Is it just because it's complex and janky and hard to use so it isn't considered worth prioritizing?
2 replies 0 retweets 1 like -
you forgot "is it because it cannot be reliably polyfilled ?" in that list of questions
1 reply 0 retweets 1 like
That's the main reason to implement! Without broad native support, usage will remain low. Luckily we can use CE/SD everywhere that matters for mobile.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.