-
Notifications
You must be signed in to change notification settings - Fork 0
/
presentation.tex
221 lines (191 loc) · 4.57 KB
/
presentation.tex
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
\documentclass[16pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage[polish]{babel}
\usepackage{url}
\input{pygments}
\usetheme{Pittsburgh}
\usenavigationsymbolstemplate{} % turn off navigation icons
\setbeamercovered{transparent}
\author{Silesian Ruby Users Group\\
\footnotesize{Jakub Kuźma}}
\title{RIA development using YUI 3 and Rails 3}
\begin{document}
\frame{\titlepage}
\begin{frame}
\frametitle{Introduction}
\begin{center}
Rich Internet Application?
\end{center}
\end{frame}
\begin{frame}
\frametitle{Contract bridge - auction}
\begin{figure}
\includegraphics[width=\linewidth]{bbo-auction.png}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Contract bridge - play}
\begin{figure}
\includegraphics[width=\linewidth]{bbo-play.png}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{Requirements}
\begin{itemize}
\item client-server communication without refreshing page
\item client side validation
\item interface composed of small, independent elements
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{jQuery}
\begin{center}
ridiculously easy AJAX, event handling, DOM manipulation
\end{center}
\end{frame}
\begin{frame}
\frametitle{jQuery UI}
\begin{center}
jQuery UI for RIA is like jQuery for AJAX development
\end{center}
\end{frame}
\begin{frame}
\frametitle{YUI}
\begin{figure}
\includegraphics[width=0.8\linewidth]{yui.jpg}
\end{figure}
\end{frame}
\begin{frame}
\frametitle{YUI 3}
\begin{itemize}
\item Developer Tools
\item Core
\item Utilities
\item Component Infrastructure
\item Widgets
\item Plugins
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Component Infrastructure}
\begin{itemize}
\item Attribute
\item Base
\item Widget
\item Plugin
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Attribute}
\begin{itemize}
\item getters, setters, validation
\item attributeChange event
\item object cloning
\item nested objects support (i.e. strings.messages.hello)
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Attribute - example}
\input{attribute}
\end{frame}
\begin{frame}[fragile]
\frametitle{Attribute - usage}
\input{attribute-usage}
\end{frame}
\begin{frame}
\frametitle{Base}
\begin{itemize}
\item constructor and destructor
\item attributes
\item event target
\item extension and plugin support
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Base - example}
\input{base}
\end{frame}
\begin{frame}
\frametitle{Widget}
\begin{itemize}
\item HTML Parser
\item renderUI
\item bindUI
\item syncUI
\item boundingBox, contentBox
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Widget - example}
\begin{footnotesize}
\input{widget}
\end{footnotesize}
\end{frame}
\begin{frame}
\frametitle{Plugin}
\begin{itemize}
\item unobtrusively enhance objects (aka hosts)
\item afterHostEvent, beforeHostMethod, etc.
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\frametitle{Plugin - example}
\begin{footnotesize}
\input{plugin}
\end{footnotesize}
\end{frame}
\begin{frame}
\frametitle{Custom Events}
\begin{itemize}
\item DOM independent
\item same API and behavior (bubbling - stopPropagation, defaultFn - preventDefault)
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Other stuff}
\begin{itemize}
\item more array utilities: every, find, reduce, etc.
\item language helpers: isArray, isValue, isString, etc.
\item OOP (augment, extend, bind, rbind)
\item YUI 3 Gallery
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Rails 3}
\begin{itemize}
\item ordinary web application (authentication, statistics, etc.)
\item API (responders rock)
\item validating user actions
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{node.js}
\begin{itemize}
\item YUI3 is CommonJS
\item replace Get module (require instead of <script>)
\item DOM support by jsdom
\end{itemize}
\end{frame}
\begin{frame}
\frametitle{Resources}
\begin{itemize}
\item YUI 3\\\url{http://developer.yahoo.com/yui/3/}
\item Bridge App\\\url{http://bridge.heroku.com/}
\item Bridge App - source\\\url{http://github.com/morgoth/bridge/}
\item underscore.js\\\url{http://documentcloud.github.com/underscore/}
\item mustache.js\\\url{http://github.com/janl/mustache.js/}
\end{itemize}
\end{frame}
\begin{frame}
\begin{figure}
\includegraphics[width=\linewidth]{drogus.png}
\end{figure}
\end{frame}
\begin{frame}
\begin{center}
\Huge{Questions?}
\end{center}
\end{frame}
\end{document}