News for hackers. Stuff that matters.
Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @04:16AM (#18237149)
Web components are not supported in many popular browsers. Until they are widely supported they are not a thing. And no, Polymer and co are not polyfills for them, they are their own incompatible frameworks.

I agree in principle but it's up to browser vendors to implement specs, and it is always the same offender that is dragging his feet.

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @05:19AM (#18237432)
Edge and Firefox are only missing Shadow DOM and Custom Elements, which they are already developing.

On mobile Web 100% of the browsers support Web Components.

https://www.webcomponents.org/

So what are the many popular browsers you refer to? As anything else is meaningless.

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @06:24AM (#18237719)
> Edge and Firefox are only missing Shadow DOM and Custom Elements,

Your statement makes no sense whatsoever, they are "only missing" 2 of the most fundamental features of web components? that would actually help getting rid of all these incompatible UI toolkits? I don't call that supporting Web Components at all if you can't write custom elements natively. You obviously do not understand how the lack of support for custom element and shadow DOM affects Web Components adoption.

Not supporting 2/3 of a spec is not being compliant with that spec, obviously.

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @06:48AM (#18237823)
Apparently you haven't read my comment as you missed "which they are already developing." and "100% support on mobile Web" part.

Plus there are polyfills available for the meantime.

So what other browsers are many popular?

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @06:57AM (#18237863)
> Apparently you haven't read my comment as you missed "which they are already developing." part.

Apparently you haven't read my first comment either, since you can't tell the difference between "a spec is implemented" and "planning to implement a spec" which you obviously count as "a spec is implemented" for you or you would have refrained from making your first comment.

And no, there is no polyfills for shadow DOM or Custom Element, that's a lie. Polymer is not a Polyfill for Web Components, it's his own framework.

As for your question, I'm talking about browsers that do not support Custom Elements right now. Edge does not.

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @07:56AM (#18238100)
100% on mobile Web.

Firefox already on beta.

As for Edge it is already in development, and to be honest it doesn't matter with its insignificant market share.

When Microsoft employees use only Chrome at BUILD to show Azure and .NET Core MVC features, the writing is on the wall how relevant the browser is on the market.

Still you keep running away to clarify what "many browsers" means.

Maybe it is my lack of native English skills, but Edge being a single browser is far away from being "many browsers", even if we include Firefox until they get out of beta, two still does not make "many browsers".

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @08:19AM (#18238221)
> As for Edge it is already in development, and to be honest it doesn't matter with its insignificant market share.

Market shares are not the same across countries, clients or even industries. That's the first mistake you are making. If I develop a product, I target whatever browser my customers use, not some world wide statistic that has very little local significance.

You just don't get to ignore what goes against your point just to feel that you are winning an argument, that's childish.

> 100% on mobile Web.

Which is False, Firefox on Android doesn't support web components.

> Firefox already on beta.

Which doesn't matter if support has not shipped. "will ship" is not "has shipped". I am only interested in current support, as we speak, I was never talking about "will eventually ship" since I don't work with eventual features, obviously.

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @08:36AM (#18238341)
Firefox on mobile does not count for the majority of companies.

Mobile web is all about Safari and Chrome.

Again you keep avoiding to explain what "many browsers" means.

Re:Evergreen: a React UI Framework built by Segment by jimsmart on Wednesday October 17, 2018 @05:20PM (#18243920)
According to netmarketshare[0], on desktop[1], Edge currently has 3.8% market share, more than Safari and Opera together. Combining mobile+desktop Edge has 2%.

Edge cannot be ignored if one is serious about any kind of business: that's 3-4 out of every 100 desktop users (existing or potential customers), or 'just' 2/100 if one includes mobile.

— Honestly, it seems that you are trolling. But I post the above stats in case you are not. But I also back it up with my own personal 'anecdata': I build business-to-business ecommerce, in our specific market our users are primarily (>95%) using desktop browsers, we have many thousands of existing business relationships, we cannot mandate which browsers they use — we draw the line at having the site simply work in all "modern browsers", which obviously includes Edge.

It doesn't really matter whether it's "many browsers" that don't support Web Components, or whether it's just one major browser. For many businesses, choosing WC is simply not a viable option for the foreseeable future.

[0] No affiliation, just googled it. [1] https://netmarketshare.com/browser-market-share.aspx

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Thursday October 18, 2018 @01:41AM (#18246163)
You are reading it wrong, it is not me that mandates the browsers.

I have written already in multiple answers, it is the customers that decide which browsers should a given project support, by explicitly stating them on the project delivery contract.

So your customers care about EDGE, fine. Many don't.

Re:Evergreen: a React UI Framework built by Segment by losvedir on Wednesday October 17, 2018 @09:17AM (#18238615)
> As for Edge it is already in development, and to be honest it doesn't matter with its insignificant market share.

Er, really? I use Edge. It's just what's standard on the Windows machine I bought. I can't imagine that it has insignificant market share...

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @09:50AM (#18238908)
Check how many BUILD 2018 videos presentations were done in Chrome and how many were using Edge.

As for actual market share, http://gs.statcounter.com/browser-market-share

Re:Evergreen: a React UI Framework built by Segment by losvedir on Wednesday October 17, 2018 @09:53AM (#18238951)
Hm, maybe I missed the context somewhere along the lines. Are you talking about something on the developer side only? I thought the discussion was about something that works or not for the end user.
Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @12:41PM (#18240833)
No, I mean the browsers that are part of accepting testing from project delivery contracts.

If it doesn't make the list, it is a nice to have only, in case someone on the team bothers with it.

Microsoft by using mostly Chrome at BUILD 2018 has given the sign to many businesses that it isn't worthwhile to list EDGE as a requirement.

Re:Evergreen: a React UI Framework built by Segment by zurn on Wednesday October 17, 2018 @08:43AM (#18238385)
The "polyfills in the mean time" status has continued since 2013, it's not clear that there is a lot of momentum.
Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @08:59AM (#18238495)
Well, FX 63 ships next week, and Edge update their roadmap from considering to implementing: https://twitter.com/kylealden/status/1047240569439711232.

So Edge is the only browser missing 100% native support right now.

Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @06:37AM (#18237772)
Edge is implementing (updated the roadmap), Firefox ships enabled WC's in closest release (it is already in the beta) I think Firefox 63 will ship in a week?.

That leaves only IE11/Edge with polyfills.

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @07:00AM (#18237874)
> That leaves only IE11/Edge with polyfills.

what polyfills are you talking about? And no, Polymer is not a polyfill for custom element. Please link me to a library that will polyfill the entire shadow DOM and Custom Element spec so that I can write the same code without polyfills on platforms that support both specs and only load the polyfills on platforms that do not.

Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @08:23AM (#18238243)
https://github.com/webcomponents/webcomponentsjs - all frameworks use same polyfill.

https://github.com/vuejs/vue-web-component-wrapper

"You will also need the Shady DOM + Custom Elements polyfill." from Vue docs. Same polyfills are used by svelte etc.

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @08:00AM (#18238119)
https://github.com/WebComponents/webcomponentsjs

Quote from the readme.

" A suite of polyfills supporting the Web Components specs:

Custom Elements v1: allows authors to define their own custom tags (spec, tutorial, polyfill).

Shadow DOM v1: provides encapsulation by hiding DOM subtrees under shadow roots (spec, tutorial, shadydom polyfill, shadycss polyfill). "

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @08:25AM (#18238260)
.
Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @08:26AM (#18238267)
What do you think youtube, ing, netflix, or EA properties use? ;)
Re:Evergreen: a React UI Framework built by Segment by rb666 on Wednesday October 17, 2018 @06:57AM (#18237862)
Well, I mean, it's 1 week away from release...

https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Rel...

Re:Evergreen: a React UI Framework built by Segment by aikah on Wednesday October 17, 2018 @06:58AM (#18237865)
Well you mean it's 1 week away from release in Edge as well? Give me an ETA for Edge.
Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @08:24AM (#18238253)
Their roadmap was JUST updated, do probably few months.
Re:Evergreen: a React UI Framework built by Segment by dschep on Wednesday October 17, 2018 @08:26AM (#18238266)
> Edge and Firefox are only missing Shadow DOM and Custom Elements, which they are already developing.

> On mobile Web 100% of the browsers support Web Components.

Wait. Which is it? Or are you ignoring Firefox Mobile?

Re:Evergreen: a React UI Framework built by Segment by pjmlp on Wednesday October 17, 2018 @08:31AM (#18238304)
I know that is not what HN likes to read, but iOS == Safari and Android == Chrome, and unless customer explicitly requires Firefox Mobile on the RFP, it gets ignored in acceptance testing for project delivery.
Re:Evergreen: a React UI Framework built by Segment by ergo14 on Wednesday October 17, 2018 @06:39AM (#18237782)
Yup, Polymer is "big" dependency, but with things like svelte, litelement or stencil you can build web components which have little overhead.

Also polyfills are separate thing from polymer - they are reused by ALL other frameworks including vuejs for example, so I'm not sure what you meant by that comment.