Slide 1

Slide 1 text

JavaScript and the Monomyth

Slide 2

Slide 2 text

@tiandavis

Slide 3

Slide 3 text

JS Dynamic Prototypical Functional Familiar

Slide 4

Slide 4 text

JS Dynamic Prototypical Functional Familiar

Slide 5

Slide 5 text

IDEAS THAT SPREAD, WIN -Seth Godin

Slide 6

Slide 6 text

JS Browsers

Slide 7

Slide 7 text

JS Servers

Slide 8

Slide 8 text

JS Hybrid Mobile Apps

Slide 9

Slide 9 text

JS Games

Slide 10

Slide 10 text

JS Drones

Slide 11

Slide 11 text

JS Micro Controllers

Slide 12

Slide 12 text

JS Atwood’s Law Any application that can be written in JavaScript, will eventually be written in JavaScript.

Slide 13

Slide 13 text

Have we seen this before?

Slide 14

Slide 14 text

Monomyth The Hero’s Journey

Slide 15

Slide 15 text

The Hero’s Journey

Slide 16

Slide 16 text

It is by going down into the abyss that we recover the treasures of life. -Jospeh Campbell

Slide 17

Slide 17 text

Where you stumble, there lies your treasure. -Jospeh Campbell

Slide 18

Slide 18 text

The cave you fear to enter holds the treasure you seek. -Jospeh Campbell

Slide 19

Slide 19 text

The thing in the cave that was so dreaded has become the center. -Jospeh Campbell

Slide 20

Slide 20 text

Departure Initiation Return

Slide 21

Slide 21 text

Departure Initiation Return

Slide 22

Slide 22 text

Departure Initiation Return

Slide 23

Slide 23 text

Departure The Call to Adventure

Slide 24

Slide 24 text

Brendan Eich Recruited to bring scheme to the browser.

Slide 25

Slide 25 text

Departure Refusal of the Call

Slide 26

Slide 26 text

Scheme

Slide 27

Slide 27 text

Scheme ! ! JAVA WITHOUT CLASSES?

Slide 28

Slide 28 text

JavaScript

Slide 29

Slide 29 text

Common Mythic Element Lone Animal Chased Into Enchanted Forest

Slide 30

Slide 30 text

Star Wars Princess Leia’s R2D2 distress hologram requesting rescue

Slide 31

Slide 31 text

The Matrix Neo “follows the white rabbit” to the nightclub where he meets Trinity

Slide 32

Slide 32 text

Dune House Atreides follows exclusive spice mining contract to Arrakis

Slide 33

Slide 33 text

JavaScript Create Scheme for the Browser

Slide 34

Slide 34 text

Departure Supernatural Aid

Slide 35

Slide 35 text

Tight Release WRITES JAVASCRIPT IN 10 DAYS

Slide 36

Slide 36 text

Internet Explorer + VBScript Intense. Fear. Netscape Killer

Slide 37

Slide 37 text

Departure Crossing the Threshold

Slide 38

Slide 38 text

Brendan Eich Rewrites JavaScript.
 Extracts SpiderMonkey.

Slide 39

Slide 39 text

Microsoft JScript released with IE3

Slide 40

Slide 40 text

JavaScript JScript is Douglas Crockford

Slide 41

Slide 41 text

Common Mythic Element The Mentor

Slide 42

Slide 42 text

Star Wars Obi-Wan Kenobi

Slide 43

Slide 43 text

The Matrix Morpheus

Slide 44

Slide 44 text

Dune Duncan Idaho

Slide 45

Slide 45 text

JavaScript Douglas Crockford

Slide 46

Slide 46 text

Rhino Created Java Fork of SpiderMonkey

Slide 47

Slide 47 text

Departure Belly of the Whale

Slide 48

Slide 48 text

Brendan Eich Mozilla Project March ‘98

Slide 49

Slide 49 text

Aol. Buys Netscape March ‘99

Slide 50

Slide 50 text

Aol. Closes Netscape July ‘03

Slide 51

Slide 51 text

Brendan Eich Creates Mozilla Foundation July ‘03

Slide 52

Slide 52 text

SpiderMonkey Firefox is its new home Feb ‘04

Slide 53

Slide 53 text

Brendan Eich CTO Mozilla Corporation Aug ‘05

Slide 54

Slide 54 text

Departure JavaScript no longer tied to a specific browser.

Slide 55

Slide 55 text

Departure JavaScript now funded indefinitely.

Slide 56

Slide 56 text

Departure Initiation Return

Slide 57

Slide 57 text

Initiation The Road of Trials

Slide 58

