-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
214 lines (201 loc) · 10.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>TDD in JavaScript - small workshop</title>
<meta charset="utf-8">
<meta name="viewport" content="width=792, user-scalable=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<link rel="stylesheet" href="themes/warsawjs/styles/ribbon-theme.css">
<link rel="stylesheet" href="themes/warsawjs/styles/warsawjs-theme.css">
<link rel="stylesheet" href="themes/darekb.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,900&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
</head>
<body class="list">
<header class="caption">
<h1>TDD in JavaScript - small workshop</h1>
<p>Darusz Biedrzycki</p>
</header>
<section class="slide front-page">
<div>
<div class="logo">
<img src="themes/warsawjs/pictures/logo.png">
</div>
<div class="content">
<h2>TDD in JavaScript - small workshop</h2>
<p>Dariusz Biedrzycki</p>
</div>
</div>
<!-- <p>Lorem ipsum dolor sit amet, consectetur <a href="#4">adipisicing</a> elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua. Ut enim ad minim veniam, <em>quis nostrud</em> exercitation ullamco
laboris <strong>nisi ut aliquip</strong> ex ea commodo consequat. Duis aute irure <i>dolor</i> in
reprehenderit in voluptate velit esse cillum <b>dolore</b> eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in <code><culpa></code> qui officia deserunt mollit anim id est laborum.
</p> -->
</section>
<section class="slide" style="background:transparent url('img/wood-framed_house.jpg') no-repeat top left; background-size:cover;">
<div style="background:rgba(255,255,255,0.7); ">
<h2 class="big headerStyle">Good start ...</h2>
<p class="big parStyle">You have plan</p>
<p class="big parStyle">You have good structure (framework)</p>
<p class="big parStyle">You have skillfull people</p>
</div>
</section>
<section class="slide" style="background:transparent url('img/wooden-house.jpg') no-repeat top left; background-size:cover;">
<div style="background:rgba(255,255,255,0.7); ">
<h2 class="big headerStyle">Terrible end...</h2>
<p class="big parStyle">Patched patches</p>
<p class="big parStyle">Old code that wrote first developer</p>
<p class="big parStyle">Etc.</p>
<p style="font-size:0.7em; text-align:right;">Pix credit: <a href="http://www.panoramio.com/user/739939">Lauri V</a> from <a href="http://www.panoramio.com/">Panoramio</a></p>
</div>
</section>
<section class="slide" style="background:transparent url('img/ver20.gif') no-repeat top left; background-size:cover;">
<div style="background:rgba(255,255,255,0.7); ">
<h2 class="big headerStyle">Ver 2.0</h2>
<p class="big parStyle">Complete new version</p>
<p class="big parStyle">Clean start</p>
<p class="big parStyle">Deep breath</p>
</div>
</section>
<section class="slide">
<div>
<h2 class="big headerStyle">Ver 2.0</h2>
<p class="big parStyle">Wrong turn</p>
<p class="big parStyle">Double development (ver 1 and 2)</p>
<p class="big parStyle">Same developers = same mistakes</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">Is there any easy solution?</h2>
<p class="big parStyle">No</p>
<p class="big parStyle">But exist some cure</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">TDD</h2>
<p class="big parStyle">Test Driven Development</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">TDD</h2>
<p class="big parStyle">Simple</p>
<p class="big parStyle">Very quick</p>
<p class="big parStyle">Test</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">TDD</h2>
<p class="big parStyle">We test only code</p>
<p class="big parStyle">Test in isolated environment</p>
<p class="big parStyle">Test corner case</p>
<p class="big parStyle">We not need any browser</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">We not need any browser?????</h2>
<p class="big parStyle">Thats not realy true...</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">TDD</h2>
<p class="big parStyle">Three states</p>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">1.Fail</h2>
<div style="text-align:center;">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 755 755" style="width:50%; margin:auto;">
<path d="m162 414.1c-11-95.3 47.9-207.6 190.5-213.5l-7.6 81.9c32.9-26.7 79.7-98.6 91.1-136.9 -8.6-38.2-53.7-100.6-89.4-133l6.1 70.2c-232.2 3.4-334.3 208.7-309.1 352.8l51.2-43.2 67.1 21.6z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#01013f" fill-rule="evenodd" fill="#ff0000"/>
</svg>
</div>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">2. Pass</h2>
<div style="text-align:center;">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 755 755" style="width:50%; margin:auto;">
<path d="m427.7 218.9c87.1 40.2 152.4 148.9 83.3 273.7l-66-49c5.7 42 42.7 119.4 69.6 149 37.1 12.6 113.9 6.4 160.1-7.3l-63.1-31.3c117.8-200.1-4.4-394-140.7-447.5l10.2 66.2 -53.4 46.1 0 0z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#3a0303" fill-rule="evenodd" fill="#15a329"/>
</svg>
</div>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">3. Refactor</h2>
<div style="text-align:center;">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 755 755" style="width:50%; margin:auto;">
<path d="m465.8 539.6c-76.5 58-203.1 64.4-280.7-55.3l74.3-35.2c-39.7-14.7-125.4-18.5-164.3-8.7 -28.5 26.8-59.3 97.5-68.9 144.7l57.3-41c121.1 198.1 349.7 181.5 461 86.5l-63.2-22.1 -15.5-68.8z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#0d1e02" fill-rule="evenodd" fill="#00f"/>
</svg>
</div>
</div>
</section>
<section class="slide" >
<div>
<h2 class="big headerStyle">Workshop</h2>
<div style="text-align:center;">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 755 755" style="width:50%; margin:auto;">
<path d="m162 414.1c-11-95.3 47.9-207.6 190.5-213.5l-7.6 81.9c32.9-26.7 79.7-98.6 91.1-136.9 -8.6-38.2-53.7-100.6-89.4-133l6.1 70.2c-232.2 3.4-334.3 208.7-309.1 352.8l51.2-43.2 67.1 21.6z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#01013f" fill-rule="evenodd" fill="#ff0000"/>
<text font-weight="bold" transform="rotate(-34.7563, 212.693, 198.269) matrix(1.71008, -2.38419e-07, 0, 2.07815, -120.131, -249.402)" xml:space="preserve" text-anchor="middle" font-family="Arial" font-size="24" y="225.4" x="194.1" stroke-width="0" stroke="#000000" fill="#fcfcfc">FAIL</text>
<path d="m427.7 218.9c87.1 40.2 152.4 148.9 83.3 273.7l-66-49c5.7 42 42.7 119.4 69.6 149 37.1 12.6 113.9 6.4 160.1-7.3l-63.1-31.3c117.8-200.1-4.4-394-140.7-447.5l10.2 66.2 -53.4 46.1 0 0z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#3a0303" fill-rule="evenodd" fill="#15a329"/>
<text font-weight="bold" transform="rotate(79.0963, 603.721, 353.82) matrix(1.67048, -8.9407e-08, 0, 1.87319, -154.005, -213.683)" xml:space="preserve" text-anchor="middle" font-family="Arial" font-size="24" y="313" x="452.8" stroke-width="0" stroke="#000000" fill="#fcfcfc">PASS</text>
<path d="m465.8 539.6c-76.5 58-203.1 64.4-280.7-55.3l74.3-35.2c-39.7-14.7-125.4-18.5-164.3-8.7 -28.5 26.8-59.3 97.5-68.9 144.7l57.3-41c121.1 198.1 349.7 181.5 461 86.5l-63.2-22.1 -15.5-68.8z" stroke-miterlimit="4" stroke-linejoin="round" stroke-width="3.8" stroke="#0d1e02" fill-rule="evenodd" fill="#00f"/>
<text font-weight="bold" transform="rotate(8.78412, 328.114, 626.054) matrix(1.47363, -1.04308e-07, -2.98023e-08, 1.78739, -60.9602, -205.578)" xml:space="preserve" text-anchor="middle" font-family="Arial" font-size="24" y="475.3" x="263.7" stroke-width="0" stroke="#000000" fill="#fcfcfc">REFACTOR</text>
</svg>
</div>
</div>
</section>
<section class="slide">
<div>
<h2>Before start</h2>
<p>Install node.js from <a href="http://nodejs.org/">http://nodejs.org/</a></p>
<p>From workshop katalog type:</p>
<pre><code>npm install</code></pre>
</div>
</section>
<section class="slide">
<div>
<h2>Links</h2>
<p><a href="http://nodejs.org/">http://nodejs.org/</a></p>
<p><a href="http://jasmine.github.io/">Jasmine</a></p>
</div>
</section>
<section class="slide">
<div>
<h2>Links</h2>
<p><a href="https://www.youtube.com/watch?v=PoGWuK5e_nY">Bizarre Russian House</a></p>
<p><a href="https://www.youtube.com/watch?v=DoIT3HO3sj0#t=60">World's tallest wooden house</a></p>
<p><a href="http://en.wikipedia.org/wiki/Sutyagin_House">Sutyagin_House</a></p>
</div>
</section>
<section class="slide">
<div>
<p>Dziękuję za uwagę</p>
</div>
</section>
<!-- <section class="slide cover">
<div>
<img src="./themes/warsawjs/pictures/bigphoto.jpg" alt="">
</div>
</section>
<section class="slide shout">
<div>
<h2>See you next month at WarsawJS</h2>
</div>
</section> -->
<p class="badge"><a href="https://github.com/warsawjs/presentation-template">Fork me on Github</a></p>
<div class="progress">
<div></div>
</div>
<script src="vendor/gamepad/gamepad.js"></script>
<script src="vendor/shower/shower.js"></script>
<script src="vendor/shower/shower.gamepad.js"></script>
</body>
</html>