06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · Hacker News (YC) · · 41:36 runtime

The Programming Ape (Code Hale, 2012) [video]

Comments

Transcript 6206 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

okay hi everybody uh welcome to the programming ape um today i'm going to be talking about how people think and why that matters to those of us in the infrastructure and operations worlds

my name is coda you might have seen me on twitter yelling about things i don't like or on github working on things i do like i'm the infrastructure architect at yammer the enterprise social network and the really the thing we're trying to do at yammer the really high level task that we're trying to accomplish is really we're trying to help businesses be better businesses we do this with our product which enables horizontal communication and collaboration between people inside of a particular company and so a big part of this is trying to address the kind of modern corporate affliction of information silos so by allowing people to to collaborate between departments right regardless of what the org chart says um we're helping them do their job and we're helping the business make money um so yammer as you might expect is a very flat interdependent uh horizontal kind of company and so it was in this environment that i had kind of a soylent green moment about software and i didn't run down the street yelling this particularly but i realized that i had spent so much time thinking about distributed systems thinking about computers thinking about software that i'd kind of forgotten why i was writing software in the first place so we write software to help people accomplish tasks and sometimes these tasks are very boring and we're writing financial reporting software but sometimes these tasks are really exciting and we're helping to put people on the moon but boring or exciting we're still writing software to enable ourselves and to enable other people to do things that is we build tools which get used by people now this may seem obvious but it raises a really interesting and really deep question what's a people

um because if you know if we're going to be building tools for people to use if humans are our intended targets for users we need to know what people are we need to know how they behave we need to know what they need we need to know how they think because just like an axe must fit the human hand in order to be useful software needs to fit the human mind

so for starters we know that people are not computers if you work with computers all day you begin to think of people as just really weird buggy computers

it's an occupational hazard but we're not computers we don't have unitary coherent minds

right despite what the phenomenology of consciousness is despite what it feels like to be conscious we're actually a jumble of of interdependent interacting conflicting cognitive processes

unlike a computer we don't have reliable minds what we think the way we feel what we do depends on our mood it depends on on our environment it depends on our physiological state it depends on things that we've seen recently and this will change our behavior predictably in ways that we don't even feel

and even our memory of things changes as time goes on as we reinterpret as we invent as we confabulate and this isn't a corruption of memory but this is the very process of human remembering itself so we're not computers we don't even have introspectible minds we don't even have access to the most of the mechanisms of our cognition it just is we can't so this is really really really important because it means that we can't just sit and think about sitting and thinking um there's no stack traces there's no reflection for the human mind

because we're not computers so we have human minds and the fact that my mind feels smooth and seamless on the inside doesn't mean the way that i think is actually smooth and seamless because just like human vision falls prey to optical illusions like the mueller liar illusion

human reasoning also falls prey to cognitive illusions like the monty hall paradox so luckily we don't actually need a full model of human cognition and even if we had one it's unlikely that we ourselves could understand it we care about how humans behave we care about what people do which is great because this is an observable thing this is something that we can see and as it turns out as a species we're incredibly interested in ourselves and in each other and so people people do this quite well and so the fact the past few decades of a study in cognitive science and behavioral economics have produced a wealth of information about human behavior and about human cognition

and so we have a a widely replicated a very solid set of cognitive biases that are now beginning to be explained by high-level models of how people think so human cognition it turns out looks a bit like this we have two radically different sets of cognitive machinery and i'm going to be terribly imprecise here i apologize to the scientists in the crowd but i'm going to call them intuition and attention which we interleave together to analyze our environment and make decisions

so let's start with intuition as a cognitive mechanism it's really easy to demonstrate what's this word what's this color what's two plus two all of these are examples of intuitive cognitive acts and they all share a a

set of common characteristics the first of which is that they're involuntary you didn't decide to read the word dog you didn't decide to see the color blue you didn't decide to add two and two it just kind of happened it's also very fast

intuitive cognition is what allows us to

