Polymer vs other libraries (Devfest Ukraine 2015)

J
Other libraries
Polymer vs
Jakub Škvára
Full-stack Engineer @ Shipito
Polymer
“jQuery for web components”
#dfua
Polymer - use your own HTML elements
<head>
<html>
<!-- Import element -->
<link rel="import"
href="components/google-map/google-map.html">
</head>
<body>
<!-- Use element -->
<google-map latitude="50.066354" longitude="14.402736"
zoom="14.402736"></google-map>
#dfua
Polymer element
<dom-module id="my-element">
<link rel="import" type="css" href="my-element.css">
<template>
<p>My element</p>
</template>
<script>
Polymer({
is: 'my-element'
});
</script>
</dom-module>
Components benefits
#dfua
Encapsulation
#dfua
Configuration
#dfua
Composable
#dfua
Decoupling
Polymer advantages
#dfua
Speed of development
#dfua
Rich forms
#dfua
Special elements
#dfua
Material design
Angular vs Polymer vs React
#dfua
Angular Directives
angular.module('helloWorldDirective', [])
.controller('Controller', ['$scope', function($scope) {
$scope.hello = {who: 'Devfest'};
}])
.directive('myHelloWorld', function() {
return {
template: 'Hello {{hello.who}}'
};
});
<div ng-controller="Controller">
<my-hello-world></my-hello-world>
</div>
#dfua
Angular vs Polymer
● MVC Framework
● $scope
● Angular template system
● View Library
● encapsulation (Shadow DOM)
● W3C standards + Polyfills
#dfua
● Angular 2.0 directives - same as Polymer Web Components
● Different binding system
○ Changes from Polymer don’t push changes to Angular
○ bindPolymer and ng-polymer-elements directives for
Angular
Angular + Polymer
<input type="text" ng-model="text"/>
<input is="iron-input" ng-model="text"/>
<paper-input ng-model="text""></paper-input>
#dfua
React Components
var HelloWorld = React.createClass({
render: function() {
return (
<div className="helloWorld">
Hello {this.props.who}!
</div>
);
}
});
ReactDOM.render(
<HelloWorld who="Lviv" />,
document.getElementById('content')
);
#dfua
React vs Polymer
● Virtual DOM
● Server-side rendering
● One-way data flow
● Custom Elements
● Portability
● Two-way data binding
#dfua
● Render Web Components with React
● react-polymer library
○ https://github.com/jscissr/react-polymer
React + Polymer
import polymerReact from 'polymer-react';
import React from 'react';
import {PaperInput} from 'polymer-react/input';
<PaperInput value={this.state.value} onChange={this.valueChanged} />
Angular Polymer React
#dfua
DOM
Shadow DOMNormal DOM Virtual DOM
#dfua
DOM updates
Observe
functions that
manipulate the DOM
$watch Tree comparison
#dfua
CSS
Component stylesCSS styles Page or inline
Styles
#dfua
Template
<template>HTML string,
<script> or
external file
JSX
#dfua
Content
<content>Transclusion props.children
#dfua
Data binding
Two-way
One-way
Object.observe()
Two-way
One-way
$watch
One-way
(Flux)
#dfua
Life cycle
Asynchronous
(Created, Ready)
Synchronous
(compile + link)
Mount + update
Let’s try polymer
with your current framework
Workshop: Let's build a new
Polymer application
Tomorrow 16:00
Community hall
Thank you!
Questions?Questions?
@skvaros
+JakubSkvara
www.jakubskvara.cz
1 of 32

Recommended

Polymer by
Polymer Polymer
Polymer jskvara
4.8K views20 slides
Google Polymer Introduction by
Google Polymer IntroductionGoogle Polymer Introduction
Google Polymer IntroductionDavid Price
1.4K views13 slides
Google Polymer Framework by
Google Polymer FrameworkGoogle Polymer Framework
Google Polymer FrameworkKostas Karolemeas
796 views30 slides
Polymer, A Web Component Polyfill Library by
Polymer, A Web Component Polyfill LibraryPolymer, A Web Component Polyfill Library
Polymer, A Web Component Polyfill Librarynaohito maeda
832 views32 slides
Polymer and web component by
Polymer and web componentPolymer and web component
Polymer and web componentImam Raza
1.4K views25 slides
How to build a web application with Polymer by
How to build a web application with PolymerHow to build a web application with Polymer
How to build a web application with PolymerSami Suo-Heikki
3.7K views49 slides

More Related Content

What's hot

