/
index.html
610 lines (442 loc) · 13.2 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
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Starting Front-End Projects — So Coded Conference - 19.09.2013</title>
<meta name="description" content="">
<meta name="author" content="Hans Christian Reinl">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/default.css" id="theme">
<link rel="stylesheet" href="css/custom.css">
<!-- For syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<!-- If the query includes 'print-pdf', use the PDF print sheet -->
<script>
document.write( '<link rel="stylesheet" href="css/print/' + ( window.location.search.match( /print-pdf/gi ) ? 'pdf' : 'paper' ) + '.css" type="text/css" media="print">' );
</script>
<!--[if lt IE 9]>
<script src="lib/js/html5shiv.js"></script>
<![endif]-->
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<section data-markdown>
<script type="text/template">
## Starting
# Front-End Projects
</script>
</section>
</section>
<section>
<section data-markdown data-state="whereyouat">
<script type="text/template">
<img src="assets/hcr.jpg" style="border: 0; border-radius: 50%; max-width: 12rem; margin-right: 3rem; float: left;">
## Hans Christian Reinl
Freelancer, Front-End Developer
Freiburg, soon Cologne
[drublic.de](http://drublic.de/) •
[info@drublic.de](mainto:info@drublic.de) •
[@drublic](https://twitter.com/drublic)
</script>
</section>
<section class="projects" data-markdown>
<script type="text/template">
# Projects
[![](assets/about/html5bp.png)](http://html5boilerplate.com/ "HTML5 Boilerplate")
[![](assets/about/wd.png)](http://workingdraft.de/ "Workingdraft")
[![](assets/about/tng.png)](http://thenittygritty.co/ "The Nitty Gritty")
<small>and others: [github.com/drublic](https://github.com/drublic)</small>
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
## Starting
# Front-End Projects
</script>
</section>
<section data-markdown>
<script type="text/template">
# TOC
DRY
Boilerplate Code
Tackling the Problems
Components
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# DRY
Repetition from project to project
Same tasks to set up development and deployment
Teams need consistency
</script>
</section>
<section data-markdown>
<script type="text/template">
# Save time
</script>
</section>
<section data-markdown>
<script type="text/template">
# Current approaches
1. Use a framework or boilerplate
2. Find differences to your workflow/preferences
3. Apply changes you need
4. Start coding
</script>
</section>
<section data-markdown>
<script type="text/template">
# Frameworks and Boilerplates
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
# Bootstrap
<img src="assets/bootstrap.png" style="border: 0; margin: 0 0 -30% -40px">
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
# Foundation
<img src="assets/foundation.png" style="border: 0; margin: 0 0 -30% -40px">
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
# HTML5 Boilerplate
<img src="assets/html5boilerplate.png" style="border: 0; margin: 0 0 -30% -40px">
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
# Backbone Boilerplate
<img src="assets/backbone-boilerplate.png" style="border: 0; margin: 0 0 -30% -40px">
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
## Hundreds of Forks,<br>Frameworks & Themes
based on HTML5 Boilerplate
<small class="footer-alignment">[See the Wiki Page](https://github.com/h5bp/html5-boilerplate/wiki/forks)</small>
</script>
</section>
<section data-markdown>
<script type="text/template">
___1__ Frameworks and Boilerplates<br><br>
# It’s hard to choose
</script>
</section>
<section data-markdown>
<script type="text/template">
# Current approaches
<ol>
<li>Use a framework or boilerplate
<li class="fragment">Find differences to your workflow/preferences
</ol>
</script>
</section>
<section data-markdown>
<script type="text/template">
___2__ Differences to your workflow/preferences<br><br>
## In HTML5 Boilerplate
* Use a build tool
* Integrate with backend framework
* Structure is more complex
* Testing
* …
</script>
</section>
<section data-markdown>
<script type="text/template">
___2__ Differences to your workflow/preferences<br><br>
## In Bootstrap or Foundation
* A lot of unused code
* Structure is less complicated
* Other coding guidelines
* …
</script>
</section>
<section data-markdown>
<script type="text/template">
# Current approaches
<ol>
<li>Use a framework or boilerplate
<li>Find differences to your workflow/preferences
<li class="fragment">Apply changes you need
</ol>
</script>
</section>
<section data-markdown>
<script type="text/template">
___3__ Apply changes you need<br><br>
# Get to work
Code a lot before even starting
</script>
</section>
<section data-markdown>
<script type="text/template">
___4__ Start coding<br><br>
# Finally…
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# Mission
## Less coding to get started
</script>
</section>
<section data-markdown>
<script type="text/template">
# HTML5 Boilerplate
A minimum of good defaults
</script>
</section>
<section data-markdown>
<script type="text/template">
# Advantages
Faster starting point
Not much needs to be removed
You can learn a lot
</script>
</section>
<section data-markdown>
<script type="text/template">
# Disadvantages
Missing opinionated features
Extending takes a lot of time
</script>
</section>
<section data-markdown>
<script type="text/template">
# What needs extension?
A build tool
Preprocessors
Structure
Testing
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# Tackle the Problems
</script>
</section>
<section data-markdown>
<script type="text/template">
# Back to Frameworks?
</script>
</section>
<section data-markdown>
<script type="text/template">
# Problem solving
<span class="fragment">A build tool <span class="fragment">→ GruntJS</span></span>
<span class="fragment">Preprocessors <span class="fragment">→ Sass/LESS, Coffee Script</span></span>
<span class="fragment">Structure <span class="fragment">→ BEM/SMACSS for CSS</span></span>
<span class="fragment">Testing <span class="fragment">→ Jasmine/Mocha, Karma</span></span>
</script>
</section>
<section data-markdown>
<script type="text/template">
# Just do it once
DRY FTW!
</script>
</section>
<section data-markdown>
<script type="text/template">
[<img src="assets/init.png" style="border:0;">](http://github.com/drublic/init)
</script>
</section>
<section data-markdown>
<script type="text/template">
# Ingredients
- [Grunt](http://gruntjs.com/) Tasks
- JSHint
- Tests (w/ [Jasmine](http://pivotal.github.io/jasmine/))
- Build process
- Scaffolding
- [Bower](http://bower.io/)
- Documentation
</script>
</section>
<section data-markdown>
<script type="text/template">
# Let’s take a look
[It’s on GitHub \o/](https://github.com/drublic/init)
</script>
</section>
<section data-markdown>
<script type="text/template">
# INIT chains you
Mostly my style of writing coding
</script>
</section>
<section data-markdown>
<script type="text/template">
# Try Yeoman
Easily scaffold projects how you like it
[~](http://yeoman.io/)
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# Components
<small>Module, Widget, …</small>
Wikipedia:
> Component-based software engineering is a branch of software engineering that emphasizes the __separation of concerns__ in respect of the wide-ranging functionality available throughout a given software system.
</script>
</section>
<section data-markdown>
<script type="text/template">
and goes on:
> It is a __reuse-based__ approach to defining, implementing and composing __loosely coupled__ __independent__ components into systems.
<br>
<small class="footer-align">[~ Components in Software Engineering](http://en.wikipedia.org/wiki/Component-based_software_engineering)</small>
</script>
</section>
<section data-markdown>
<script type="text/template">
# What again?
Separation of concerns
Loosely coupled
Independent
Reusable
</script>
</section>
<section data-markdown>
<script type="text/template">
# Front-end
Different parts of a web-page
Somehow similar to jQuery plugins
</script>
</section>
<section data-markdown>
<script type="text/template">
# Some other advantages
Without context
Responsive by default
Easily distributable within a team
Faster development
Better maintenance
</script>
</section>
<section data-markdown>
<script type="text/template">
# When to use?
Large websites (“wide-ranging functionality”)
Web applications
Style Guides
<small>Small web projects?</small>
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# Build components
Break down to a minimum (?)
But stay flexible
</script>
</section>
<section data-markdown>
<script type="text/template">
# Structure
Markup
Styles
Functionality
</script>
</section>
<section data-markdown>
<script type="text/template">
# An Example:<br>CSS Modal
[Code on GitHub](https://github.com/drublic/css-modal/tree/wip-1.1.0) •
[Website](http://drublic.github.io/css-modal/)
</script>
</section>
<section data-markdown>
<script type="text/template">
# Component Libraries
User Interface Libraries
Forms, buttons, lists, messages, …
[Bootstrap](http://twitter.github.io/bootstrap)
</script>
</section>
<section data-markdown>
<script type="text/template">
# Component Libraries
<span class="lib-pro">+</span> fast development
<span class="lib-pro">+</span> easily reusable
<span class="lib-con">-</span> more functionality than needed
<span class="lib-con">-</span> DRY?
</script>
</section>
</section>
<section>
<section data-markdown>
<script type="text/template">
# Recap
It’s all about our workflow
Find good defaults for yourself
Use existing frameworks
</script>
</section>
<section data-markdown data-state="state-questions">
<script type="text/template">
# Questions?
[@drublic](http://twitter.com/drublic) - [info@drublic.de](mailto:info@drublic.de)
<br><br>Slides: [drublic.github.io/socoded-init](http://drublic.github.io/socoded-init/)
</script>
</section>
</section>
</div>
<!-- Pesentation Details -->
<div class="pesentation-details">
<p>Starting Front-End Projects — So Coded Conference - 19.09.2013 • Hans Chr. Reinl /
<a href="https://twitter.com/drublic" title="Follow me on Twitter">@drublic</a></p>
</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 || 'linear', // default/cube/page/concave/zoom/linear/none
// Optional libraries used to extend on reveal.js
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'plugin/markdown/showdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ 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; } }
// { src: 'plugin/remotes/remotes.js', async: true, condition: function() { return !!document.body.classList; } }
]
});
</script>
</body>
</html>