Slide 1

Slide 1 text

@hpoom Static Sites Can be the Solution By Simon Wood 1 Scotch on the Rocks 2014 #sotr14

Slide 2

Slide 2 text

/ @hpoom About me Head of Technology and Innovation Holiday Extras Simon Wood 2

Slide 3

Slide 3 text

/ @hpoom 3 Holiday Extras

Slide 4

Slide 4 text

/ @hpoom 4 @hpoom

Slide 5

Slide 5 text

/ @hpoom 5 What I am going to cover

Slide 6

Slide 6 text

/ @hpoom Dynamic sites don’t work 5 What I am going to cover

Slide 7

Slide 7 text

/ @hpoom Dynamic sites don’t work 5 Static Site Generators What I am going to cover

Slide 8

Slide 8 text

/ @hpoom Dynamic sites don’t work 5 Static Site Generators Flat file CMS What I am going to cover

Slide 9

Slide 9 text

/ @hpoom Static does not mean static 6 Static Site != Static Content

Slide 10

Slide 10 text

/ @hpoom Static does not mean static 7 Static Site == Static Architecture

Slide 11

Slide 11 text

@hpoom Things are not working now 8

Slide 12

Slide 12 text

” @hpoom WordPress is used by more than 22% of the top 10 million websites as of August 2013 Wikipedia "WordPress Pencil and Pins-07" by Christopher Ross. Licensed under Creative Commons.- https://flic.kr/p/a688WQ

Slide 13

Slide 13 text

@hpoom Databases don’t scale 10

Slide 14

Slide 14 text

@hpoom cache Queries 11

Slide 15

Slide 15 text

@hpoom Front Side Cache 12

Slide 16

Slide 16 text

” @hpoom Some websites are fried up for the user every time. But others are baked once and served up again and again. Aaron Swartz http://bit.ly/bake-fry "Boston Wiki Meetup" by Sage Ross. Licensed under Creative Commons.- https://flic.kr/p/6QVV36

Slide 17

Slide 17 text

@hpoom WYSIWYG FAIL 14

Slide 18

Slide 18 text

/ @hpoom Problems with CMS 15

Slide 19

Slide 19 text

/ @hpoom Problems with CMS 15 Security

Slide 20

Slide 20 text

/ @hpoom Problems with CMS 15 Portability Security

Slide 21

Slide 21 text

/ @hpoom Problems with CMS 15 Portability Reliability Security

Slide 22

Slide 22 text

@hpoom The web has Evolved 16

Slide 23

Slide 23 text

@hpoom Site Speed is important 17

Slide 24

Slide 24 text

/ @hpoom 500ms 18 Google 20% revenue

Slide 25

Slide 25 text

/ @hpoom 19 Amazon 100ms 1% revenue

Slide 26

Slide 26 text

/ @hpoom 20 Yahoo 400ms 9% traffic

Slide 27

Slide 27 text

/ @hpoom Medium medium.com Less is Less 21 Gov UK www.gov.uk/transformation

Slide 28

Slide 28 text

” @hpoom The web's moved beyond the desktop, and it's not looking back. The number of devices we're designing for is growing just as quickly as mobile traffic. Ethan Marcotte "Device lab" by Jeremy Keith. Licensed under Creative Commons.- https://flic.kr/p/kj1Dm7

Slide 29

Slide 29 text

/ @hpoom 23 CSS Pre-compilers

Slide 30

Slide 30 text

/ @hpoom 24 Javascript Proliferation

Slide 31

Slide 31 text

/ @hpoom good tooling 25

Slide 32

Slide 32 text

/ @hpoom 26 client side Widgets

Slide 33

Slide 33 text

@hpoom Static Site Generators 27

Slide 34

Slide 34 text

/ @hpoom History of SSG 28

Slide 35

Slide 35 text

/ @hpoom History of SSG 28 Moveable Type 13 years old

Slide 36

Slide 36 text

/ @hpoom History of SSG 28 nanoc 7 years old Moveable Type 13 years old

Slide 37

Slide 37 text

/ @hpoom History of SSG 28 nanoc 7 years old jekyll 6 years old Moveable Type 13 years old

Slide 38

Slide 38 text

@hpoom Example SSG Built Sites 29

Slide 39

Slide 39 text

/ @hpoom Zurb Foundation assemble foundation.zurb.com

Slide 40

Slide 40 text

/ @hpoom Mozilla WebFWD Stacey webfwd.org

Slide 41

Slide 41 text

/ @hpoom GitHub Training Jekyll training.github.com

Slide 42

Slide 42 text

/ @hpoom 33 staticsitegenerators.net 278

Slide 43

Slide 43 text

/ @hpoom 33 staticsitegenerators.net 278

Slide 44

Slide 44 text

/ @hpoom 34 @hpoom

Slide 45

Slide 45 text

/ @hpoom Lots of choice 35 assemble Cactus DocPad Dropplets Hexo Hugo Hyde Jekyll metalsmith Middleman Octopress Pelican Stacey Wintersmith GO JavaScript PHP Python Ruby

Slide 46

Slide 46 text

@hpoom 36 Content Templates Sass HTML CSS Publish

Slide 47

Slide 47 text

@hpoom Markdown 37

Slide 48

Slide 48 text

/ @hpoom Markdown is the future 38 "Markdown is the Future of Writing" by Robby Ingebretsen. - http://bit.ly/mdfuture ## A Little Markdown Example Markdown is **awesome** because: - it’s easy to *write* - it’s easy to *read* - it keeps you in the *moment* A LITTLE MARKDOWN EXAMPLE Markdown is awesome because: • it’s easy to write • it’s easy to read • it keeps you in the moment

Slide 49

Slide 49 text