Slide 58 text

The DOM is a MESS Many Browser Vendors Many Browser Bugs

Slide 59

Slide 59 text

No content

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

var ua = navigator.userAgent.toLowerCase(); 
 if (ua.indexOf('safari') != -1) { if (ua.indexOf('chrome') > -1) { //alert(‘I HAZ CHROME SKILLZ’); } else { //alert(‘ALL UP IN YOUR SAFARI’); } }

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No Separation of Concerns Embedded CSS Inline JavaScript

Slide 65

Slide 65 text

JavaScript Organization

Slide 66

Slide 66 text

JavaScript Organization

Slide 67

Slide 67 text

Initiation The Meeting with the Oracle

Slide 68

Slide 68 text

John Resig BarCamp NYC Jan ‘06

Slide 69

Slide 69 text

Non-Obstrusive JavaScript Birth of a Best Practice

Slide 70

Slide 70 text

Cross Browser JavaScript We Dared to Believe

Slide 71

Slide 71 text

Common Mythic Element The Oracle

Slide 72

Slide 72 text

Star Wars Yoda

Slide 73

Slide 73 text

The Matrix The Oracle

Slide 74

Slide 74 text

JavaScript John Resig

Slide 75

Slide 75 text

Initiation Temptation away from the true path

Slide 76

Slide 76 text

The Framework Wars

Slide 77

Slide 77 text

jQuery versus MooTools

Slide 78

Slide 78 text

jQuery versus Prototype

Slide 79

Slide 79 text

jQuery versus ExtJS (Sencha)

Slide 80

Slide 80 text

jQuery versus Dojo

Slide 81

Slide 81 text

KEEP! CALM! AND! CODE! ON

Slide 82

Slide 82 text

Common Mythic Element Failed Hero

Slide 83

Slide 83 text

Star Wars Biggs

Slide 84

Slide 84 text

The Matrix Morpheus once believed Cypher was “The One”

Slide 85

Slide 85 text

JavaScript MooTools, ProtoType …

Slide 86

Slide 86 text

Initiation Atonement with the Father

Slide 87

Slide 87 text

The Framework Wars

Slide 88

Slide 88 text

jQuery.noConflict May ‘08

Slide 89

Slide 89 text

jQuery The Effect

Slide 90

Slide 90 text

From MooTools My Swtich from MooTools to jQuery

Slide 91

Slide 91 text

Initiation Apotheosis God-Like

Slide 92

Slide 92 text

May ‘08 Douglas Crockford

Slide 93

Slide 93 text

Sep ‘08 Microsoft

Slide 94

Slide 94 text

Mid ‘09 Douglas Crockford JSON

Slide 95

Slide 95 text

Mid ‘09 Ruby on Rails

Slide 96

Slide 96 text

Oct ‘09 SVG RaphaelJS

Slide 97

Slide 97 text

FLASH DEAD IS

Slide 98

Slide 98 text

ISH…

Slide 99

Slide 99 text

R.I.P. Flash Java Applets Silverlight

Slide 100

Slide 100 text

The web is not a movie.

Slide 101

Slide 101 text

The web is not a plugin.

Slide 102

Slide 102 text

The web is not a single vendor.

Slide 103

Slide 103 text

The web is not a single technology.

Slide 104

Slide 104 text

The “truthiness” of these things is part of what makes the web better.

Slide 105

Slide 105 text

Initiation The Ultimate Boon

Slide 106

Slide 106 text

Initiation Cross Browser JavaScript is a REAL Thing

Slide 107

Slide 107 text

Initiation “Real” Developers Use JavaScript Now

Slide 108

Slide 108 text

Departure Initiation Return

Slide 109

Slide 109 text

Return Refusal of the Return

Slide 110

Slide 110 text

John Resig Resigns Mozilla Corporation & Fulltime Work on jQuery

Slide 111

Slide 111 text

Lightweight Mobile Optimized DOM Libraries

Slide 112

Slide 112 text

Zepto.JS

Slide 113

Slide 113 text

Zepto jQuery 9kb 84kb

Slide 114

Slide 114 text

jQuery 2 71kb IE6, IE7, IE8

Slide 115

Slide 115 text

Return The Magic Flight

Slide 116

Slide 116 text

Designer Languages

Slide 117

Slide 117 text

CoffeeScript or JavaScript

Slide 118

Slide 118 text

GWT May ‘06

Slide 119

Slide 119 text

Objective-J Late ‘08

Slide 120

Slide 120 text

CoffeeScript Dec ‘09

Slide 121

Slide 121 text

Dart Aug ‘11

Slide 122

Slide 122 text

ClojureScript Aug ‘11

Slide 123

Slide 123 text

TypeScript Aug ‘12

Slide 124

Slide 124 text

Common Mythic Element Wearing Enemy’s Skin

Slide 125

Slide 125 text

Star Wars Luke and Han wear stormtrooper outfits

Slide 126

Slide 126 text

The Matrix Neo jumps into Agent Smith’s skin

Slide 127

Slide 127 text

JavaScript GWT uses Java to write frontend code

Slide 128

Slide 128 text

package com.example.foo.client;! ! import com.google.gwt.core.client.EntryPoint;! import com.google.gwt.core.client.GWT;! ! public class Foo implements EntryPoint {! public void onModuleLoad() {! GWT.log("Hello World!", null);! }! }

Slide 129

Slide 129 text

Common Mythic Element The Shapeshifter

Slide 130

Slide 130 text

Star Wars Han Solo

Slide 131

Slide 131 text

The Matrix Cypher

Slide 132

Slide 132 text

JavaScript CoffeeScript

Slide 133

Slide 133 text

Return Rescue from Without

Slide 134

Slide 134 text

NO Flash on iOS devices

Slide 135

Slide 135 text

Adobe drops support for Flash on mobile devices

Slide 136

Slide 136 text

Drops support for IE6

Slide 137

Slide 137 text

Return Crossing the Return Threshold

Slide 138

Slide 138 text

JavaScript Organization

Slide 139

Slide 139 text

JavaScript Organization

Slide 140

Slide 140 text

JavaScript Organization Micro MVC Libraries

Slide 141

Slide 141 text

JavaScript Organization Backbone

Slide 142

Slide 142 text

JavaScript Organization KnockOut

Slide 143

Slide 143 text

JavaScript Organization Spine

Slide 144

Slide 144 text

JavaScript Organization JavaScript MVC (CanJS)

Slide 145

Slide 145 text

Open Sources V8 JavaScript Engine

Slide 146

Slide 146 text

JavaScript on the Server is Legit Now. Node.JS

Slide 147

Slide 147 text

No content

Slide 148

Slide 148 text

Canvas HTML5

Slide 149

Slide 149 text

WebSockets HTML5

Slide 150

Slide 150 text

LocalStorage HTML5

Slide 151

Slide 151 text

WebRTC HTML5

Slide 152

Slide 152 text

Browser Normalizers Gain Popularity HTML5

Slide 153

Slide 153 text

Socket.IO Normalizers

Slide 154

Slide 154 text

Store.JS Normalizers

Slide 155

Slide 155 text

MicroControllers

Slide 156

Slide 156 text

Drones

Slide 157

Slide 157 text

MongoDB BSON

Slide 158

Slide 158 text

Return Master of Two Worlds

Slide 159

Slide 159 text

JavaScript Frontend Backend

Slide 160

Slide 160 text

Workflow, Security, API Backend

Slide 161

Slide 161 text

Core Business Logic Frontend

Slide 162

Slide 162 text

No content

Slide 163

Slide 163 text

Common Mythic Element Two Worlds: Mundane vs. Special

Slide 164

Slide 164 text

Star Wars Planetside vs. Death Star

Slide 165

Slide 165 text

The Matrix Reality vs. The Matrix

Slide 166

Slide 166 text

JavaScript Backend vs. Frontend

Slide 167

Slide 167 text

Single Page Applications

Slide 168

Slide 168 text

Modern Frontend Frameworks

Slide 169

Slide 169 text

No content

Slide 170

Slide 170 text

No content

Slide 171

Slide 171 text

No content

Slide 172

Slide 172 text

Designer Language Optional…

Slide 173

Slide 173 text

JavaScript is now for SERIOUS engineers.

Slide 174

Slide 174 text

Return Freedom to Live

Slide 175

Slide 175 text

Return Frontend development is now a legitimate software profession.

Slide 176

Slide 176 text

Return Focus on the Frontend or the Backend. The choice is yours.

Slide 177

Slide 177 text

Return JavaScript is the most popular language on the planet Earth.

Slide 178

Slide 178 text

JAVASCRIPT IS LEGITIMATE

Slide 179

Slide 179 text

JAVASCRIPT IS FULLSTACK

Slide 180

Slide 180 text

JAVASCRIPT IS EVERYWHERE

Slide 181

Slide 181 text

WHERE DO WE GO FROM HERE…? JS

Slide 182

Slide 182 text

Thanks.

Slide 183

Slide 183 text

Tian Davis @tiandavis tiandavis.com/talks