throw a rock or slip a punch or block a goal or catch a falling glass or dodge a moving car in baseball hitting a fastball requires an analysis of the pitcher's body language the ball speed and trajectory it requires a complex coordination of musculature and proprioception and this has to be done in a fraction of a second

unless it's t-ball in which case you got a bit more time

so intuition is also effortless

we just do it naturally it happens all of the time we never feel worn out by having to maintain a four-dimensional model of the room that we're in we're never exhausted by having to see colors we don't feel drained by having to recognize words we have a relatively unlimited budget for this sort of thinking

most importantly intuition is invisible to us the word dog the color blue the answer for lept unbidden into our minds it just

happened we don't have any sense of this as cognition we have no experience of reading the word dog the word dog just happens so subjectively it doesn't feel like cognition subjectively it feels like reality it feels like the external word world um so that's intuition we use intuition we use that type of cognition when we just know where the chair in the room is when we just know how to complete a phrase when we feel happy when we see a picture of a puppy when we know that somebody's angry based on their face based on their voice based on the way that they're walking we use intuition when we read simple sentences or really stylish slides when we answer two plus two or if you're a programmer two to the eighth

so intuition is incredibly important because in addition to these really kind of mundane quotidian tasks it powers our most extraordinary leaps of creativity when we just see the solution to our problem

so the counterpart to intuition

is attention and attention is a little harder to command but we can try

what's 21 times 72

seriously

okay so your first reaction to seeing this was to recognize it as a multiplication problem specifically a hard one that is to say one that you've not memorized in a times table that's an intuitive act that's not actually paying attention and your second one which is actually a bit of attention is that you gave up you recognize that you don't care about the answer to this at all this doesn't affect your job this doesn't affect whether or not uh you have sex or whether or not you get fed or whether or not a predator eats you your reproductive fitness in this room is probably not going to be affected greatly by your ability to get this number so attention um it's voluntary obviously because we can choose not to do it so when i said you know multiplies 21 times 72 you didn't just see the answer obviously you instead you had to decide to calculate that and you had to focus on completing that task

um attention is also slow right so two plus two is is is incredibly quick nah 21 times 72 some of you had to say it out loud right because you got 2 and 21 and then you multiply 7 and 21 then you multiply that by 10 and then you add those things together so we have a we have a a small bounded working set for attention um and you can wrangle two-digit multiplication without special training without special tools it's just boring and takes some time but what about multiplying two three-digit numbers what about multiplying two four digit numbers what about trying to multiply two five digit numbers in your head basically impossible so the other part about attention is that it's difficult it is physiologically difficult to pay attention when i asked you to multiply 21 times 72 those of you who actually tried thank you but those of you who actually tried your pupils dilated your heart rate increased your galvanic skin response increased your brain began to burn more glucose in your frontal lobe and so attention is like a set of muscles we have a rechargeable but finite capacity for this sort of cognition and in order to conserve that capacity for when it's actually required for when you actually need to do something which might affect your ability to eat which might affect your ability to survive which might affect your ability to to reproduce in order to conserve it we're profoundly lazy with this sort of thinking which is why you saw that and bounced out entirely

so i had to cajole you into trying to multiply 21 times 72 because we are so lazy with this because i mean god knows i certainly didn't try to do that in my head it's incidentally 1512.

i used a calculator so finally attention is perceptible right we have an experience of paying attention we have a phenomenology of this sort of cognition we experience it as thinking as choosing as analyzing as deciding

we can even turn attention on itself and use it to evaluate our behavior how rational we're being we can double down and turn it on itself on itself and analyze how our evaluation of our rationality affected our behavior in the future after this talk you can think about how me talking about how we can think about how we can think might affect the way you think so the fact is that we have access this is the sort of thinking this is the sort of cognition that we actually have access to

