Slide 1

Slide 1 text

Hacking Your Emotional API v2.11

Slide 2

Slide 2 text

@emotional_api@hachyderm.io John Sawers Senior Engineering Manager at Privia Health @emotional_api@hachyderm.io http://emotionalapi.com he/his/him

Slide 3

Slide 3 text

“Emotions just make so much sense to me” — No One Ever

Slide 4

Slide 4 text

@emotional_api@hachyderm.io • Cry • Make a Scene • Whine • Yell Don’t

Slide 5

Slide 5 text

@emotional_api@hachyderm.io Do • • • •

Slide 6

Slide 6 text

@emotional_api@hachyderm.io We’re on our own

Slide 7

Slide 7 text

@emotional_api@hachyderm.io Endpoints /feels/sadness Creates Sadness Response POST /feels/joy Creates Joy Response POST /feels/love Creates Love Response POST /feels/anger Creates Anger Response POST /feels/fear Creates Fear Response POST /feels/shame Creates Shame Response POST

Slide 8

Slide 8 text

@emotional_api@hachyderm.io Middleware delete /job/12 put /events/mother/visit put /baby/new post /people/co-worker/insult get /people/boss/compliment /feels/sadness 
 /feels/anger 
 /feels/fear 
 /feels/anger 
 /feels/pride Senses Wetware Inputs

Slide 9

Slide 9 text

@emotional_api@hachyderm.io Middleware Wetware Inputs delete /job/12 put /events/mother/visit put /baby/new post /people/co-worker/insult get /people/boss/compliment /feels/sadness 
 /feels/anger 
 /feels/fear 
 /feels/anger 
 /feels/pride Senses

Slide 10

Slide 10 text

@emotional_api@hachyderm.io delete /job/12 put /events/mother/visit put /baby/new post /people/co-worker/insult get /people/boss/compliment /feels/sadness 
 /feels/anger 
 /feels/fear 
 /feels/anger 
 /feels/pride Senses

Slide 11

Slide 11 text