Introduction to Web Components by
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web ComponentsFu Cheng
7.2K views36 slides
Polymer & the web components revolution 6:25:14 by
Polymer & the web components revolution 6:25:14Polymer & the web components revolution 6:25:14
Polymer & the web components revolution 6:25:14mattsmcnulty
4.2K views98 slides
Web Components & Polymer 1.0 (Webinale Berlin) by
Web Components & Polymer 1.0 (Webinale Berlin)Web Components & Polymer 1.0 (Webinale Berlin)
Web Components & Polymer 1.0 (Webinale Berlin)Hendrik Ebbers
2.3K views96 slides
Building a Secure App with Google Polymer and Java / Spring by
Building a Secure App with Google Polymer and Java / SpringBuilding a Secure App with Google Polymer and Java / Spring
Building a Secure App with Google Polymer and Java / Springsdeeg
14K views33 slides
Booting up with polymer by
Booting up with polymerBooting up with polymer
Booting up with polymerMarcus Hellberg
690 views51 slides
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17 by
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17GreeceJS
452 views30 slides

What's hot(20)

Introduction to Web Components by Fu Cheng
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
Fu Cheng7.2K views
Polymer & the web components revolution 6:25:14 by mattsmcnulty
Polymer & the web components revolution 6:25:14Polymer & the web components revolution 6:25:14
Polymer & the web components revolution 6:25:14
mattsmcnulty4.2K views
Web Components & Polymer 1.0 (Webinale Berlin) by Hendrik Ebbers
Web Components & Polymer 1.0 (Webinale Berlin)Web Components & Polymer 1.0 (Webinale Berlin)
Web Components & Polymer 1.0 (Webinale Berlin)
Hendrik Ebbers2.3K views
Building a Secure App with Google Polymer and Java / Spring by sdeeg
Building a Secure App with Google Polymer and Java / SpringBuilding a Secure App with Google Polymer and Java / Spring
Building a Secure App with Google Polymer and Java / Spring
sdeeg14K views
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17 by GreeceJS
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
GreeceJS452 views
Levent-Gurses' Introduction to Web Components & Polymer by Erik Isaksen
Levent-Gurses' Introduction to Web Components & PolymerLevent-Gurses' Introduction to Web Components & Polymer
Levent-Gurses' Introduction to Web Components & Polymer
Erik Isaksen2.7K views
Polymer - Welcome to the Future @ PyGrunn 08/07/2014 by Spyros Ioakeimidis
Polymer - Welcome to the Future @ PyGrunn 08/07/2014Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Spyros Ioakeimidis81.6K views
Web Components + Backbone: a Game-Changing Combination by Andrew Rota
Web Components + Backbone: a Game-Changing CombinationWeb Components + Backbone: a Game-Changing Combination
Web Components + Backbone: a Game-Changing Combination
Andrew Rota30.3K views
Web Components and Modular CSS by Andrew Rota
Web Components and Modular CSSWeb Components and Modular CSS
Web Components and Modular CSS
Andrew Rota2.2K views
Unlock the next era of UI design with Polymer by Rob Dodson
Unlock the next era of UI design with PolymerUnlock the next era of UI design with Polymer
Unlock the next era of UI design with Polymer
Rob Dodson10.5K views
Introduction to Web Components by Rich Bradshaw
Introduction to Web ComponentsIntroduction to Web Components
Introduction to Web Components
Rich Bradshaw855 views
A brave new web - A talk about Web Components by Michiel De Mey
A brave new web - A talk about Web ComponentsA brave new web - A talk about Web Components
A brave new web - A talk about Web Components
Michiel De Mey663 views
Custom Elements with Polymer Web Components #econfpsu16 by John Riviello
Custom Elements with Polymer Web Components #econfpsu16Custom Elements with Polymer Web Components #econfpsu16
Custom Elements with Polymer Web Components #econfpsu16
John Riviello1.4K views
Web Components Everywhere by Ilia Idakiev
Web Components EverywhereWeb Components Everywhere
Web Components Everywhere
Ilia Idakiev1.3K views
The Complementarity of React and Web Components by Andrew Rota
The Complementarity of React and Web ComponentsThe Complementarity of React and Web Components
The Complementarity of React and Web Components
Andrew Rota32.3K views
Modern Web Application Development Workflow - EclipseCon Europe 2014 by Stéphane Bégaudeau
Modern Web Application Development Workflow - EclipseCon Europe 2014Modern Web Application Development Workflow - EclipseCon Europe 2014
Modern Web Application Development Workflow - EclipseCon Europe 2014