and so it's not surprising that we tend to associate this with ourselves this is the sort of cognition that we that we tend to think of as as being us as being the self whereas intuition is just in the world so we use attention when we're looking for somebody in a crowd when uh we wonder if that was a firecracker or a gunshot um we use attention when we do math when we're waiting for the pitcher to throw the ball um and we use attention to evaluate how logical a person's arguments are is um so this is what you know we have these two sets of cognitive machinery intuition and attention one's involuntary the other is voluntary one's incredibly fast the other is really painfully slow one's difficult and used reluctantly one's

effortless and done constantly one's invisible to us to the point where we think it's the world and the other is so visible to us we think of it as ourselves it's the interplay between these two systems which produces human cognition so intuition is a gigantic associative engine and so you have this massive weighted graph of associated ideas and thoughts and emotions and memories and sense perceptions in your head and they're all stored with links to each other and the associations are reinforced when one of them is activated which so we have these tightly associated kind of groups of ideas like beer and hangover

or the smell of asphalt or the smell of rain on asphalt and coming home for for dinner as a kid and these associations are are activated in parallel which explains why we can think so quickly despite the fact that the individual components of our cognition are so slow right a synapse has maybe 10 to 100 impulses a second so you can't really do much with one synapse but if you have hundreds of trillions of synapses operating in parallel you can accomplish a whole lot in a very short period of time

so these associations are also primed every single thing that you see everything every single thing that you feel that you think triggers associations and because these associations decay over time recently triggered ideas become more likely to trigger in the immediate future so when you see this word

how would you then complete this word

you're probably going to see soap and not slap or snap or swap because you were primed with the word wash you saw the word wash and the ideas you associate with wash became primed making you more likely to see soap than swap that association was stronger and so it came out on top and so our intuition uses these associations for pattern matching we use these story associations to recognize patterns like two plus two equals four so when we see two plus two four comes to the top these patterns have a an associative coherence so we're always trying to match patterns and if you have enough patterns you can just create patterns for example giving given two random words uh swimming and road trip we immediately come up with a memory of going swimming on a road trip or the idea or just the image of a car parked by a lake now these are actually two literally two random words and i saw this and i thought of a road trip i had been on where i went swimming so it's only when we're presented with radically divergent information such as swimming and potato that our attention kicks in that's why you laugh your attention kicks in and it goes well like a potato that swims

so attention plays a regulatory role for our intuition it's constantly monitoring what's going on it's looking for abnormalities it's looking for anomalies it's looking for weird situations that we might actually need to expend this finite capacity on

because the because that capacity is finite our attention is also lazy this regulatory process is incredibly lazy

you woke up for 21 times 72 for split second like nope went back to sleep so the fact that it's lazy has some really interesting side effects for example if your sandwich costs 10 more than your drink and you paid twelve dollars for both how much did your drink cost here's a hint it's not two dollars

it's actually this your sandwiches you drink plus ten drinkable sandwiches twelve which means two drinks and ten is 12. two drinks is two dollars a drink is one dollar the sandwich is 11 but if you're not paying attention if that regulatory process decides this question is boring and about for about 80 of regular folks and even 50 of like top of the class ivy league students that they fail to see it as a system of linear equations that need to be evaluated instead our brain sees this

right and and hey that's easy that's you know i got to do it hey done i got it right so our brain pulls this bait and switch it swaps out a hard problem that we totally didn't care about for an easy problem that we can totally solve which unfortunately happens to be totally unrelated to what we were trying to do

this turns out to be an incredibly common problem for humans this is what a rationality is made of

it's a failure to engage our attention on what our intuition is doing and this can happen in a couple of different ways

classic way too long didn't read our attention can just you know trigger analyze the situation decide that 21 times 72 is boring and quits the thread so our original intention to do math gets replaced with an attention you know a much easier problem which is okay let's think about how many minutes until lunch there's also too subtle didn't notice right that the effect on our intuition can be so subtle that our attention literally does not recognize it as a change we can see this with the mirror exposure effect in which literally mere exposure to an arbitrary stimulus over time makes us feel positively about that arbitrary stimulus that's not something that we can pay attention to because we're constantly surrounded with things in fact that's the very kind of nature of being able to recognize anomalies the things we see in our everyday life probably haven't killed us yet they probably won't kill us in the future

