3 ms·
The main problems I have with Polymer: * It's cumbersome to install. apt-get install npm && npm install bower && bower install ... this is about when I give up
by dheera 9y ago
The main problems I have with Polymer:
* It's cumbersome to install. apt-get install npm && npm install bower && bower install ... this is about when I give up. Why not just include a 'polymer.js' file that just does all the work, no installs needed, no questions asked, CDN provided, batteries included, like every other client-side JavaScript library on the planet? Even the appropriate CSS can be loaded by the JavaScript itself, but it isn't.
* Bloated. You end up downloading several hundred kilobytes of JavaScript if your webapp uses more than a few different types of UI elements.
* Polymer components don't behave like native components. For example, you cannot swipe between tabs like a ViewPager does on Android. Implementing any kind of swipe-based feedback is hard, including pull-to-refresh. Back to native programming, I guess.
* For having so much marketing and PR and a camel-cased name "WebComponents", you would think it would be productized enough that it employ the appropriate native Android elements at least in Google Chrome on Android, and use the HTML5 substitutes on iOS and desktop. For example, you should replace the Polymer button with an actual styled Android button instead of a nested div hell. Chrome should have worked with the Polymer team on this. Not doing this has serious performance implications when you display thousands of items (e.g. lists of results, contact lists) each with their own nested div hell. Back to native programming, I guess.
* There is no framework to make apps look iOSish on iOS and Androidish on Android. Back to native programming, I guess.
- nilliams 9y agoLooks like they're working on moving away from bower: https://github.com/Polymer/polymer/issues/326#issuecomment-303148878 https://github.com/Polymer/polymer/issues/326#issuecomment-3... A quick CDN get-started would be convenient I agree. There is Polymer-CDN for demos/code-pens: https://github.com/download/polymer-cdn https://github.com/download/polymer-cdn The 'native' stuff in your comment I don't agree with. You want browsers to start implementing native Android ListViews/Buttons etc? Browsers have a hard enough time implementing web standards.
- Can_Not 9y ago> It's cumbersome to install. apt-get install npm && npm install bower && bower install ... this is about when I give up Half the things I've ever installed were far more complicated than that.
- dheera 9y agoHonestly I never understand why they need to be so complicated. If you want people to use your product, why not make it easy to use it? This goes for developers too -- who should be spending their time coding their product, not dealing with how to install stuff.
- alwillis 9y agoThere is no framework to make apps look iOSish on iOS and Androidish on Android. Back to native programming, I guess. Google's Flutter certainly creates apps (using mostly web technologies) that have the correct look and feel for Android and iOS from the same codebase. Keynote: Flutter (Dart Developer Summit 2016)»https://www.youtube.com/watch?v=Mx-AllVZ1VY https://www.youtube.com/watch?v=Mx-AllVZ1VY