Similar to Polymer vs other libraries (Devfest Ukraine 2015)

The Structure of Web Code: A Case For Polymer, November 1, 2014 by
The Structure of Web Code: A Case For Polymer, November 1, 2014The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014Tommie Gannert
816 views60 slides
Polymer Code Lab in Dart - DevFest Kraków 2014 by
Polymer Code Lab in Dart - DevFest Kraków 2014Polymer Code Lab in Dart - DevFest Kraków 2014
Polymer Code Lab in Dart - DevFest Kraków 2014jskvara
860 views16 slides
HTML5, The Open Web, and what it means for you - Altran by
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - AltranRobert Nyman
6.4K views85 slides
Александр Кашеверов - Polymer by
Александр Кашеверов - PolymerАлександр Кашеверов - Polymer
Александр Кашеверов - PolymerDataArt
549 views38 slides
Desbravando Web Components by
Desbravando Web ComponentsDesbravando Web Components
Desbravando Web ComponentsMateus Ortiz
591 views75 slides
HTML5 workshop, part 1 by
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1Robert Nyman
5.7K views66 slides

Similar to Polymer vs other libraries (Devfest Ukraine 2015)(20)

The Structure of Web Code: A Case For Polymer, November 1, 2014 by Tommie Gannert
The Structure of Web Code: A Case For Polymer, November 1, 2014The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014
Tommie Gannert816 views
Polymer Code Lab in Dart - DevFest Kraków 2014 by jskvara
Polymer Code Lab in Dart - DevFest Kraków 2014Polymer Code Lab in Dart - DevFest Kraków 2014
Polymer Code Lab in Dart - DevFest Kraków 2014
jskvara860 views
HTML5, The Open Web, and what it means for you - Altran by Robert Nyman
HTML5, The Open Web, and what it means for you - AltranHTML5, The Open Web, and what it means for you - Altran
HTML5, The Open Web, and what it means for you - Altran
Robert Nyman6.4K views
Александр Кашеверов - Polymer by DataArt
Александр Кашеверов - PolymerАлександр Кашеверов - Polymer
Александр Кашеверов - Polymer
DataArt549 views
Desbravando Web Components by Mateus Ortiz
Desbravando Web ComponentsDesbravando Web Components
Desbravando Web Components
Mateus Ortiz591 views
HTML5 workshop, part 1 by Robert Nyman
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1
Robert Nyman5.7K views
Web components - An Introduction by cherukumilli2
Web components - An IntroductionWeb components - An Introduction
Web components - An Introduction
cherukumilli2414 views
Index of jquery template 2 Minuteman Summer Web Dev. by Daniel Downs
Index of jquery template 2 Minuteman Summer Web Dev.Index of jquery template 2 Minuteman Summer Web Dev.
Index of jquery template 2 Minuteman Summer Web Dev.
Daniel Downs1.1K views
Polymer - Lego for the web! by Codemotion
Polymer - Lego for the web!Polymer - Lego for the web!
Polymer - Lego for the web!
Codemotion1K views
Aurelia Meetup Paris by Ahmed Radjdi
Aurelia Meetup ParisAurelia Meetup Paris
Aurelia Meetup Paris
Ahmed Radjdi953 views
Speak The Web: The HTML5 Experiments by guestd427df
Speak The Web: The HTML5 ExperimentsSpeak The Web: The HTML5 Experiments
Speak The Web: The HTML5 Experiments
guestd427df701 views
Web Components for Java Developers by Joonas Lehtinen
Web Components for Java DevelopersWeb Components for Java Developers
Web Components for Java Developers
Joonas Lehtinen31.7K views
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012 by crokitta
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
Oracle Application Express & jQuery Mobile - OGh Apex Dag 2012
crokitta1.7K views
Resource registries plone conf 2014 by Ramon Navarro
Resource registries plone conf 2014Resource registries plone conf 2014
Resource registries plone conf 2014
Ramon Navarro1.4K views
The new static resources framework by marcplmer
The new static resources frameworkThe new static resources framework
The new static resources framework
marcplmer1.9K views
Html5 drupal7 with mandakini kumari(1) by Mandakini Kumari
Html5 drupal7 with mandakini kumari(1)Html5 drupal7 with mandakini kumari(1)
Html5 drupal7 with mandakini kumari(1)
Mandakini Kumari1.5K views
20190118_NetadashiMeetup#8_React2019 by Makoto Mori
20190118_NetadashiMeetup#8_React201920190118_NetadashiMeetup#8_React2019
20190118_NetadashiMeetup#8_React2019
Makoto Mori201 views
Resource Registries: Plone Conference 2014 by Rob Gietema
Resource Registries: Plone Conference 2014Resource Registries: Plone Conference 2014
Resource Registries: Plone Conference 2014
Rob Gietema571 views
Introduction to web components by Marc Bächinger
Introduction to web componentsIntroduction to web components
Introduction to web components
Marc Bächinger2.4K views

