© 2015 [email protected] 1 Gabriel Dusil dusil.com [email protected].
Front-End Architecture for Large Scale Apps - Gabriel Zigolis
-
Upload
gabriel-gottgtroy-zigolis -
Category
Technology
-
view
1.323 -
download
0
Transcript of Front-End Architecture for Large Scale Apps - Gabriel Zigolis
![Page 1: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/1.jpg)
Gabriel Zigolis
SCALE APPSLARGE
FORARCHITECTURE
FRONT-END
![Page 2: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/2.jpg)
Front-End Architect at Arezzo@zigolis
![Page 3: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/3.jpg)
“Absolutely nothing”
FRONT-END
DO
ESWTFARCHITECTURE
A
DO
![Page 4: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/4.jpg)
FIRSTword that comes to
MIND…
![Page 5: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/5.jpg)
![Page 6: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/6.jpg)
![Page 7: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/7.jpg)
![Page 8: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/8.jpg)
![Page 9: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/9.jpg)
![Page 10: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/10.jpg)
![Page 11: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/11.jpg)
![Page 12: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/12.jpg)
JAVABAD?
SOIS
![Page 13: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/13.jpg)
![Page 14: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/14.jpg)
![Page 15: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/15.jpg)
WHAT’S THERESULT?OF THIS
![Page 16: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/16.jpg)
AND?THIS
![Page 17: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/17.jpg)
YOU ?THISKNOWDO
![Page 18: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/18.jpg)
MATTER?ITDOES REALLY
![Page 19: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/19.jpg)
HYBRIS
YES, IT MATTERS!
ATGWEBSPHERE
![Page 20: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/20.jpg)
WE DEVELOP FOR
DOWHY
IE 8,9…
![Page 21: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/21.jpg)
USERS!THEY ARE THE ANSWER.
![Page 22: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/22.jpg)
AREZZOCUSTOMERS
AGESYSTEM
BROWSER
20~65
90%GATES 15%
IE 8~9
![Page 23: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/23.jpg)
DOWHAT DOES IT MEAN
KNOW
YOU
?15% WEB
SELLS15$ IE
8~9
![Page 24: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/24.jpg)
THAT'STO SUPPORT THEM
WE NEED
WH
Y
![Page 25: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/25.jpg)
RESPONSIVE
MOBILE VERSIONOR?
![Page 26: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/26.jpg)
SCHUTZE-COMMERCE
20% WEB
SELLS4$ MOBILE
before responsive
![Page 27: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/27.jpg)
SCHUTZE-COMMERCE
-80%
after responsive
4$20% WEB
SELLS
![Page 28: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/28.jpg)
REQUIRE
BROWSERIFYOR
?
![Page 29: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/29.jpg)
Gabriel Zigolis, just a developer
“There’s no reason to compare them, they are completely different.”
Stop!
![Page 30: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/30.jpg)
NICE TO MEET YOU
I’m re
quire
();
![Page 31: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/31.jpg)
requirejs.org
“It's a Javascript file and module loader.Using a modular script loader like RequireJS will improve the speed
and quality of your code.”
require();
![Page 32: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/32.jpg)
HAVING
FUN WITH
![Page 33: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/33.jpg)
require(bodyClass);
![Page 34: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/34.jpg)
var configMap = [module];
![Page 35: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/35.jpg)
<body class="cart">
![Page 36: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/36.jpg)
GOINGbeyond the wall!!!
![Page 37: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/37.jpg)
COMMON
JSFILES
![Page 38: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/38.jpg)
require(general);
![Page 39: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/39.jpg)
var configMap = [general];
![Page 40: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/40.jpg)
define (general, []);
![Page 41: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/41.jpg)
DEMANDJS O
N
![Page 42: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/42.jpg)
LET’S in small pieces…THINK
![Page 43: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/43.jpg)
Gabriel Zigolis, just a developer
“It makes a lot of sense to only load fileswhen the user require them.”
Think!
![Page 44: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/44.jpg)
var configMap = [delivery];
![Page 45: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/45.jpg)
NEED TO WE
CODE!!!
![Page 46: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/46.jpg)
BACKBONE JS
ANGULAR JSOR?
![Page 47: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/47.jpg)
Gabriel Zigolis, just a developer
“It's so personal that becomes stupid to start an argument about it.”
Bullshit!
![Page 48: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/48.jpg)
backbonejs.org
“Gives structure to web applications by providing models, collections and views to consume API over
a RESTful JSON interface.”
![Page 49: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/49.jpg)
CHARACTERISTICS
• Powerful Javascript LIB
• Adaptable, inspired on MV* pattern
• Modern, widely used in SPA
• Completely skinny, bitch! Just 7.3kb (1.2.0)
![Page 50: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/50.jpg)
USE WHY
BACKBONE?or any other lib, framework…
![Page 51: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/51.jpg)
BECAUSEAPPS TH
E
GREW UP
![Page 52: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/52.jpg)
NEEDING
OrganizationArchitecture
Modularization
MORE
![Page 53: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/53.jpg)
Backbone Cart();
![Page 54: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/54.jpg)
Instancing features!
![Page 55: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/55.jpg)
WHERE IS
THEDELIVERY
?
![Page 56: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/56.jpg)
Delivery on demand!
![Page 57: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/57.jpg)
Backbone DeliveryView();
![Page 58: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/58.jpg)
Backbone DeliveryModel();
![Page 59: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/59.jpg)
Backbone Rocks!!!
![Page 60: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/60.jpg)
![Page 61: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/61.jpg)
WE do more…CAN
![Page 62: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/62.jpg)
OR?
![Page 63: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/63.jpg)
Gabriel Zigolis, just a developer
“Man, it’s up to you!”
Really, again?
![Page 64: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/64.jpg)
BACKBONE VIEW
REACTOR?
![Page 65: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/65.jpg)
Let’s talk!
![Page 66: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/66.jpg)
Gabriel Zigolis, just a developer
“There is no magic or perfect solution,just your necessity and sense!”
What’s the idea?
![Page 67: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/67.jpg)
![Page 68: Front-End Architecture for Large Scale Apps - Gabriel Zigolis](https://reader031.fdocuments.us/reader031/viewer/2022032715/55ad77991a28ab43128b4733/html5/thumbnails/68.jpg)
Gabriel Zigolis
@zigolis