so our attention can also be already engaged in another task we can be busy doing something and this leads to change blindness where uh we're so busy that we literally don't see objects right in front of us like a person in a gorilla suit walking through the frame or a person in a crosswalk

walking in front of our car

so because attention has this kind of physiological component to it

we if that capacity is exhausted if our ability to pay attention is is exhausted and we don't recharge with sleep or food

our brains are literally unable to focus just as if we are physically exhausted we can't actually move our muscles that's just it's a biomechanical reality and so our brains are unable to pay attention and this regulatory process goes right out the window so for attention this this produces what's called a state of ego depletion um where we are our our capacity for attention is exhausted and we become more selfish we become more judgmental we deviate from our diets we buy things impulsively we become more aggressive and more importantly we're terrible at thinking logically and making decisions

so the human mind it's no wonder that computers are kind of a mess but there's no other game in town this is what we have to work with this is it so what do we do some practical advice for building tools for humans

i've come up with really kind of like two broad strategies for building human-centric software and the first of this is that we need to leverage our intuition we have these amazing uh marvelous massive parallel processing systems just kind of like camping out on top of our spinal columns burning glucose most of the time and historically software has done a terrible job of utilizing it a really profoundly abysmal job so there's a lot of things that we think of as analytical tasks because that's what software makes us do that aren't actually analytical tasks they don't require attention we can perform these tasks intuitively

so one thing one way of transforming an analytical task into an intuitive task is to let our visual cortex do the work

we have a huge chunk of our brains dedicated to vision right which is what you would expect from a species that evolved eating fruit and brachiating and running away from predators and you know hunting

we have this massive gpu so let's actually start using it and we can do this by using humane information visualization um this is ganglia which is not particularly humane uh this requires attention to interpret i have to analyze this i have to i have to figure out what the hell is going on which means that my brain is either going to exhaust or use up not necessarily exhaust but use up some of this finite capacity for attention or i'm you know i'm hungover i'm tired uh i

got an argument with a co-worker i got an argument on twitter and my brain's just going to swap out the task of figuring out what's going on here for a much easier task that i can do intuitively for example how much do i like the person who wrote this software

that's why i feel bad about ganglia that's why i don't like ganglia so compare this to this so this allows us to use our visual i kind of got clipped off a little bit but this allows us to use our visual cortexes to do the work

we can look at this and we can analyze the situation so it restructures the data data is grouped by meaningful human time periods and it's colored by whether or not we should care about it so we can look at this at a glance we can look at this at a distance and we can see we can see patterns we know what the overall situation is this is a cluster in trouble specifically it's okay on the weekends but the week is terrible

so another thing that we can do to really leverage our intuition um is we need to build an ambient sense of awareness about the software that we write so in our evolutionary past a massive chunk of our cognition was dedicated to to maintaining an awareness of our environment and noticing when that environment should change like like changes so we have this kind of like this this incredible like set of associations for how the world should be it's normative this is what my house sounds like at night this is what the woods sound like at night and so when that reality changes when the crickets stop chirping in the middle of the night when you hear the sound of breaking glass in the middle of the night this is how our brains detect abnormality we can we can uh leverage our intuition to maintain a baseline of what's normal and then intuitively know when when reality deviates from that so modern systems need those crickets they need that sound of breaking glass that normative background noise for for uh for what we're trying to do

so here's an example of production monitoring at uh hitta which is a swedish company they use metrics and so

that's why i have this picture um so this is a lot of information to display and if you were actually kind of expecting people to pay attention to it yes that would require a massive amount of attention that's silly you're not going to actually stare at this and try to figure out what's going on instead this is background noise this is what you surround yourself with this is the sound of the woods at night so when one of these things changes your intuitive cognition will recognize that it will recognize that as a deviation you don't have to pay attention to it the whole time you can just monitor it in the background of your head