@emotional_api@hachyderm.io Methods delete '/job/:id' 
 100.times do 
 Thread.new(post('/feels/fear') 
 end 
 20.times do 
 Thread.new(post('/feels/sadness') 
 end 
 end

Slide 12

Slide 12 text

@emotional_api@hachyderm.io A Public API The Bad News

Slide 13

Slide 13 text

@emotional_api@hachyderm.io Decomposability

Slide 14

Slide 14 text

“But feelings are icky, and I don’t wanna” — You, probably

Slide 15

Slide 15 text

“Trying not to feel something doesn’t work, and in some cases even back fi res” David Rock Your Brain At Work[11]

Slide 16

Slide 16 text

@emotional_api@hachyderm.io Coding Solo

Slide 17

Slide 17 text

@emotional_api@hachyderm.io Cognitive Problems

Slide 18

Slide 18 text

@emotional_api@hachyderm.io Cognitive Problems • Poorer Executive Function [1]

Slide 19

Slide 19 text

@emotional_api@hachyderm.io Cognitive Problems • Poorer Executive Function [1] • Poorer Short Term Memory [2]

Slide 20

Slide 20 text

@emotional_api@hachyderm.io Cognitive Problems • Poorer Executive Function [1] • Poorer Short Term Memory [2] • Lower ability to handle stress and cope with crisis [3]

Slide 21

Slide 21 text

@emotional_api@hachyderm.io Cognitive & Health Bene fi ts • “…not just in improved behavior but in measurable academic achievement.”[5] • “…measurable health advantage”[9]

Slide 22

Slide 22 text

@emotional_api@hachyderm.io Coding Together

Slide 23

Slide 23 text

@emotional_api@hachyderm.io Cognitive & Social Bene fi ts • “Subjects made to feel powerful judged emotional expression more accurately.”[7]

Slide 24

Slide 24 text

@emotional_api@hachyderm.io Cognitive & Social Bene fi ts • “Subjects made to feel powerful judged emotional expression more accurately.”[7] • Better career advancement[8]

Slide 25

Slide 25 text

@emotional_api@hachyderm.io Cognitive & Social Bene fi ts • “Subjects made to feel powerful judged emotional expression more accurately.”[7] • Better career advancement[8] • Less self-centered [4] • Empathy!

Slide 26

Slide 26 text

@emotional_api@hachyderm.io "It wasn't enough to merely be a good engineer at Valve. If you were a good engineer with zero communication skills your chances at surviving and thriving when I was there were pretty low. If you acted like an asshole and didn't have many friends it didn't matter how good you were or how awesome your accomplishments were. People like this would be fi red sooner or later." - Rich Geldreich https://richg42.blogspot.com/2017/09/things-learned-while-running-your-own.html

Slide 27

Slide 27 text

Scenarios

Slide 28

Slide 28 text

@emotional_api@hachyderm.io Degraded Cognition

Slide 29

Slide 29 text

@emotional_api@hachyderm.io Advocate for Ideas

Slide 30

Slide 30 text

@emotional_api@hachyderm.io Code Reviews

Slide 31

Slide 31 text

@emotional_api@hachyderm.io Distraction

Slide 32

Slide 32 text

@emotional_api@hachyderm.io Problematic Teammates

Slide 33

Slide 33 text

@emotional_api@hachyderm.io Impostor Syndrome

Slide 34

Slide 34 text

@emotional_api@hachyderm.io Interviewed, Hired, Fired

Slide 35

Slide 35 text

@emotional_api@hachyderm.io Manage & Mentor

Slide 36

Slide 36 text

http://frontside.io/ Senior Software Developer

Slide 37

Slide 37 text

Toolkit

Slide 38

Slide 38 text

@emotional_api@hachyderm.io 🙂 Level 1: Conceptual Tools 😯 Level 2: On Your Own 😰 Level 3: With Someone Else 😱 Level 4: With a Group

Slide 39

Slide 39 text

@emotional_api@hachyderm.io 🙂 Level 1 Conceptual Tools

Slide 40

Slide 40 text

@emotional_api@hachyderm.io You Control The Implementation

Slide 41

Slide 41 text

@emotional_api@hachyderm.io You can control where and when you express your feelings (But you don’t have to)

Slide 42

Slide 42 text

@emotional_api@hachyderm.io get('/feels/anger').perform_later

Slide 43

Slide 43 text

@emotional_api@hachyderm.io They Don’t Mean Anything

Slide 44

Slide 44 text

@emotional_api@hachyderm.io Fear of Loss of Control

Slide 45

Slide 45 text

@emotional_api@hachyderm.io Feelings are Enumerable, not Boolean Anger Disgust Shame

Slide 46

Slide 46 text

@emotional_api@hachyderm.io There Is No Should

Slide 47

Slide 47 text

@emotional_api@hachyderm.io Emotional Debt

Slide 48

Slide 48 text

@emotional_api@hachyderm.io “Even if it feels bad, it’s ok to let it feel bad. Eventually you’ll stop feeling bad because feelings just don’t last very long” Amy Cuddy Presence[13]

Slide 49

Slide 49 text

@emotional_api@hachyderm.io 😯 Level 2 On Your Own

Slide 50

Slide 50 text

@emotional_api@hachyderm.io Move Your Body

Slide 51

Slide 51 text

@emotional_api@hachyderm.io • Dance • Sing • Exercise • Yoga

Slide 52

Slide 52 text

@emotional_api@hachyderm.io Rubber Duck Debugging

Slide 53

Slide 53 text

@emotional_api@hachyderm.io “…consciously recognizing the emotions reduced their impact.” David Rock Your Brain At Work[10]

Slide 54

Slide 54 text

@emotional_api@hachyderm.io Yup, talking

Slide 55

Slide 55 text

@emotional_api@hachyderm.io Logging

Slide 56

Slide 56 text

@emotional_api@hachyderm.io The Feel Wheel[12]

Slide 57

Slide 57 text

@emotional_api@hachyderm.io “I feel” vs. “I am”

Slide 58

Slide 58 text

@emotional_api@hachyderm.io Emotional Retro

Slide 59

Slide 59 text

@emotional_api@hachyderm.io 😰 Level 3 With Another Person

Slide 60

Slide 60 text

@emotional_api@hachyderm.io Again, Talking

Slide 61

Slide 61 text

@emotional_api@hachyderm.io Feel fi rst

Slide 62

Slide 62 text

@emotional_api@hachyderm.io Bring In A Consultant

Slide 63

Slide 63 text

@emotional_api@hachyderm.io I always liked this image

Slide 64

Slide 64 text

@emotional_api@hachyderm.io 😱 Level 4 With A Group

Slide 65

Slide 65 text

@emotional_api@hachyderm.io How did I get here? “…an intensive 20-hr Weekend Retreat in which you will explore your erroneous belief systems, learn to appropriately express emotions in a manner that heals…” Purpose • Passion • Peace http://aliceamos.me/p3retreat/

Slide 66

Slide 66 text

GET /feels/

Slide 67

Slide 67 text

@emotional_api@hachyderm.io Me

Slide 68

Slide 68 text

@emotional_api@hachyderm.io GET '/events/something/trivial' POST ‘/feels/anger'

Slide 69

Slide 69 text

@emotional_api@hachyderm.io Do

Slide 70

Slide 70 text

@emotional_api@hachyderm.io Safe Space

Slide 71

Slide 71 text

@emotional_api@hachyderm.io Throw A Fit

Slide 72

Slide 72 text

@emotional_api@hachyderm.io Throw A Fit

Slide 73

Slide 73 text

GET /feels/

Slide 74

Slide 74 text

@emotional_api@hachyderm.io delete /v5/parents/marriage 
 
 post /v6/parents/:dad_id/set_emotional_distance/1000 
 
 post /v8/parents/:dad_id/diseases/cancer 
 
 delete /v17/parents/:dad_id

Slide 75

Slide 75 text

@emotional_api@hachyderm.io /v5 delete /v5/parents/marriage do 
 20.times.do { 
 Thread.new(get('/feels/fear')) 
 Thread.new(get('/feels/sadness')) 
 Thread.new(get('/feels/blame')) 
 } 
 delete('/feels/self_worth') 
 end

Slide 76

Slide 76 text

@emotional_api@hachyderm.io /v8 post /v8/parents/:dad_id/diseases/cancer do 
 20.times.do { 
 Thread.new(delete('/v5/parents/marriage')) 
 Thread.new(get('/feels/fear')) 
 Thread.new(get('/feels/sadness')) 
 } 
 end

Slide 77

Slide 77 text

@emotional_api@hachyderm.io /v17 def /v17/parents/:dad_id do 
 1000.times.do { 
 Thread.new(post('/v8/parents/:dad_id/diseases/cancer')) 
 Thread.new(delete('/v5/parents/marriage')) 
 Thread.new(get('/feels/anger')) 
 Thread.new(get('/feels/sadness')) 
 } 
 end

Slide 78

Slide 78 text

@emotional_api@hachyderm.io Narrator: It did not blow over

Slide 79

Slide 79 text

@emotional_api@hachyderm.io Stack Trace NoMethodError - unde fi ned method `paternal_approval’ for BossClass: /me/feels/panic.rb:9:in `initialize' /me/feels/love/daddy:14:in `none_for_you’ /me/feels/fear/mistake/guaranteed_to_be_ fi red:21:in `realize_mistake’ /me/events/releases/prod/bug_count/metrics.rb:39:in `count_bugs’

Slide 80

Slide 80 text

@emotional_api@hachyderm.io Stack Trace NoMethodError - unde fi ned method `paternal_approval’ for BossClass: /me/feels/panic.rb:9:in `initialize' /me/feels/love/daddy:14:in `none_for_you’ /me/feels/fear/mistake/guaranteed_to_be_ fi red:21:in `realize_mistake’ /me/events/releases/prod/bug_count/metrics.rb:39:in `count_bugs’

Slide 81

Slide 81 text

“Crying doesn’t indicate you are weak, since birth it has always been a sign to indicate you are alive” — attributed to Charlotte Brontë

Slide 82

Slide 82 text

@emotional_api@hachyderm.io /v17 def /v17/parents/:dad_id do 
 1000.times.do { 
 Thread.new(post('/v8/parents/:dad_id/diseases/cancer')) 
 Thread.new(delete('/v5/parents/marriage')) 
 Thread.new(get('/feels/anger')) 
 Thread.new(get('/feels/sadness')) 
 } 
 end

Slide 83

Slide 83 text

@emotional_api@hachyderm.io Diff def /v17/parents/:dad_id do 
 1000.times.do { 500.times.do { 
 Thread.new(post('/v8/parents/:dad_id/diseases/cancer')) 
 Thread.new(delete('/v5/parents/marriage')) 
 Thread.new(get('/feels/anger')) 
 Thread.new(get('/feels/sadness')) 
 } 
 end

Slide 84

Slide 84 text

@emotional_api@hachyderm.io Diff get /me/events/releases/prod/bugs/count_high do 
 Thread.new(get('/feels/unloved')) 
 Thread.new(get('/feels/panic')) 
 puts 'oops' 
 fi x_it 
 move_on 
 end

Slide 85

Slide 85 text

@emotional_api@hachyderm.io Baggage

Slide 86

Slide 86 text

@emotional_api@hachyderm.io The Ultimate Goal

Slide 87

Slide 87 text

Soft Skills Super Hard Skills

Slide 88

Slide 88 text

@emotional_api@hachyderm.io Best Practices

Slide 89

Slide 89 text

@emotional_api@hachyderm.io Pick One Thing

Slide 90

Slide 90 text

@emotional_api@hachyderm.io DEEP BREATH

Slide 91

Slide 91 text

@emotional_api@hachyderm.io Thank You So Much https://emotionalapi.com/after-the-talk/ For more information, references, links, workshops, feel wheels, slides and videos, go to:

Slide 92

Slide 92 text

@emotional_api@hachyderm.io References [1],[2] “…a lack of power impairs our cognitive function.’ Amy Cuddy, Presence 119 [3] “In fact, people who have a high sense of personal control…cope signi fi cantly better in crisis…because their executive functions are intact” Amy Cuddy, Presence, 136 [4] “Powerlessness makes us self-absorbed” Amy Cuddy, Presence 121 [5] “Helping children improve their self-awareness and confidence, manage their disturbing emotional impulses and increase their empathy pays off not just in improved behavior but in measurable academic achievement.” — Daniel Goleman, Emotional Intelligence xi [6] “The [people who feel] powerful process information more abstractly, integrating information to extract the gist, detecting patterns and relationships” Smith, P.K., Dijkterhuis, A, & Wigbuldus, D.H. Psychology Science, 19, 1258-1259 [7] “Subjects made to feel powerful judged emotional expression more accurately.” Amy Cuddy, Presence 127 [8] “…having high leadership potential were far stronger in EI competencies…” Daniel Goleman, Emotional Intelligence xiii [9] “Those who can mange their emotional lives with more calm and self-awareness … have … distinct and measurable health advantage … confirmed by many studies” Daniel Goleman, Emotional Intelligence xi [10] “…when they were asked to name the emotion, the ventrolateral prefrontal cortex activated and reduced the emotional amygdala reactivity. In other words, consciously recognizing the emotions reduced their impact.” David Rock, Your Brain At Work 127 [11] Gross found that people who tried to suppress a negative emotional experience failed to do so. While they thought they looked fine outwardly, inwardly their limbic system was just as aroused as without suppression. Trying not to feel something doesn’t work, and in some cases even backfires. David Rock, Your Brain At Work 119 [12] The Feeling Wheel http://journals.sagepub.com/doi/abs/10.1177/036215378201200411