Recently uploaded

BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports by
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsRa'Fat Al-Msie'deen
8 views49 slides
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with... by
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...sparkfabrik
5 views46 slides
Quality Engineer: A Day in the Life by
Quality Engineer: A Day in the LifeQuality Engineer: A Day in the Life
Quality Engineer: A Day in the LifeJohn Valentino
6 views18 slides
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut... by
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...Deltares
7 views28 slides
AI and Ml presentation .pptx by
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptxFayazAli87
11 views15 slides
SAP FOR CONTRACT MANUFACTURING.pdf by
SAP FOR CONTRACT MANUFACTURING.pdfSAP FOR CONTRACT MANUFACTURING.pdf
SAP FOR CONTRACT MANUFACTURING.pdfVirendra Rai, PMP
13 views2 slides

Recently uploaded(20)

BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports by Ra'Fat Al-Msie'deen
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug ReportsBushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
BushraDBR: An Automatic Approach to Retrieving Duplicate Bug Reports
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with... by sparkfabrik
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
20231129 - Platform @ localhost 2023 - Application-driven infrastructure with...
sparkfabrik5 views
Quality Engineer: A Day in the Life by John Valentino
Quality Engineer: A Day in the LifeQuality Engineer: A Day in the Life
Quality Engineer: A Day in the Life
John Valentino6 views
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut... by Deltares
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
DSD-INT 2023 Machine learning in hydraulic engineering - Exploring unseen fut...
Deltares7 views
AI and Ml presentation .pptx by FayazAli87
AI and Ml presentation .pptxAI and Ml presentation .pptx
AI and Ml presentation .pptx
FayazAli8711 views
Software evolution understanding: Automatic extraction of software identifier... by Ra'Fat Al-Msie'deen
Software evolution understanding: Automatic extraction of software identifier...Software evolution understanding: Automatic extraction of software identifier...
Software evolution understanding: Automatic extraction of software identifier...
360 graden fabriek by info33492
360 graden fabriek360 graden fabriek
360 graden fabriek
info3349238 views
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t... by Deltares
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
DSD-INT 2023 Thermobaricity in 3D DCSM-FM - taking pressure into account in t...
Deltares9 views
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx by animuscrm
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
2023-November-Schneider Electric-Meetup-BCN Admin Group.pptx
animuscrm14 views
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft... by Deltares
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...
DSD-INT 2023 Process-based modelling of salt marsh development coupling Delft...
Deltares7 views
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema by Deltares
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - GeertsemaDSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
DSD-INT 2023 Delft3D FM Suite 2024.01 1D2D - Beta testing programme - Geertsema
Deltares17 views
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J... by Deltares
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
DSD-INT 2023 3D hydrodynamic modelling of microplastic transport in lakes - J...
Deltares9 views
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action by Márton Kodok
Gen Apps on Google Cloud PaLM2 and Codey APIs in ActionGen Apps on Google Cloud PaLM2 and Codey APIs in Action
Gen Apps on Google Cloud PaLM2 and Codey APIs in Action
Márton Kodok5 views
Navigating container technology for enhanced security by Niklas Saari by Metosin Oy
Navigating container technology for enhanced security by Niklas SaariNavigating container technology for enhanced security by Niklas Saari
Navigating container technology for enhanced security by Niklas Saari
Metosin Oy14 views
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra... by Marc Müller
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra....NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
.NET Developer Conference 2023 - .NET Microservices mit Dapr – zu viel Abstra...
Marc Müller38 views
Airline Booking Software by SharmiMehta
Airline Booking SoftwareAirline Booking Software
Airline Booking Software
SharmiMehta6 views
DSD-INT 2023 Simulating a falling apron in Delft3D 4 - Engineering Practice -... by Deltares
DSD-INT 2023 Simulating a falling apron in Delft3D 4 - Engineering Practice -...DSD-INT 2023 Simulating a falling apron in Delft3D 4 - Engineering Practice -...
DSD-INT 2023 Simulating a falling apron in Delft3D 4 - Engineering Practice -...
Deltares6 views

Polymer vs other libraries (Devfest Ukraine 2015)