so finally if like if we're going to present information we really need to be presenting uh we need to be grouping it by context right so we have all of this information from all of these different sources and generally the way that we group these things is we group them by the means of their production and this is a line that i stole from uh from tufty

so we have you know host statistics over here we have application statistics come from over there and then there's the consumer analytics which is in this other thing and they're all in these little silos and so we have to go to the customer side of things to see what the customers are doing and we have to go to the host crap to see what the hosts are doing but that's completely and totally irrelevant to what we're actually trying to do so we need to start with the human in mind we need to start with this task that we're trying to help people accomplish and so instead of grouping things by the means of their production they need to be grouped by context we start with the task then we figure out what data is required to help people complete that task really good example of this is google finance um i adore google finance i don't actively invest but i just like looking at it so it's a massive amount of data and and that's great but what's really important is that the data comes from a bunch of different sources you've got the stock ticker and that's aggregated you've got news stories you've got analyzed events you've got uh summary statistics you've got comparisons to other things it doesn't matter that this comes from google news and this comes from you know

whoever does stock ticker i'm privileged not to know a blessed thing about that industry

so this is all dedicated all of this stuff is aggregated it's grouped by the context of allowing you to evaluate what's going on with apple's stock price that is the question that this is trying to answer and it does an incredibly good job of it

but we can only use intuition to do so much attention is still required for a profession as you might expect so what's really important is that we need to be able to conserve attention um because we have such a finite capacity for it and because things go so wrong so quickly when this capacity is exhausted we need to design tools which don't waste human attention

or cause unnecessary cognitive strain

this is a precious resource and we need to treat it like such we need to defend it and guard it just let me think of it as your own mental rainforest right this is this is the the wonderful kind of biodiversity cradle of your brain and the biggest thing that we can do here is to make daily life sustainable

um if the day-to-day operations of your business are a drama you're host if you are constantly firefighting you're screwed your daily routines are where you spend your life and so if your plan is to actually build a business instead of just flip some paper and a short con you need to make sure that the day-to-day uh behavior of your team the day-to-day experience of your team is something that they could do for the rest of their life that's difficult but we need to do this this is fundamentally the biggest way to move the needle on how much attention we have and a big part of this is automating as much as possible right so a dumb question i know who here has seen star trek okay next generation okay um so i was watching this episode a couple of months ago um because i had a cold um and netflix streaming um and so

there's this episode where they're on the enterprise they're a billion light years from earth and there's some people with funny foreheads and they're an invisible in an invisible ship and they're shooting at the enterprise right and one of the bridge officers is like ah a computer can you correlate where the shots have come from yes okay what are the feed those you know like like uh feed the projected coordinates into the phaser system and i'm sitting there watching this and i'm just kind of like you're in a spaceship you're a billion miles from earth and you're steering by spreadsheet

how did you get there where did the adults go this is just you know like like if like google docs is the primary you know driver if you're of your freaking 900 person faster than light craft like completely blows my mind modern software is like this right we have all of this computing power at our fingertips we can leverage the cloud you know we can like like modern software like modern servers are so fast i mean i feel old when i when i mess with them right like 64 gigs of ram is just nah it's a box and i'm kind of like what are we gonna do with it where are we gonna put it how do we keep the lights on so we have all this power and yet we are forcing ourselves by writing bad software to do boring inhuman tasks some examples of this

why do i have to correlate things myself i spend a lot of time correlating data sets from the same system and i don't even do it in a fancy way i don't crack open excel or r i don't have bash scripts for doing this i put my finger on the bump in the rd and then i scroll to see where the other bumps are

why do i have to do that why is that a human task why is this not correlated for me if i know where the problem is why can't i find things that are correlated with that problem not just by time but by the shape of the data itself okay you might be saying you know pearson product moment coefficient is complicated for big streaming data sets and you're right um so how about another one how about how about normalizing data

i deal with systems that give me you know like like 500 responses per second

