Slide 1

Slide 1 text

HACKING CULTURE WITH JAVASCRIPT

Slide 2

Slide 2 text

BEN STRAUB BEN BENSTRAUB

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

ROBOTS

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

No content

Slide 12

Slide 12 text

No content

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

No content

Slide 15

Slide 15 text

SOFTWARE IS AWFUL

Slide 16

Slide 16 text

SOFTWARE IS AWFUL AT MAKING DECISIONS

Slide 17

Slide 17 text

YOU'RE A TERRIBLE ROBOT

Slide 18

Slide 18 text

CULTURE

Slide 19

Slide 19 text

GET YOUR TEAM TO USE A ROBOT

Slide 20

Slide 20 text

1. GET A CHAT ROOM

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

EASIER AND BETTER

Slide 23

Slide 23 text

No content

Slide 24

Slide 24 text

2. GET A ROBOT

Slide 25

Slide 25 text

No content

Slide 26

Slide 26 text

https://github.com/slackhq/hubot-slack https://myteam.slack.com/services/new/hubot

Slide 27

Slide 27 text

> hubot ping hubot: PONG

Slide 28

Slide 28 text

3. TURN ON GIF1 SEARCH 1 It's JIF, I don't care what you think

Slide 29

Slide 29 text

> hubot animate me applause

Slide 30

Slide 30 text

> hubot animate me I got this

Slide 31

Slide 31 text

4. AUTOMATE

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

> hubot address me > hubot phone me

Slide 36

Slide 36 text

module.exports = (robot) -> robot.respond /address\s*(me)?$/i, (msg) -> msg.send ":office: 9565 Semiahmoo Parkway, Blaine, WA, 98230, US" robot.respond /(tele)?phone\s*(me)?$/i, (msg) -> msg.send ":phone: tel:360-318-2000"

Slide 37

Slide 37 text

hubot: Card "User story #17" added to "backlog"

Slide 38

Slide 38 text

module.exports = (robot) -> unless trelloKey and trelloToken console.log "Provide HUBOT_TRELLO_KEY and HUBOT_TRELLO_TOKEN to enable Trello subscriptions" return robot.brain.data.trelloSubscriptions ?= {} robot.brain.data.trelloState ?= {} # UTILITIES sendToRooms = (listid, message) -> # Figure out which rooms get this message for roomid of robot.brain.data.trelloSubscriptions if listid in robot.brain.data.trelloSubscriptions[roomid] robot.messageRoom roomid, message isReportable = (listid, action) -> switch action.type when 'updateCard' then action.data.listAfter.id == listid else true listName = (action) -> if action.data.list? action.data.list.name else action.data.listAfter.name updateStateForList = (listid) -> new TrelloApp(robot).fetchAddActionsForList listid, (actions) -> for a in actions when isReportable(listid, a) unless robot.brain.data.trelloState[a.id]? sendToRooms listid, "Trello card '#{a.data.card.name}' added to '#{listName a}'\n" + ":point_right: https://trello.com/c/#{a.data.card.shortLink}" robot.brain.data.trelloState[a.id] = true updateState = -> # Get a set of lists to query listids = {} for roomid of robot.brain.data.trelloSubscriptions for listid in robot.brain.data.trelloSubscriptions[roomid] listids[listid] = true for listid of listids updateStateForList listid # Check status every 30 seconds setInterval updateState, 30*1000 updateState()

Slide 39

Slide 39 text

> hubot where is @elizabeth

Slide 40

Slide 40 text

> hubot package 1Zfjkld9032

Slide 41

Slide 41 text

> hubot rf run integration

Slide 42

Slide 42 text

> hubot provision 1 front-end

Slide 43

Slide 43 text

> hubot tweets burger near Blaine

Slide 44

Slide 44 text

hubot: @channel response time is 24367ms !

Slide 45

Slide 45 text

> hubot htop fe-6

Slide 46

Slide 46 text

> hubot graph -2d @app.version

Slide 47

Slide 47 text

> hubot tweet We just shipped something great!

Slide 48

Slide 48 text

BUT WHAT ABOUT...?

Slide 49

Slide 49 text

▸ Address and phone number ▸ Trello notifications ▸ Foursquare location ▸ Package tracking ▸ Rainforest test runs ▸ AWS EC2 instance management ▸ Twitter search ▸ …

Slide 50

Slide 50 text

WE ALWAYS WANT TO KNOW ABOUT THIS THING

Slide 51

Slide 51 text

THIS THING SHOULD BE EASY AND CORRECT

Slide 52

Slide 52 text

THIS THING SHOULD BE HIGHLY VISIBLE

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

THIS IS CHAT OPS

Slide 55

Slide 55 text

NERDS ONLY?

Slide 56

Slide 56 text

COMPANIES ARE ALL DIFFERENT

Slide 57

Slide 57 text

COMPANIES ARE ALL THE SAME

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

AUTOMATING AN ACTION SAYS ▸ We want this thing to be easy ▸ We want this thing to be correct

Slide 60

Slide 60 text

AUTOMATING AN ACTION SAYS ▸ We want this thing to be easy ▸ We want this thing to be correct ▸ We don't care how personal it is

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

No content

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

No content

Slide 68

Slide 68 text

No content

Slide 69

Slide 69 text

DON'T WORRY

Slide 70

Slide 70 text

GAMBLING

Slide 71

Slide 71 text

HOW IT WORKS

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

BENEFITS

Slide 74

Slide 74 text

!!!

Slide 75

Slide 75 text

▸ 150 gifts in first six months ▸ Average givings: $24/gift ▸ Average receivings: $25/mo

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

!highfive @nick $4.23 for finding something on Amazon for exactly $4.23

Slide 78

Slide 78 text

RECOGNITION

Slide 79

Slide 79 text

INCENTIVES

Slide 80

Slide 80 text

IMAGINIFICENCE(?)

Slide 81

Slide 81 text

EVERYONE'S JOB

Slide 82

Slide 82 text

GO DO THIS RIGHT NOW GET A CHAT GET A ROBOT AUTOMATE ALL THE THINGS

Slide 83

Slide 83 text

CHAT ROBOTS BEN STRAUB @BENSTRAUB