” @hpoom If your app has text fields that can be formatted, and you're using your own janky custom markup instead of Markdown, you're doing it wrong. Ernie Miller "Old school (9/365)" by Jinny. Licensed under Creative Commons.- https://flic.kr/p/7uELQN

Slide 50

Slide 50 text

/ @hpoom content is versioned 40

Slide 51

Slide 51 text

/ @hpoom Web Editor dillinger.io Markdown Tools 41 Mac Editor mouapp.com Books gitbook.io

Slide 52

Slide 52 text

@hpoom 42 FRONT MATTER

Slide 53

Slide 53 text

@hpoom 43 --- layout: post title: Bloggling like a pro tags: ['baby', 'startup', 'prediction'] created: '2014-03-17T22:24:18+00:00' --- *content goes here*

Slide 54

Slide 54 text

@hpoom 44 Templates

Slide 55

Slide 55 text

@hpoom 45 {{title}} {{content}}

Slide 56

Slide 56 text

/ @hpoom Template Engines 46 Eco Haml Handlebars Jade Mustache Twig CoffeeScript JavaScript PHP Ruby

Slide 57

Slide 57 text

@hpoom Pre-compilers and tooling 47

Slide 58

Slide 58 text

@hpoom Hosting 48

Slide 59

Slide 59 text

/ @hpoom GitHub Pages

Slide 60

Slide 60 text

/ @hpoom AWS S3

Slide 61

Slide 61 text

/ @hpoom BitBalloon

Slide 62

Slide 62 text

@hpoom Why so many? 52

Slide 63

Slide 63 text

” @hpoom I believe that writing a static site generator is the new "Hello World". It is stupidly trivial to write a basic one. Timo Zimmermann http://bit.ly/ssghello "printf("hello, world\n");" by isipeoria. Licensed under Creative Commons.- https://flic.kr/p/bcgZ5g

Slide 64

Slide 64 text

@hpoom ROLL YOUR OWN SSG 54

Slide 65

Slide 65 text

@hpoom Terminal driven 55

Slide 66

Slide 66 text

@hpoom Flat File CMS 56

Slide 67

Slide 67 text

@hpoom Example Flat FILE CMS Sites 57

Slide 68

Slide 68 text

/ @hpoom asana statamic asana.com

Slide 69

Slide 69 text

/ @hpoom World Backup Day Kirby worldbackupday.com

Slide 70

Slide 70 text

/ @hpoom Some Flat File CMS 60 Kirby statamic Pico Stacey Cockpit Monstra razorCMS

Slide 71

Slide 71 text

/ @hpoom statamic 61

Slide 72

Slide 72 text

” @hpoom A flat-file CMS is a content management system that stores content in files and folders rather than in a DB like a traditional CMS Jeremiah Shoaf http://bit.ly/FlatCMS "P1040010" by Mike Linksvayer. Licensed under Creative Commons.- https://flic.kr/p/dYKSNz

Slide 73

Slide 73 text

@hpoom Dynamic Elements with Javascript 63

Slide 74

Slide 74 text

/ @hpoom My blog needs comments 64

Slide 75

Slide 75 text

/ @hpoom My blog needs comments 64

Slide 76

Slide 76 text

/ @hpoom My blog needs comments 64

Slide 77

Slide 77 text

/ @hpoom My blog needs comments 64

Slide 78

Slide 78 text

/ @hpoom Bells & whistles 65

Slide 79

Slide 79 text

/ @hpoom Bells & whistles 65 Surveys

Slide 80

Slide 80 text

/ @hpoom Bells & whistles 65 Surveys Video

Slide 81

Slide 81 text

/ @hpoom Bells & whistles 65 Surveys Video Charts

Slide 82

Slide 82 text

/ @hpoom Client side JS can do a lot 66 Web Sockets WebRTC Canvas WebGL Local Storage Animation Video Audio Shadow DOM

Slide 83

Slide 83 text

@hpoom Summary 67

Slide 84

Slide 84 text

@hpoom Where it is not Suitable 68

Slide 85

Slide 85 text

@hpoom Not non-tech accessible 69

Slide 86

Slide 86 text

@hpoom not a solution to everything 70

Slide 87

Slide 87 text

@hpoom Requires a Rethink 71

Slide 88

Slide 88 text

@hpoom Other options 72

Slide 89

Slide 89 text

/ @hpoom 73 I can’t change my CMS

Slide 90

Slide 90 text

/ @hpoom Boost 73 I can’t change my CMS

Slide 91

Slide 91 text

/ @hpoom Boost 73 WP-Super Cache I can’t change my CMS

Slide 92

Slide 92 text

/ @hpoom Boost 73 WP-Super Cache I can’t change my CMS Buster

Slide 93

Slide 93 text

/ @hpoom Mixture mixture.io Alternatives 74 Hammer hammerformac.com Cactus cactusformac.com

Slide 94

Slide 94 text

@hpoom All else fails then VARNISH 75

Slide 95

Slide 95 text

@hpoom The Benefits 76

Slide 96

Slide 96 text

@hpoom SPEED 77

Slide 97

Slide 97 text

@hpoom Security 78

Slide 98

Slide 98 text

@hpoom Simple Cheap Hosting 79

Slide 99

Slide 99 text

@hpoom Revision Control 80

Slide 100

Slide 100 text

@hpoom Portability 81

Slide 101

Slide 101 text

@hpoom SIMPLICITY 82

Slide 102

Slide 102 text

@hpoom Generate once 83

Slide 103

Slide 103 text

@hpoom Thank you please contact me if you have any questions Twitter: @hpoom Links: http://bit.ly/SOTR2014 logo 84 By Simon Wood Scotch on the Rocks 2014 #sotr14