like 500 error internal server error per second right and so that's okay i see a graph like this i'm like oh my god look there's a mountain right like this is that's bad that's bad this is bad then it kind of is this right and i start to freak out and then i go oh yeah yeah base rate it looks like this and i realize that i'm freaking out about tenths of basis points of the overall traffic if you're doing 20 000 requests a second and one or two a second fail okay i'll take it right this is probably not something i need to care about this is probably not something i need to get woken up about so we need to normalize data right we need to incorporate the idea of a base rate into everything that we give a human because otherwise what we're doing is we're forcing that person to remember to go find the base rate and then to compare those two and i guarantee you that because of the anchoring effect even that's not effective so we can eliminate just like a whole kind of host of category errors by incorporating the base rate into things and so here's where i get a little kind of wishlisty my pony is i want anomaly detection so so people are incredibly good at detecting some anomalies right if that sort of anomaly detection could have prevented us from being eaten by a leopard at some point we are really good at it we are badasses at not being eaten by leopards debugging cascading failures and complex software systems over a period of time

it's kind of a new thing so so a human-oriented tool a human-centric tool will at least try to detect anomalies even if that's just a simple moving average crossover system it'll at least take a swing at that

because again this is something where we have a lot of computing power and we're not using it effectively we live in an age of high frequency algorithmic trading and yet i am manually setting thresholds in zabics right something is seriously broken about that situation

so this is really just some low-hanging fruit there's a vast world of machine learning and machine intelligence that i'm actually not smart enough to understand being used in the financial fields and in the medical fields and there's a wealth of literature on strategies and tactics for applying this to kind of human tasks which means that there's a huge huge business opportunity for people who can actually successfully introduce this technology into the infrastructure and operations world but even automation has limits sad to say and at some point there will be an event there will be an incident a mystery an unfortunateness and we need to have a human

in the loop

so when this happens we need to create a distinct moment around this event around this incident

we need to create a moment of cognitive strain um so the best ops teams that i've that i've uh talked to um have like a war room where they physically relocate to when there's an emergency when there's a when there's something that they're responding to and so a big part of this is you know facilitating high bandwidth uh communication but i think a bigger part of it is the fact that it creates a moment of cognitive strain it creates a boundary and when you're inside the war room you're paying attention you are focused on the task at hand you know you can't be lazy you are engaged in what you are doing

and then when you're done when the emergency is resolved when the incident is closed you can leave this moment has ended and we can go back to our regular lazy day-to-day kind of regulatory attention we don't stay in this high state of alertness we don't then continue to you know exhaust our attention kind of continuing to stare at at r d graphs until four in the morning when we pass out so i realize i have purported to explain human cognition um i've talked about a lot of things and i'd like to just kind of recap to send you guys out with a uh with some things in mind so we have these two different sets of cognitive machinery um intuition and attention uh

the interplay between them is what makes us work and it's so intuition is a you know fast tireless association engine and then uh attention provides a regulatory process which looks out for anomalies which looks out for weird things and then engages by using a finite amount of resources

and because that that that capacity is a very real physiological thing uh we need to leverage intuition by using information visualization in a humane way to help people do things to help people use their visual cortexes to actually analyze stuff by building a sense of ambient awareness so we're not constantly on the lookout for things but instead we can just recognize those intuitively and by by providing context at a meaningful level by providing information which isn't segregated by you know the system that it came from we need to conserve attention um by making daily life sustainable by making it so that we can go to work without exhausting ourselves um by automating what we can and uh that has limits so when we actually do have emergencies those need to be bounded intentional moments of attention so this right here is what it means

to build tools which get used by people we have to know what people are we have to know how they behave we need to know how they think in order to accomplish in order to help them accomplish the tasks that's why we're writing software so i write software to help people get things done i write software to help businesses uh be better businesses and human centric tools can do this they can help us be more productive individually they can help us be vastly more productive as a collective but it's not just about this because really the only way to be productive the only way to fully leverage our intuition the only way to fully focus our attention is to be happy and so on that note let's get some lunch

you

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 536 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks