Re: [w3c/webcomponents] The is="" attribute is confusing? Maybe we should encourage only ES6 class-based extension. (#509)

> Instead of looking builtin elements as some sort of a magic box which provides a bag of functionalities and capabilities, we can decompose them into a small set of primitive APIs that let each element provide such capabilities.

This is exactly why I mentioned the Uncanny Valley of pseudo-native Custom Elements. We must carefully consider the resulting reality that the above will create if it's offered as the go-to, singular mechanism for leveraging native element functionality. Here's what I firmly believe will occur if you don't go with a "Yes, and" multiple choice implementation that includes `is` as an option for many cases:

Dev A: "I need a button that does X% of what a native button does, and I only care enough to wire up Y% of the remaining using @rniwa's roll-it-all-yourself solution, because it takes more code and effort."

Dev B "I want a button that does X% of what a native button does, and I only care enough to wire up Y% of the remaining using @rniwa's roll-it-all-yourself solution, because it takes more code and effort."

Dev C "I want a button that does X% of what a native button does, and I only care enough to wire up Y% of the remaining using @rniwa's roll-it-all-yourself solution, because it takes more code and effort."

Devs A, B, and C all add various bits of native button functionality to their 'buttons', some based on need, others based on time and effort, but all of them, even the ones who try to achieve nearly the same thing, will result in heterogeneous native-recreation attempts. What you end up with is hundreds of common button-esque implementations that are unintentionally jagged, just-off versions of native, expected button functionality.

That solution strategy is a bit like saying: "We realize most people just want to add new wheels or a stereo to a car they buy, but wouldn't it be super cool if the only way to get a car with custom wheels was to have the car and wheels shipped to your house as a giant pile of parts that you need to assemble yourself?!"

Please don't force drivers to roll their own cars from a pile of parts when all they want is to add custom wheels.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/509#issuecomment-281011489

Received on Monday, 20 February 2017 08:03:26 UTC