SlideShare a Scribd company logo
Submit Search
Upload
Modular JavaScript
Report
Share
S
Sander Mak (@Sander_Mak)
Follow
•
6 likes
•
4,079 views
1
of
38
Modular JavaScript
•
6 likes
•
4,079 views
Report
Share
Download Now
Download to read offline
Technology
As presented at JavaOne 2013
Read more
S
Sander Mak (@Sander_Mak)
Follow
Recommended
Java 9 Modularity in Action by
Java 9 Modularity in Action
Sander Mak (@Sander_Mak)
8.5K views
•
49 slides
Desiging for Modularity with Java 9 by
Desiging for Modularity with Java 9
Sander Mak (@Sander_Mak)
1.9K views
•
80 slides
Scala & Lift (JEEConf 2012) by
Scala & Lift (JEEConf 2012)
Sander Mak (@Sander_Mak)
2.5K views
•
33 slides
Java 9 modularity by
Java 9 modularity
Knoldus Inc.
1.3K views
•
18 slides
Modular Java by
Modular Java
Martin Toshev
3K views
•
69 slides
Modules or microservices? by
Modules or microservices?
Sander Mak (@Sander_Mak)
5.9K views
•
117 slides
More Related Content
What's hot
Modular Java applications with OSGi on Apache Karaf by
Modular Java applications with OSGi on Apache Karaf
Ioan Eugen Stan
1.9K views
•
18 slides
Karaf ee-apachecon eu-2012 by
Karaf ee-apachecon eu-2012
Charles Moulliard
6.2K views
•
52 slides
Java modules using project jigsaw@jdk 9 by
Java modules using project jigsaw@jdk 9
Mauricio "Maltron" Leal
617 views
•
21 slides
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016) by
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)
Robert Scholte
1.7K views
•
52 slides
OSGi & Java EE in GlassFish by
OSGi & Java EE in GlassFish
Sanjeeb Sahoo
4.8K views
•
25 slides
Java Modularity with OSGi by
Java Modularity with OSGi
Ilya Rybak
18.9K views
•
58 slides
What's hot
(20)
Modular Java applications with OSGi on Apache Karaf by Ioan Eugen Stan
Modular Java applications with OSGi on Apache Karaf
Ioan Eugen Stan
•
1.9K views
Karaf ee-apachecon eu-2012 by Charles Moulliard
Karaf ee-apachecon eu-2012
Charles Moulliard
•
6.2K views
Java modules using project jigsaw@jdk 9 by Mauricio "Maltron" Leal
Java modules using project jigsaw@jdk 9
Mauricio "Maltron" Leal
•
617 views
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016) by Robert Scholte
Java 9 and the impact on Maven Projects (ApacheCon Europe 2016)
Robert Scholte
•
1.7K views
OSGi & Java EE in GlassFish by Sanjeeb Sahoo
OSGi & Java EE in GlassFish
Sanjeeb Sahoo
•
4.8K views
Java Modularity with OSGi by Ilya Rybak
Java Modularity with OSGi
Ilya Rybak
•
18.9K views
Polygot Java EE on the GraalVM by Ryan Cuprak
Polygot Java EE on the GraalVM
Ryan Cuprak
•
1K views
OSGi and Java EE: A Hybrid Approach to Enterprise Java Application Development by Sanjeeb Sahoo
OSGi and Java EE: A Hybrid Approach to Enterprise Java Application Development
Sanjeeb Sahoo
•
2.8K views
The Making of the Oracle R2DBC Driver and How to Take Your Code from Synchron... by VMware Tanzu
The Making of the Oracle R2DBC Driver and How to Take Your Code from Synchron...
VMware Tanzu
•
689 views
Apache, osgi and karaf par Guillaume Nodet by Normandy JUG
Apache, osgi and karaf par Guillaume Nodet
Normandy JUG
•
2.3K views
Real World Java 9 by J On The Beach
Real World Java 9
J On The Beach
•
116 views
GlassFish v3 Prelude Aquarium Paris by Alexis Moussine-Pouchkine
GlassFish v3 Prelude Aquarium Paris
Alexis Moussine-Pouchkine
•
771 views
Spring Boot on Amazon Web Services with Spring Cloud AWS by VMware Tanzu
Spring Boot on Amazon Web Services with Spring Cloud AWS
VMware Tanzu
•
1.2K views
JVMs in Containers by David Delabassee
JVMs in Containers
David Delabassee
•
1.3K views
Nuxeo WebEngine and GlassFish v3 by Nuxeo
Nuxeo WebEngine and GlassFish v3
Nuxeo
•
495 views
Next.js with drupal, the good parts by Taller Negócio Digitais
Next.js with drupal, the good parts
Taller Negócio Digitais
•
3K views
GlassFish v3, OSGi Equinox Felix by Ludovic Champenois
GlassFish v3, OSGi Equinox Felix
Ludovic Champenois
•
1.7K views
Micronaut Deep Dive - Devoxx Belgium 2019 by graemerocher
Micronaut Deep Dive - Devoxx Belgium 2019
graemerocher
•
1.4K views
Project Fuji/OpenESB Aquarium Paris by Alexis Moussine-Pouchkine
Project Fuji/OpenESB Aquarium Paris
Alexis Moussine-Pouchkine
•
813 views
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011 by Arun Gupta
Deploying Java EE 6 Apps in a Cluster: GlassFish 3.1 at Dallas Tech Fest 2011
Arun Gupta
•
2.3K views
Viewers also liked
Modularity in the Cloud by
Modularity in the Cloud
Sander Mak (@Sander_Mak)
2.6K views
•
34 slides
Cross-Build Injection attacks: how safe is your Java build? by
Cross-Build Injection attacks: how safe is your Java build?
Sander Mak (@Sander_Mak)
3.7K views
•
38 slides
Hibernate Performance Tuning (JEEConf 2012) by
Hibernate Performance Tuning (JEEConf 2012)
Sander Mak (@Sander_Mak)
9.4K views
•
54 slides
Ferguson - Legislator's Report Card by
Ferguson - Legislator's Report Card
biferguson
336 views
•
10 slides
Google Doc Ch4 by
Google Doc Ch4
Warren Yip
300 views
•
3 slides
張望 佛門攝影 by
張望 佛門攝影
Huanyin Cheng
537 views
•
57 slides
Viewers also liked
(20)
Modularity in the Cloud by Sander Mak (@Sander_Mak)
Modularity in the Cloud
Sander Mak (@Sander_Mak)
•
2.6K views
Cross-Build Injection attacks: how safe is your Java build? by Sander Mak (@Sander_Mak)
Cross-Build Injection attacks: how safe is your Java build?
Sander Mak (@Sander_Mak)
•
3.7K views
Hibernate Performance Tuning (JEEConf 2012) by Sander Mak (@Sander_Mak)
Hibernate Performance Tuning (JEEConf 2012)
Sander Mak (@Sander_Mak)
•
9.4K views
Ferguson - Legislator's Report Card by biferguson
Ferguson - Legislator's Report Card
biferguson
•
336 views
Google Doc Ch4 by Warren Yip
Google Doc Ch4
Warren Yip
•
300 views
張望 佛門攝影 by Huanyin Cheng
張望 佛門攝影
Huanyin Cheng
•
537 views
Mlc For Cities Introduction To The Concept by MultiLingualCity
Mlc For Cities Introduction To The Concept
MultiLingualCity
•
281 views
Presentatie W Wsop Design Plein by francienvaneersel
Presentatie W Wsop Design Plein
francienvaneersel
•
178 views
AUX Cities by Los Angeles Accessibility and Inclusive Design Group
AUX Cities
Los Angeles Accessibility and Inclusive Design Group
•
476 views
Teenager by ericboy20032003
Teenager
ericboy20032003
•
206 views
Presentation2[1] by o.m.garcia
Presentation2[1]
o.m.garcia
•
178 views
Dialogbaseret Aftalestyring Powerpoint øKonomiudvalget 4. December 07 by ibsis
Dialogbaseret Aftalestyring Powerpoint øKonomiudvalget 4. December 07
ibsis
•
398 views
La Narracion by mgartal
La Narracion
mgartal
•
456 views
Presentation Skills - Session One by Kevin Smith
Presentation Skills - Session One
Kevin Smith
•
730 views
Presentacion I Cities 2009 by Fernando Martin
Presentacion I Cities 2009
Fernando Martin
•
444 views
智慧生活科技的察覺與反思-營造舒適減壓的睡眠空間 by 開放式概念發表平臺
智慧生活科技的察覺與反思-營造舒適減壓的睡眠空間
開放式概念發表平臺
•
567 views
Communication 1 by waikirikiri bilingual school
Communication 1
waikirikiri bilingual school
•
324 views
Don't Get Stung by Barry Dorrans
Don't Get Stung
Barry Dorrans
•
6.5K views
Unenclosable by AlanRosenblith
Unenclosable
AlanRosenblith
•
291 views
Vip Program by Proforma Amplified by Jim Hanika
Vip Program by Proforma Amplified
Jim Hanika
•
398 views
Similar to Modular JavaScript
Modular JavaScript by
Modular JavaScript
NLJUG
1.2K views
•
59 slides
Modular JavaScript in an OSGi World - S Mak by
Modular JavaScript in an OSGi World - S Mak
mfrancis
6.3K views
•
68 slides
Java 7 Modularity: a View from the Gallery by
Java 7 Modularity: a View from the Gallery
njbartlett
3.3K views
•
123 slides
Java 9, JShell, and Modularity by
Java 9, JShell, and Modularity
Mohammad Hossein Rimaz
1.2K views
•
60 slides
Javantura v4 - What’s NOT new in modular Java - Milen Dyankov by
Javantura v4 - What’s NOT new in modular Java - Milen Dyankov
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
1K views
•
69 slides
Moved to https://slidr.io/azzazzel/what-s-not-new-in-modular-java by
Moved to https://slidr.io/azzazzel/what-s-not-new-in-modular-java
Milen Dyankov
26.7K views
•
70 slides
Similar to Modular JavaScript
(20)
Modular JavaScript by NLJUG
Modular JavaScript
NLJUG
•
1.2K views
Modular JavaScript in an OSGi World - S Mak by mfrancis
Modular JavaScript in an OSGi World - S Mak
mfrancis
•
6.3K views
Java 7 Modularity: a View from the Gallery by njbartlett
Java 7 Modularity: a View from the Gallery
njbartlett
•
3.3K views
Java 9, JShell, and Modularity by Mohammad Hossein Rimaz
Java 9, JShell, and Modularity
Mohammad Hossein Rimaz
•
1.2K views
Javantura v4 - What’s NOT new in modular Java - Milen Dyankov by HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
Javantura v4 - What’s NOT new in modular Java - Milen Dyankov
HUJAK - Hrvatska udruga Java korisnika / Croatian Java User Association
•
1K views
Moved to https://slidr.io/azzazzel/what-s-not-new-in-modular-java by Milen Dyankov
Moved to https://slidr.io/azzazzel/what-s-not-new-in-modular-java
Milen Dyankov
•
26.7K views
Java modularity: life after Java 9 by Sander Mak (@Sander_Mak)
Java modularity: life after Java 9
Sander Mak (@Sander_Mak)
•
4.4K views
50+ java interview questions by SynergisticMedia
50+ java interview questions
SynergisticMedia
•
62 views
Why gradle by Sercan Karaoglu
Why gradle
Sercan Karaoglu
•
813 views
Modular Java EE in the Cloud by Bert Ertman
Modular Java EE in the Cloud
Bert Ertman
•
2K views
Get the Top 6 new features in Java 2019 by Aegis Softtech
Get the Top 6 new features in Java 2019
Aegis Softtech
•
273 views
Java 9 New Features by Ali BAKAN
Java 9 New Features
Ali BAKAN
•
196 views
Java interview question by varatharajanrajeswar
Java interview question
varatharajanrajeswar
•
123 views
Managing modular software for your nu get, c++ and java development by Baruch Sadogursky
Managing modular software for your nu get, c++ and java development
Baruch Sadogursky
•
1.5K views
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015 by Mariano Gonzalez
Zero Downtime with OSGi - Chicago Coder Conference 05-15-2015
Mariano Gonzalez
•
1.5K views
SOLID Design principles by Mohamed Sanaulla
SOLID Design principles
Mohamed Sanaulla
•
3.5K views
How to not suck at JavaScript by tmont
How to not suck at JavaScript
tmont
•
4.1K views
Advanced Node.JS Meetup by LINAGORA
Advanced Node.JS Meetup
LINAGORA
•
2K views
1 by ksuthesan
1
ksuthesan
•
180 views
Android interview questions by satish reddy
Android interview questions
satish reddy
•
460 views
More from Sander Mak (@Sander_Mak)
Scalable Application Development @ Picnic by
Scalable Application Development @ Picnic
Sander Mak (@Sander_Mak)
239 views
•
20 slides
Coding Your Way to Java 13 by
Coding Your Way to Java 13
Sander Mak (@Sander_Mak)
414 views
•
80 slides
Coding Your Way to Java 12 by
Coding Your Way to Java 12
Sander Mak (@Sander_Mak)
2K views
•
69 slides
Java Modularity: the Year After by
Java Modularity: the Year After
Sander Mak (@Sander_Mak)
913 views
•
109 slides
Migrating to Java 9 Modules by
Migrating to Java 9 Modules
Sander Mak (@Sander_Mak)
5.5K views
•
60 slides
Provisioning the IoT by
Provisioning the IoT
Sander Mak (@Sander_Mak)
4.4K views
•
38 slides
More from Sander Mak (@Sander_Mak)
(20)
Scalable Application Development @ Picnic by Sander Mak (@Sander_Mak)
Scalable Application Development @ Picnic
Sander Mak (@Sander_Mak)
•
239 views
Coding Your Way to Java 13 by Sander Mak (@Sander_Mak)
Coding Your Way to Java 13
Sander Mak (@Sander_Mak)
•
414 views
Coding Your Way to Java 12 by Sander Mak (@Sander_Mak)
Coding Your Way to Java 12
Sander Mak (@Sander_Mak)
•
2K views
Java Modularity: the Year After by Sander Mak (@Sander_Mak)
Java Modularity: the Year After
Sander Mak (@Sander_Mak)
•
913 views
Migrating to Java 9 Modules by Sander Mak (@Sander_Mak)
Migrating to Java 9 Modules
Sander Mak (@Sander_Mak)
•
5.5K views
Provisioning the IoT by Sander Mak (@Sander_Mak)
Provisioning the IoT
Sander Mak (@Sander_Mak)
•
4.4K views
Event-sourced architectures with Akka by Sander Mak (@Sander_Mak)
Event-sourced architectures with Akka
Sander Mak (@Sander_Mak)
•
27.8K views
TypeScript: coding JavaScript without the pain by Sander Mak (@Sander_Mak)
TypeScript: coding JavaScript without the pain
Sander Mak (@Sander_Mak)
•
17K views
The Ultimate Dependency Manager Shootout (QCon NY 2014) by Sander Mak (@Sander_Mak)
The Ultimate Dependency Manager Shootout (QCon NY 2014)
Sander Mak (@Sander_Mak)
•
1.5K views
Akka (BeJUG) by Sander Mak (@Sander_Mak)
Akka (BeJUG)
Sander Mak (@Sander_Mak)
•
1.8K views
Fork Join (BeJUG 2012) by Sander Mak (@Sander_Mak)
Fork Join (BeJUG 2012)
Sander Mak (@Sander_Mak)
•
2.1K views
Fork/Join for Fun and Profit! by Sander Mak (@Sander_Mak)
Fork/Join for Fun and Profit!
Sander Mak (@Sander_Mak)
•
1.7K views
Kscope11 recap by Sander Mak (@Sander_Mak)
Kscope11 recap
Sander Mak (@Sander_Mak)
•
636 views
Java 7: Fork/Join, Invokedynamic and the future by Sander Mak (@Sander_Mak)
Java 7: Fork/Join, Invokedynamic and the future
Sander Mak (@Sander_Mak)
•
1.5K views
Scala and Lift by Sander Mak (@Sander_Mak)
Scala and Lift
Sander Mak (@Sander_Mak)
•
7.6K views
Elevate your webapps with Scala and Lift by Sander Mak (@Sander_Mak)
Elevate your webapps with Scala and Lift
Sander Mak (@Sander_Mak)
•
3.2K views
Hibernate performance tuning by Sander Mak (@Sander_Mak)
Hibernate performance tuning
Sander Mak (@Sander_Mak)
•
29.6K views
JDK7: Improved support for dynamic languages by Sander Mak (@Sander_Mak)
JDK7: Improved support for dynamic languages
Sander Mak (@Sander_Mak)
•
1.9K views
Scala: functional programming for the imperative mind by Sander Mak (@Sander_Mak)
Scala: functional programming for the imperative mind
Sander Mak (@Sander_Mak)
•
5K views
Recursion Pattern Analysis and Feedback by Sander Mak (@Sander_Mak)
Recursion Pattern Analysis and Feedback
Sander Mak (@Sander_Mak)
•
1K views
Recently uploaded
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue
179 views
•
7 slides
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue
123 views
•
28 slides
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue
117 views
•
25 slides
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue
88 views
•
9 slides
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue
85 views
•
10 slides
The Role of Patterns in the Era of Large Language Models by
The Role of Patterns in the Era of Large Language Models
Yunyao Li
80 views
•
65 slides
Recently uploaded
(20)
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue
•
179 views
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... by ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue
•
123 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue
•
117 views
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ by ShapeBlue
Confidence in CloudStack - Aron Wagner, Nathan Gleason - Americ
ShapeBlue
•
88 views
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... by ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue
•
85 views
The Role of Patterns in the Era of Large Language Models by Yunyao Li
The Role of Patterns in the Era of Large Language Models
Yunyao Li
•
80 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue
•
112 views
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool by ShapeBlue
Extending KVM Host HA for Non-NFS Storage - Alex Ivanov - StorPool
ShapeBlue
•
84 views
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda... by ShapeBlue
Hypervisor Agnostic DRS in CloudStack - Brief overview & demo - Vishesh Jinda...
ShapeBlue
•
120 views
The Power of Heat Decarbonisation Plans in the Built Environment by IES VE
The Power of Heat Decarbonisation Plans in the Built Environment
IES VE
•
69 views
DRBD Deep Dive - Philipp Reisner - LINBIT by ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue
•
140 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... by ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue
•
144 views
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue by ShapeBlue
VNF Integration and Support in CloudStack - Wei Zhou - ShapeBlue
ShapeBlue
•
163 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue
•
154 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... by TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc
•
160 views
Future of AR - Facebook Presentation by Rob McCarty
Future of AR - Facebook Presentation
Rob McCarty
•
62 views
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava... by ShapeBlue
Centralized Logging Feature in CloudStack using ELK and Grafana - Kiran Chava...
ShapeBlue
•
101 views
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading... by The Digital Insurer
Webinar : Desperately Seeking Transformation - Part 2: Insights from leading...
The Digital Insurer
•
86 views
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or... by ShapeBlue
Zero to Cloud Hero: Crafting a Private Cloud from Scratch with XCP-ng, Xen Or...
ShapeBlue
•
158 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue
•
94 views
Modular JavaScript
1.
Modular JavaScript @sander_mak @pbakker
2.
Modularity
3.
intro JavaScript
4.
pitfalls JS
5.
Module
6.
Systems Java
7.
+
8.
JavaScript
9.
modularity
10.
Why
11.
Modularity?
12.
Modularity is key
13.
to maintainable code
14.
Modularity 101 Encapsulation Maintainability Flexible composition Sanity
15.
Modularity 101 Remember
16.
Java? Low
17.
Coupling High
18.
Cohesion
19.
Modularity in Java Bundle
A + package org.myapi - package org.myapi.impl - package org.util Bundle B + package org.other.api Bundle C + package org.other.impl Imports Imports
20.
Modularity in Java The
21.
only
22.
modularity
23.
solution
24.
for
25.
Java
26.
today OSGi
27.
Why modularity in
JavaScript? We
28.
run
29.
into
30.
the
31.
same
32.
maintainability
33.
problems
34.
as
35.
on
36.
the
37.
server
38.
side... So... 20% 80% Java JavaScript 50% 50% then
now
39.
Text And
40.
it
41.
might
42.
even
43.
be
44.
worse....
45.
JavaScript Modularity 101 Globals
46.
Anonymous functions Anonymous
47.
functions
48.
prevent
49.
putting
50.
something
51.
in
52.
global
53.
scope This
54.
method
55.
executes,
56.
but
57.
is
58.
not
59.
visible
60.
in
61.
global
62.
scope
63.
Namespacing: a common
approach This only makes things slightly better... We still force myLibrary into global scope! static names
64.
Leaking visibility Do
65.
not
66.
make
67.
private
68.
methods
69.
public! myhelper
70.
is
71.
now
72.
public public
73.
Leaking visibility Instead: myhelper
74.
is
75.
now
76.
private
77.
Comparing
78.
JavaScript
79.
Module
80.
Systems
81.
Module Wish list Browser
82.
support Stable Available
83.
now Specified Manage dependencies
84.
Module options Asynchronous
85.
Module
86.
Definition CommonJS ES6
87.
Harmony
88.
Modules
89.
Module comparison AMD C.JS ES6 Spec-by- GitHub Spec-by- Wiki Ecma standard (in
90.
progress) Spec? Impls? RequireJS Curl.js ... Browserify Node.js ... Browser first Server first Both Environment - Where can
you play with ES6 modules? Traceur?
91.
Module comparison AMD C.JS ES6 Yes No No Async? Format? Objects Functions ... Objects Available? Yes Yes No Objects Functions ...
92.
Module comparison AMD CommonJS ES6
93.
HarmonyRevise with latest syntax
94.
Universal
95.
Module
96.
Definition Can’t we have
it all?
97.
NO!Pick
98.
one. And
99.
stick
100.
with
101.
it. (unless
102.
you
103.
are
104.
a
105.
library
106.
author)
107.
Why RequireJS? Robust
108.
AMD
109.
implementation Browser-based,
110.
no
111.
build
112.
step Lazy-loading Optimizer:
113.
r.js Backwards
114.
compat.
115.
with
116.
globals jQuery
117.
supports
118.
AMD
119.
RequireJS: end-to-end index.html main.js That.
120.
Is.
121.
All. mymodule-1.2.js
122.
RequireJS: ‘advanced’ Require Require Named Modules Conditional Dependencies
123.
From legacy to
modules Globals RequireJS
124.
Shims
125.
Another example AngularJS
126.
Services
127.
model Dependency
128.
Injection What
129.
about
130.
well
131.
defined
132.
interfaces? What
133.
about
134.
dynamic
135.
services? Why
136.
a
137.
second
138.
module
139.
definition?
140.
Service definition
141.
Dependency Injection Injecting the
service
142.
Modularity
143.
across
144.
the
145.
wire
146.
RESTful
147.
Web
148.
Service JS
149.
Module JS
150.
Module JS
151.
Module RESTful
152.
Web
153.
Service A typical web
application
154.
admin.general.ui admin.login.rest admin.orders.ui admin.products.ui admin.security customers.rest frontend.filters frontend.ui orders.rest products.rest orders.mongo
customers.mongo products.mongo search.rest search.indexer
155.
Demo bit.ly/modularjs
156.
What about... ‘The
157.
Future’
158.
Future-proof modules Modularizing
159.
was
160.
the
161.
hard
162.
part.
163.
Tech
164.
is
165.
secondary ‘Transpile’
166.
ES
167.
6
168.
modules Google
169.
Traceur
170.
or
171.
Square’s
172.
ES
173.
transpiler But:
174.
spec
175.
far
176.
from
177.
final Library
178.
author:
179.
UMD Otherwise,
180.
just
181.
pick
182.
one
183.
Future:
184.
JavaScript services https://github.com/osgi/design/raw/master/rfps/ rfp-0159-JavaScript-Microservices.pdf OSGi RFP
159 JavaScript
185.
Micro
186.
Services
187.
Questions? @sander_mak @pbakker bit.ly/modularjs