-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
280 lines (248 loc) · 10.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Javascript Frameworks</title>
<meta name="description" content="A review of major javascript framework">
<meta name="author" content="Ahmad Fanaei">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="css/reveal.min.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h2>Javascript Framework</h2>
<p>
<small>Created by Ahmad Fanaei</small>
</p>
</section>
<section>
<h2>What's Included?</h2>
<p>
<br>
<ul>
<li>Why we need client-side framework?</li>
<li>Why they call it MVW?</li>
<li>Who are the big ones?</li>
<li>Which one is better?</li>
<li>How to start?</li>
<li>Let's get our hands dirty</li>
</ul>
</p>
</section>
<!-- Example of nested vertical slides -->
<section>
<section>
<h2>Why we need client-side framework</h2>
<h4>Javascript good parts</h4>
<br>
<ul>
<li>Functional programming</li>
<li>Loose typing</li>
<li>Prototype inheritance</li>
<li>Object literal notation</li>
<li>Asyncrnous</li>
<li>All browser support</li>
<li>No installation needed</li>
</ul>
</section>
<section>
<h2>Why we need client-side framework</h2>
<h4>Javascript bad parts</h4>
<br>
<ul>
<li>Global variables</li>
<li>Scopes</li>
<li>Old browsers</li>
<li>Callbacks (sometimes)</li>
<li>Testing</li>
<li>There is no structure</li>
</ul>
</section>
</section>
<section>
<h2>Why they call it MVW</h2>
<br>
<ul>
<li>Smalltalk-80 MVC pattern (1979)</li>
<li>MVC (Model View Controller)</li>
<li>MVP (Model View Presenter)</li>
<li>MVVM (Model View Viewmodel)</li>
</ul>
<br>
<br>
<p>
<small>Further reading: Learning javascript design patterns</small>
</p>
</section>
<section>
<section>
<img src="img/NOVMF.png" width="400" height="auto">
<br>
<br>
<p>it came out at june 2010 and is the one of the oldest.</p>
<p>Many popular applications use the Backbone framework, including Twitter, Times, Foursquare, and LinkedIn Mobile.</p>
</section>
<section>
<h2>Pros:</h2>
<br>
<ul>
<li>Has a big community</li>
<li>Easy learning</li>
<li>Flexible</li>
</ul>
</section>
<section>
<h2>Cons:</h2>
<br>
<ul>
<li>Have to write every thing</li>
<li>No data-binding by default</li>
<li>Its not clear how to structure code</li>
</ul>
</section>
</section>
<section>
<section>
<img src="img/Ember.js_Logo_and_Mascot.png">
<br>
<br>
<p>realised in 2011, one of core members is old ruby programmer Yehuda Katz</p>
<p>LivingSocial, Groupon, Zendesk, Discourse, and Square are some of the most well-known applications that have adopted Ember.</p>
</section>
<section>
<h2>Pros:</h2>
<br>
<ul>
<li>Two way data binding</li>
<li>Run loop</li>
<li>Quite fast</li>
</ul>
</section>
<section>
<h2>Cons:</h2>
<br>
<ul>
<li>Very hard to learn and bad documentation</li>
<li>Younger than others</li>
<li>Has the biggest size</li>
</ul>
</section>
</section>
<section>
<section>
<img src="img/AngularJS-large.png">
<br>
<br>
<p>realised in 2009, but hasn't a lot of attention until 2011. It's the framework of Google.</p>
<p>Almost all of google products including youtube. also Guardian, the Huffington Post, and MSNBC use this framwork. </p>
</section>
<section>
<h2>Pros:</h2>
<br>
<ul>
<li>3D!</li>
<li>Testing</li>
<li>It’s the framework of Google</li>
</ul>
</section>
<section>
<h2>Cons:</h2>
<br>
<ul>
<li>It uses dirty checking for binding</li>
<li>It is quite slower than ember</li>
<li>Learning is hard but different from ember</li>
</ul>
</section>
</section>
<section>
<section>
<h2>Which one is better</h2>
<h4>let numbers speak</h4>
<br>
<ul>
<li>Backbone: 14191 questions, 3.8k followers</li>
<li>Ember: 8816 questions, 1.4k followers</li>
<li>Angular: 31014 questions, 6.4k followers</li>
</ul>
</section>
<section>
<h2>Which one is better</h2>
<h4>let numbers speak</h4>
<br>
<img src="img/trend.png">
<img src="img/legend.png">
</section>
<section>
<h2>Which one is better</h2>
<br>
<ul>
<li>If you want something magical go for ember</li>
<li>If you have big application and you want it to work use angular</li>
<li>If your application is small and you want something to learn fast use backbone</li>
</ul>
<br>
<br>
<p>
<small>Further reading: A journey to Javascript MVC jungle</small>
</p>
</section>
</section>
<section>
<h2>ToDo MVC</h2>
<img src="img/todo.png">
<ul>
<li>Compare different MV*</li>
<li>A good starting point</li>
<li>Help you select framework that suits you best.</li>
</ul>
</section>
<section>
<img src="img/yeoman-horizontal.b2ee.gif">
<br>
<ul>
<li>It’s a scaffolding tool</li>
<li>Creates project structure</li>
<li>Does some boilerplate staff</li>
<li>Works good with grunt and bower</li>
</ul>
</section>
<section>
<h2>Lets get our hands dirty!!!</h2>
</section>
<section>
<h1>Questions <br>&<br> Recommendations</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script>
// Full list of configuration options available here:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
theme: Reveal.getQueryHash().theme, // available themes are in /css/theme
transition: Reveal.getQueryHash().transition || 'concave', // default/cube/page/concave/zoom/linear/fade/none
// Parallax scrolling
// parallaxBackgroundImage: 'https://s3.amazonaws.com/hakim-static/reveal-js/reveal-parallax-1.jpg',
// parallaxBackgroundSize: '2100px 900px',
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } },
{ src: 'plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>