#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Key Takeaways
Answers questions about Polymer, including explanations of PolyGit and iron-ajax, in a Q&A session with Rob
Full Transcript
Hey there, Polycasters. Rob here. I just wanted to welcome you to this brand new segment we're doing on our show called Ask Polymer. Every other week, we're going to do this. We're going to have you send in questions on a social network of your choosing. You got some sort of crazy earworm. Something you want to know about Polymer, but you're not quite sure about, you send those in, you hashtag it, ask Polymer, and we will answer it. All right. Question number one comes from Kenneth who writes in and asks, "Didn't you mention that there would be a CDN for Polymer or something like that? Is that going to be rolling out anytime soon?" Now, in the past, we've uh we've actually encouraged people not to use CDNs with HTML imports because they would have a hard time dduplicating their dependencies. If they're all coming from different domains, the dduping mechanism can't really figure out, you know, where there are uh copies of things. But at the recent Polymer Summit, we showed off a new project we've been working on called Polygit. Adi Osmani did an entire talk where he included Polygit as one of the segments in there showing how you could use it in your projects. The idea with Polygit is that it's actually kind of our own magic server. It uses the GitHub, the raw GitHub API as kind of a CDN-like thing. So, it's great for experimenting. Not quite ready for production though. You don't want to be taking Polygit and using it in a real project. But if you're doing something like a like a JS bin or a little sample, you just want to show something off or prototype, it's perfect for that. And we hope kind of in the long term that Polygate will eventually be production ready. So that could be our CDN solution down the line. So thank you Kenneth for sending that question in. All right, our next question comes from Andrew who asks, "When will Polymer and Angular play nice together?" So great question Andrew. This is actually something you know a lot of people ask. They want to know about Polymer and Angular or Polymer and React or, you know, some other framework. The main reason why many of those frameworks have a hard time working with Polymer today is that pretty much all of them predate web components and so they're not quite sure how to work with things like ShadowDOM. Now, once we have ShadowDOM shipping natively everywhere, the story actually gets a little bit better because it hides and it sort of encapsulates a lot of the things that the web components are doing behind the scenes so the frameworks don't need to know about it. But right now, we're still in this little in between place. we've got polyfills for shadowdom and that can trip up some of these frameworks. So when we get native shadowdom everywhere things will be a lot better also with something like you know specifically for Angular in Angular 2 they've been rewriting their data binding system so it'll work better with the sort of events that polymer elements fire and they'll also be able to handle shadowdom better. They've got a whole sort of shadowdom renderer that they're working on. So thank you Andrew really great question. All right our next question comes from Rory who asks what is your favorite custom element. All right this is a pretty good question. Thank you, Rory, for sending that in. Uh, my favorite custom element is either iron local storage or iron Ajax, which we just did an episode on. So, you can actually go back and watch the previous episode of Polycast, learn all about how to use that element. And the reason why I like both of these is because they're nice declarative data providers. So, I can just sort of wire them up in my application and then persist some data or fetch some data and I don't have to write like any JavaScript to do that, which I don't know, it just makes it a lot easier for me to build apps. So thank you Rory. Really great question. Our next question comes from Andre who asks why did polymer choose to use Bower as its package manager and you know what about something like npm? Are there plans to switch to that in the future? So great question Andre. The reason why we originally went with Bower is because it gives you this nice flat dependency structure when it installs everything and that's really important for HTML imports. Inpends to nest things and that can kind of confuse the system. Now in npm3 they've done a lot of work to improve on this dduplication mechanism. So now you can get flat directories in npm 3 but the one thing that you can't do is conflict resolution and that's actually really important for us. We want to make sure that people aren't installing or you know getting the wrong version of something and getting some weird errors. So in a future version of npm it sounds like they're going to fix that and at that point we'll probably switch over to using that as our package manager. So thank you Andre really great question. All right, our last question comes from David, who asks, "Mosilla has recently said that they're not going to implement HTML imports, instead preferring ES6 modules." So, what are your thoughts about that? So, great question, David. Uh, we actually talked about this a little bit at the Polymer Summit, so you check that out over here. And basically, the long and short of it is Mozilla has said that they're not implementing them yet. They didn't say that they're never going to implement them. And we've been doing a lot of work on the loader spec recently, which is what under the hood both modules and imports depend upon. And what we'd like to maybe see in the future is perhaps both systems using the same mechanism under the hood. And then you could have modules as the imperative flavor. You could have imports as the declarative flavor and developers could benefit from both. So that is the long-term plan. We're going to continue working with Mozilla on that to see where we get. So again, uh, thank you David. Really great question. Okay. Thank you all who sent in those questions. A lot of really great stuff. Uh we didn't get to everything, but we're going to try to get to them in our future episodes. So, be sure to click that little subscribe button down there so you can get notifications as those roll out. If you yourself have questions, you can leave them down in the comments or ping us on a social network of your choosing at # askpolymer. As always, thank you so much for watching and I'll see you next time. Hola Polycast.
Original Description
We’re trying something new here on Polycasts. If you have questions for the team send them in on a social network of your choosing with the hashtag #AskPolymer and we’ll try to answer them on air!
Read more
Addy Osmani explains PolyGit
https://www.youtube.com/watch?v=LMqM4PfrFxs&feature=youtu.be&t=26m54s
PolyGit.org
https://polygit.org/
iron-ajax...wat?!
https://www.youtube.com/watch?v=k1eR_3KqJms&list=PLNYkxOF6rcIDdS7HWIC_BYRunV6MHs5xo&index=1
Polymer Team responds to HTML Imports questions
https://youtu.be/mw0ozps3jLM?t=19m46s
Get more information:
Polygit.org
Polymer Slack: http://bit.ly/polymerslack
For more great Polycast videos subscribe to the Chrome Developers channel at: https://goo.gl/OUF4e2
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from Chrome for Developers · Chrome for Developers · 9 of 60
1
2
3
4
5
6
7
8
▶
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Polymer Performance Patterns (The Polymer Summit 2015)
Chrome for Developers
Polymer Power Tools (The Polymer Summit 2015)
Chrome for Developers
Chrome Dev Summit 2014 – Chrome Case Studies
Chrome for Developers
Web Directions Code 2015 round up
Chrome for Developers
Maintainable Code - HTTP203
Chrome for Developers
iron-ajax… wat?! -- Polycasts #26
Chrome for Developers
The Guardian - Supercharged
Chrome for Developers
ES2015 (next version of JavaScript), Totally Tooling Tips (S2 Ep1)
Chrome for Developers
#AskPolymer: Rob answers all the questions ever -- Polycasts #27
Chrome for Developers
The Future of JavaScript - HTTP203
Chrome for Developers
Data Binding 101 -- Polycasts #28
Chrome for Developers
The Guardian part 2 - Supercharged
Chrome for Developers
The Future of Web Audio: with Chris Wilson and Chris Lowis
Chrome for Developers
Chrome 46: New motion-path animations, client hints and service worker improvements
Chrome for Developers
Sublime Snippets, Totally Tooling Tips (S2 Ep2)
Chrome for Developers
#AskPolymer: How do you make the show? -- Polycasts #29
Chrome for Developers
Critical Path CSS, Totally Tooling Tips (S2 Mini Tip #1)
Chrome for Developers
Binding to Objects -- Polycasts #30
Chrome for Developers
Player FM - Supercharged
Chrome for Developers
Where’s the Designer? #AskPolymer -- Polycasts #31
Chrome for Developers
Jake Beats Wikipedia - HTTP203
Chrome for Developers
Supercharged Observers! -- Polycasts #32
Chrome for Developers
Jai's Web blog - Supercharged
Chrome for Developers
Windows Command-line Tooling, Totally Tooling Tips (S2, Ep4)
Chrome for Developers
What about internationalization? #AskPolymer -- Polycasts #33
Chrome for Developers
Developing for Billions (Chrome Dev Summit 2015)
Chrome for Developers
Google+ Performance Improvement Comparison
Chrome for Developers
Deploying HTTPS: The Green Lock and Beyond (Chrome Dev Summit 2015)
Chrome for Developers
Progressive Web Apps (Chrome Dev Summit 2015)
Chrome for Developers
Instant Loading with Service Workers (Chrome Dev Summit 2015)
Chrome for Developers
Increase Engagement with Web Push Notifications (Chrome Dev Summit 2015)
Chrome for Developers
Engaging with the Real World: Web Bluetooth and Physical Web (Chrome Dev Summit 2015)
Chrome for Developers
Asking for Permission: respectful, opinionated UI (Chrome Dev Summit 2015)
Chrome for Developers
Polymer - State of the Union (Chrome Dev Summit 2015)
Chrome for Developers
Building Progressive Web Apps with Polymer (Chrome Dev Summit 2015)
Chrome for Developers
Introduction to RAIL (Chrome Dev Summit 2015)
Chrome for Developers
DevTools in 2015: Authoring to the max (Chrome Dev Summit 2015)
Chrome for Developers
RAIL in the real world (Chrome Dev Summit 2015)
Chrome for Developers
#ChromeDevSummit talks are up - W00T! -- Polycast #34
Chrome for Developers
V8 Performance from the Driver's Seat (Chrome Dev Summit 2015)
Chrome for Developers
Quantify and improve real-world RAIL (Chrome Dev Summit 2015)
Chrome for Developers
Owning your performance: RAIL (Chrome Dev Summit 2015)
Chrome for Developers
HTTP/2 101 (Chrome Dev Summit 2015)
Chrome for Developers
Leadership Panel (Chrome Dev Summit 2015)
Chrome for Developers
Build Processes, Totally Tooling Tips (S2, Ep 5)
Chrome for Developers
Accessibility (Chrome Dev Summit 2015)
Chrome for Developers
Binding to Arrays -- Polycasts #35
Chrome for Developers
HTTP2 - HTTP203
Chrome for Developers
Chrome 47: Splash Screens, requestIdleCallback and better desktop notifications (New in Chrome)
Chrome for Developers
Call For Submissions - Supercharged
Chrome for Developers
Cross Device Testing, Totally Tooling Tips (S2 Ep6)
Chrome for Developers
Testing AJAX with Web Component Tester -- Polycasts #37
Chrome for Developers
Slack: Extended Xmas Special - Supercharged
Chrome for Developers
Browser testing with Travis & Sauce Labs -- Polycasts #38
Chrome for Developers
Optimize for production with Vulcanize -- Polycasts #39
Chrome for Developers
Highlights from Chrome Dev Summit 2015
Chrome for Developers
Chrome 48: Custom buttons in notifications, DevTools Security panel, and Presentation mode
Chrome for Developers
Crisper: Protecting your Polymer app with CSP -- Polycasts #40
Chrome for Developers
How do I use Sass with Polymer? #AskPolymer -- Polycasts #41
Chrome for Developers
Colors – DevTools Tonight #0 (Pilot)
Chrome for Developers
Related Reads
📰
📰
📰
📰
Rendering Lists and Handling Events
Dev.to · Silas
React Explained: JSX, Components, Virtual DOM & Diffing Algorithm
Dev.to · Saravanan Lakshmanan
The “Wiz” Merger: How Google’s Internal Framework is Rewriting Angular
Medium · JavaScript
Day-3 of Posting blog (Lists in html)
Dev.to · antony stark
🎓
Tutor Explanation
DeepCamp AI