06:00 UTC Charta Aetatis Cyberpunk

Console Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · Lobsters · · 39:49 runtime

"Hammock Driven Development" (2010)

Comments

Transcript 6852 words · auto-generated captions

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

hi uh hello

hey as I said yesterday I swapped the talks around so this is the more philosophical talk uh

has multiple titles I couldn't decide um some of them were semi

[Music]

cranky in those moments and then uh Mark gave me a great uh a great uh feto line because so this is about step

one uh this is this is just an experience report it's not advocacy there's no methodology here or science or anything else so i' like you to try to think about when was the last time that you thought about something for an entire hour like nobody bothered you and you had an idea and you sat for an hour and thought about it how about for a whole

day does everybody remember last time I sat and thought about something for a whole day how about over the course of a month we had something you were working on and obviously you're not spending all the time every day when you start saying into a month um or a

year um these are tremendously valuable moments if you get to have them at all uh I consider myself extremely lucky to have had uh the ability to think about probably three different things for a

year or more one of them was

closure and there's nothing I prize more than that kind of time the other thing I'd ask is when was the last time that you felt confident uh trying to do something you had never done before and what do you think it takes to

become confident in doing something you've never done before right obviously a software developer ERS a lot of times you know we're doing the umth application that takes something out of a database and puts it on the web um but the lucky you are luckier you are the more likely you are to encounter problems you've never done before and uh how do you end up you know how do you start doing that and uh and not feel uh

incredibly at risk uh so start about by talking about some software development you know things we all know to be true right we hate bugs in our programs we're trying to write quality programs and we know if we let the programs reach the field it's incredibly expensive to you know fix

inadequacies inadequacies in the program right so we say okay we'll have a big testing process and quality assurance and even that we know is not so great because it sort of has this removal you know this distance from the development effort which is not good uh so now

we know we know what to do in this area right we fix bugs while we're coding by

testing and development and this is the best way to avoid bugs in our applications

right no the answer can did you notice

that I learned how to make each bullet happen one at a time so now you don't know what I'm going to say it's awesome like this menu item for it no definitely absolutely positively not uh the least expensive place to fix bugs is when you're designing your software which everybody does

yes right I will contend uh of all the

things I'm saying here which are very very extremely fuzzy um that without a doubt most of the big problems we have with software are problems of misconception we don't have a good idea of what we're doing before we do it and then go go go go and we do everything you know we have practices and all kinds of stuff and we feel really good about ourselves after that point um but if you mess it up you know as Mark said in Step One is not going to turn out well they're not problems of implementation there are problems of implementation obviously and testing and other things help with those uh but problem s of misconception are not generally addressed by testing or type

systems or the things we use to correct defects and implementation right there aren't really type systems that can tell us if uh we've got a good idea or what we're

doing um addresses that idea so I'm

going to talk a little bit about analysis and design I know that's so '90s and ugly and was

rightfully uh you know criticized and

really dropped because you know people considered it to be about process and drawing pictures and you know knowing everything about everything and making comprehensive plans and the waterfall model and there was amazing amounts of stuff that was terrible about this um but that it doesn't mean that the the step before go do it is not an

important step and I think we don't spend enough time and energy or or make enough time or get allocated time you know may not be a matter of our choice we'd say oh we'd like to spend some time thinking about it but you know we have to ship something next week uh but we are definitely suffering in quality because we we don't spend time here and so what I'd like to do is sort of just whatever you think analysis in design is i' like you to just forget for the moment and let's try to make a really simple definition analysis and design is about two things I identifying some

problem that we're trying to solve and assessing our proposed solution in terms of whether or not it solves that problem that's really what it's about not about anything else right we should be solving problems

right we should not be building features there's nothing about feature what is feature features just an attribute of something it's the shiny you know Chrome knob on something it's not the purpose of the car uh

there's no guarantee if you put together a feature list even if it comes from the customer um that it's going to solve their own problem or that it solves any problem or that the features when you put them together don't introduce a whole ton of other problems right so programming and writing software is not about completing lists of features uh in particular features

provided by users in spite of their best efforts to to satisfy themselves um are often really not good ideas and uh you've got to dig underneath it and figure out what problem they have and what's the best solution to it and then reconcile it with whatever they asked for um we also have a tendency because we're we're all smart and we love being smart and sort of figuring out how to make things go that you know figuring out how to make something go is good no matter what it took to do it right so if we can find a way to get around a problem we're like woo that's great um and it's not great right avoiding problems which we're all capable of doing very capable of doing isn't the same as solving them so we should really try to work on solving problems and the thing I'm going to talk about today is really that uh there there's a bunch of technique and and uh skill to solving problems uh

and the first one is just to make an effort to understand the problem you're working on to recognize identify it put it somewhere um and talk about it so

problem solving is definitely a skill I think you know you shouldn't take away from this talk that you know there's a certain kind of person who's like good at problem solving and they get to do this part of the job and then we we can practice these other things you can practice this part uh Pao wrote this amazing book called How to solve it in I don't know 1945 or something which is about how to practice how to practice and what are the techniques of solving math problems in this case and uh it's a terrific book full of great insight and if you've never read it go on to Amazon right after my talk and Order yourself a copy um one of the things that's not so great about the book is that it is in the math space right and in in that space um there's this really nice thing that happens when you're done and you think you have an answer you have all the techniques of mathematical proof to determine if you actually have whereas as software Developers we don't have that right there's no way to prove that you have a good solution to somebody's e-commerce site problem right there's no mathematical techniques and there's not going to be any anytime soon that will let us do that uh but it is a skill and it is something you can practice this is something you can learn about uh and uh and it's worth doing

right because as human beings we get good at what we practice it doesn't matter what it is it's amazing examples of people practicing things that they seem to have no uh potential hope to become good at and they get good at it because they practiced it um if you practice problem solving really practice problem solving you will get good at it um if you practice methodology X you will get good at that um and I'd

like you to ask yourself where do you think there's more leverage I don't care what x is pick any X you want would you

rather be good at it or the General skill of solving problems so what do we need to do if we're going to work on solving problems what what is what is the activity like uh the first thing is to actually say I solving this problem this problem is this blah blah blah blah blah and therefore blah I have seen so much software made where no one ever said that no one ever wrote that down and then we have a whole system and no one said what problem is supposed to solve if we're not soling in problems I have no idea why we're in this room we absolutely should be working on solving problems which means we should be we should be uh enumerating what they are and then from the mental standpoint which I'll talk about a little bit later it is actually important to say them out loud right as the person who's trying to solve a problem say say it have a conversation with somebody in your group and say we need to solve this the pro the problem is blah blah blah you know rant or talk and you know have a little conversation or write it down but just like you use the you know the practice of repeating somebody's name when you're introduced to them as a demonic to help you uh remember their name it's the same thing this is the seed of solving the problem is stating it so the next the next part which is definitely trickier and Po's book is great it's got a lot of practical things many of these are overlap what he said um is to understand the problem right so so if we said we have this problem um I think we need a a nosql database

right there's something missing right we have this problem we need to know SQL database we haven't actually said you know why some what are the characteristics of this problem that lead us to this solution space and and this is where all the interesting work is I think in software development right and so the first step is what do you know about what you're trying to do um there's definitely going to be a bunch of facts um there will be customer requirements there'll be other things there'll be context you the system has to run on this kind of box has to run for this long it can't consume more more than this many watts or has to support 10 million users whatever it is there are those kinds of things and constraints uh all the stuff are facts you know about what you're supposed to do right there will be things that right away you know you don't know right I wonder where we're going to

get you know the the the data as an

input to this thing um or what we're going to do when our main data source for it isn't available do we have a secondary thing there'll be things like that of course there will be things that you don't know you don't know well that's fair but if there's things you don't know um you should think about them now the other thing to do is to say you know everybody says you know oh I'm doing X you know I have this great idea for X as if you know you're the only person in the world that ever had this problem to solve that's very very unlikely so go find some other solutions to similar problems you know are there any others that you know about and what can you find out about them because looking at other solutions to the same problem is the number one way to get up to speed really quickly and start working ahead of you know the best known Solutions in this space uh and then because what you'll have to do then will just be an incremental Step Above what the last guy did but if you're ignoring what the last guy did you're starting from scratch so you definitely want to look around in the space all right now I'm not advocating a methodology or anything but if you're going to bother to do all this work you should write it down somehow some way I

don't care how the other thing you have to do is you have to be Discerning you have to you have to be critical um and we're

sort of in this world because there all this community stuff and it's like I just hear awesome it's like awesome happen I just hear it like 50 times a day um not everything is

awesome right and so it's hard to talk

about other people's stuff not being awesome so just I mean mainly focus on your own stuff in particular as you're finding Solutions actually trying to you know enumerate a solution to a problem um look for defects in your own solution and of course you can have a whole talk about this because there will be there will be technical errors there will be errors of logic there'll also be errors of uh taste and judgment and abstraction and all those kinds of things it all feeds into this and there's an entire talk in this this area but whatever um issues you can find in your own Solutions try to solve those too right away up front um uh if you so the other thing you see is

um oh I we're going to do this oh we can use no SQL Davis oh that's great it has these you know 10 attributes it's awesome uh uh it's really easy to get excited about the good parts of what you do uh but you should be looking for trade-offs the chances of there being no tradeoffs in any solution are slim the other thing is just this again this what what don't you know thing if if there's stuff you know you don't know there are questions you should be asking in order to find out what you don't

know you don't know everything right so

there should be question marks on the whatever it is you want to use that you're going to write all this stuff down there should be question marks on that page if there are no question marks you're missing the step uh the other thing is uh you know to think about uh you know none of us are born knowing how to write software uh none of us are born knowing about SQL or the characteristics of the web or protocols or anything else um and

if you're trying to solve a problem especially in a space where you haven't done it before um you're going to have a very limited ability to come up with Solutions if you don't have a lot of input right you're going to need to get a lot of different inputs so that you can let your brain go around between them and say oh yeah this idea and that idea are connected to each other and therefore I can do this other thing if you only take a really narrow slice of I see exactly what I'm doing right now right this second to deliver next week um you're not going to have enough inputs to make decisions so you want to read about the kind of space that you're in widely right very specifically o this other people try to do exactly the same thing and then broadly right there these other characteristic problems and maybe even if you want go try to find research papers that are kind of in the same space it's amazing the cool things you can find by searching something like ACM for papers about the kind of it's like oh I wonder if we could get a certain kind of hash code that does whatever you go into Google and type hash code that does whatever enter and if there's some scholarly and ACM references grab those papers even if you only understand like a tiny fraction of the paper it's likely to contribute to your ability to think about your problem the other thing is even if you're not going to tell the other guy when you're looking at other Solutions be extremely critical I can't tell you how often you're going to find the next best idea by completely crucifying the last guy's idea at least in your own head right take it apart right cuz when

you take it apart you're going to find a couple of things maybe they didn't write down when they were doing it so everybody says designs about

tradeoffs everybody knows this

right right usually when they're talking about trade-offs and their software they're talking about the parts of their software that suck right I had to make these tradeoffs uh that is not what a tradeoff

is right you have to look at at least

two solutions to your problem at least two and you have to figure out what's good and bad about those things right before you can say I made a

tradeoff uh so I really recommend that you do that and when you do it you might want to write that down

somewhere okay so let's talk a little bit more about practice uh a big part of trying to do this work is maintaining your focus um we had a really nice talk

yesterday about flow and that that is a kind of a focus related uh concept and

when you're trying to do design work you also need I think some of the most extreme Focus um you're going to ever need and so there's some cool aspects to the hammock one of the cool aspects to a hammock is that you can go in a hammock and you can close your eyes and no one knows that you're not sleeping but they won't bother you because they think you might be sleeping so it's a it's very cool uh computers are bad bad sources of

distraction they're so bad especially for people like us it's just like something else besides what I'm

trying to think about you desperately need to get away from the computer if you're trying to focus there's it's almost impossible to focus sitting at a computer the other thing about focus is that you're going to be making tradeoffs when you try to focus really intensely you're going to drop balls you're going to miss calling people back and responding to emails and doing your slides for conferences until the airport on the way

there and things like that

um that's just the game the one thing though is that um you should communicate to people that you care about about this process and the fact that when you're doing it you're going to seem pretty far away and that's not a comment about the person that you're you know you care about it's just the nature of doing this kind of work um so it's it is important to sort of do it a lot of people will not get time to do this all day every day or over the course of an entire week but if you're going to get some Focus time um you know Define what that is you know everybody knows about timeout time for little kids you know programs need this Focus time they like little kids they need to go sit on the hammock and have nobody bother them so for me personally I think that uh that the process involves um two parts of your mind and this is stuff that you're' seen there's books written about this and whatever and I haven't read them but uh but they seem to correspond to my personal experience which is that you sort of have this waking mind and background mind right and your waking mind is really at that criticizing part um it's extremely analytical um and it's very very good at tactics right right now we need to make a decision you know the lion is chasing after us jump left you we are really good at that that's what our waking mind is about um keeping us alive and uh and

making short-term decisions uh and looking at the immediately present uh information and doing something about it however if you think you're going to sit down and look at a problem for the first time and stare at your computer and do whatever and have a conversation for 10 minutes and make a really great decision I don't think so I know I can't do that uh definitely not the problem with this kind of thing is it tends to push uphill oh I see this oh I see that oh I okay here I have a choice left and right okay I can go right that's more up left and right it's right you know left that's more up more up it's this part of your thinking is really good at finding the local maximum um but it's not very good at getting off the track it's on and finding the fact that there's another Hill over there that really takes you

higher but there's a very very critical activity that you have to engage in I think if you want to use your entire brain and become very good at problem solving and that is to think about using your waking time to assign tasks to your

background mind right to actually think hard about something and create work for your background line um that really is the

point of the hammock and all this listing and all this work I'm going to talk about you're going to do when you're awake is actually to to give the other half of you stuff to do the other good thing about your waking mind is when you when you do think you have a great idea that you've come up with in your background mind um your waking mind is good at picking the other AP saying ah you know you thought you woke up with this brilliant idea but now I'm seeing this this characteristic of it that seems not so brilliant so let's talk about the background mind I'm not going to directly equate it with the sleeping mind um but the sleeping mind is the number one instance of background mind um you can find access to your background mind during the day uh while you're awake but um It's Tricky it's good at making connections right the kind of thing like if I leave my if I make a Hut out of mud

and it rains hard it will disintegrate um is not necessarily the kind of thing that you can tactically figure out your your background mind is going to know sort of aspects of all those different components that make the connections and synthesize them even when you think you're really hot at making decisions on the Fly you're almost always just regurgitating something your background mind has already figured out um so the background mind is good at synthesizing things it's about it's good about strategy right and so uh when Mark talks about you know abstractions and things like that abstractions are are are software strategy right because the idea there is you're making some super Global decision that's going to need to be correct in a whole bunch of contexts in which you can't make tactical decisions yet right what is it mean to make an abstraction you're going to D derive libraries from you know what does it mean to put something in a programming language where I had no idea what you guys are going to do about it you know with it right it's a it's a more strategic kind of thing you don't build a programming language and say how will this programming language deal with HTTP request you know what you want to do is give Mark something that he can use um

when he's got a tactical decision to make about HTTP requests and that's strategic kind of thinking and your background mind is good at strategic thinking if you want to do abstraction you have to find time to do this thinking because that's the part of your brain it comes from right it does abstraction it draws analogy right I think this is where you solve most non-trivial problems okay you can make good decisions in the moment uh otherwise but if you're really trying to solve something hard you've got to engage the other half of your of your head so I'm not just saying the Scientific American said that when we're sleeping

we process the information during the day because that's pretty obvious um but that sleep reinforces memory which is good I mean it is important to remember what you're working on but more importantly it is a great sorter out of things right so we had this whole I I just advocated taking a lot of input right taking a lot of input doing all this analysis of the requirements in the space right doing you know all the reading looking at you know competitive Solutions and tearing them apart that's like there's this ton of stuff when are you going to decide what about that is important and what isn't when you're asleep okay that's what happens Evolution has solved this problem for us uh and that's the solution it came up with we can't ignore it we have to use it but the most critical thing is this

one right finding hidden

relations and solving problems we were working on okay so imagine somebody said

says I have this problem uh this that that that that that that that and you look at it for 10 minutes and say okay I'm going to go AB the movies and do something else or whatever then you go to sleep you going to solve that problem in your sleep sure no or you're and you didn't think about it did you no you didn't think about it you didn't think about it hard enough while you were awake for it to become important to your mind when you were asleep and this goes back to that feeding your background mind thing you really do have to work hard just think not typing it in just thinking a br problem during the day so that it becomes an agenda item for your background mind that's how it works

right it's when people are out there and they're like oh my God how am I going to find food and this is happening there but I know I saw elk over there and they seem to be by the water sometimes or whatever that's when you wake up as a caveman and say let's go hunt for Animals by the water right it's not a logical deduction

you know it seems like that when you're program mind sort of analyzing it but there's no logic for that necessarily it's really a process of this very parallel kind of thinking um so this is very important so we have a problem in general because we write we we're just being asked to write suffer that's more and more complex um as time goes by and

and we know there's this 7 plus or minus 2 sort of working uh memory limit right and and as smart as any of us are we all suffer from the same limit uh but the problems that we're you know called upon to solve are much bigger than that normally so what do we do if we can't fit the whole thing in our head at the same time how can we work on a problem with more than nine

components right what I'm going to recommend is that you write all the bits down especially now you've written a lot down about the problem right you know what the problem is you know a lot lot of facts about it you know constraints about where it runs you know what you don't know you've asked yourself those questions you wrote them down I wish I knew blah um you looked at competitive things and said that works great over here but that part of that competitive thing sucks I hate that I wish that wasn't

there um you gave this huge agenda to your background mind and when you're trying to um load it up

you need to survey it and that's the point of writing it all down before if you've written all the stuff down including some sketch of how you want to solve the problem you can go and just sort of jump around and look at that and it's sort of like you know how many balls can you juggle well you can only juggle some many I can't juggle at all but if we look at the seven plus orus two thing we're going to say we could juggle seven to nine balls but if you can imagine um having an assistant who every now and then could take one of those out and put a different color in then you could juggle balls of 20 different colors at the same time as long as there were only nine in the air at any one point in time and that's what you're doing you're going to sort of look around at all these pieces and shift arbitrary shapes of seven into your head at different points in

time maybe you'll draw pictures don't

use the youl to work to do there it's not a methodology so go over and over

but then you must again step away from the computer there's another really important important part of doing this which is to go and sit somewhere and have no input and close your eyes and not go to sleep close your eyes because we have this other thing right everybody knows what it is it's really hard to describe but does everybody have a concept of their own their Mind's Eye right what you see when you close your eyes and you start thinking about something it's this weird I mean it's not actually technically visual though some people are really vibrantly visual I know for me it's it's I don't know I can't describe it but it's not very realistic um but you need to do that that that part is important for your brain uh because at that point you're switching out of sort of an input reception mode if you're just looking at your lists you're sort of in the mode of I'm getting input but when you're sitting and contemplating something and and and hashing it over in your head you don't have any other input which means you're exercising the recall I looked at those 20 points let's say it was just 20 I looked at those 20 points over and over and over again and I jumped around with input between them now I close my eyes and I'm trying to recall them and think about them a little bit more in my head and you're going to find if you've done the last step going over and over you will actually be able to sit on a hammock and pull all the different parts of a fairly large problem in and out of your head admittedly maybe one at a time and thinking think about them that way that exercise is really really important I don't know why it just is because it it forces this recall thing that definitely makes those things agenda items for your background mind so we'll call that Mind's Eye time now you're done cake is in the

oven you just have to wait it's so good um and and and one of the things I would say is at least wait overnight no matter how you know you and your buddies talked about it and you like you just feel like such a hot shot today I have got this thing um you know sleep on it at least

one night at least if it's an important decision um now how many people woke up this

morning with the answer to a hard

problem you see it's science science at work uh no it's

really kind of an unfortunate thing if you're not thinking about this you think what what happened I worked hard all day right I'm done working time to

relax unfortunately if you if you believe in what I'm saying today um you're actually doing something kind of important when you're sleeping so occasionally you really have to give your brain a chance to do that other part of the job if you always deny it I don't think you're going to um have the best results unfortunately sometimes overnight is not not enough some big problems especially finding really good abstractions or finding answers to things that satisfy a bunch of simultaneous constraints take a long time uh it just does and I'm I know

everybody has to ship and everything else and in that case a lot of what I'm saying doesn't apply and like I said before I consider it a huge opportunity when I get an extended amount of time to think about a problem because I know it I'll come up with a better answer um but one of the ways you can deal with this and not get styed by well let me just think about that for three months because most managers um are not incredibly receptive to that

sentence is to to just work on more than one thing right not inside one day okay

try to work on one thing each day but if over the course of time you have like three projects right it's quite possible to load one up and work on it for three days and find you're not um finding

answers to any of your question mark items or able to enumerate new possibilities so you're kind of stuck a little bit just switch to another project and do that for a few days um you have to amortize the loading up time it can take between an hour and an entire day to load up something so once you've done that you try to get at least the rest of the day or 3 days or or more on it uh but don't get don't get hung up about the stuck thing just switch right don't stay stuck switch or

get more input talk about it more you know keep stimulating the pathway don't don't say stuck on it but yeah then eventually cake comes out of the oven you wake up and you have a great idea you think you know the answer to your problem or you have a good idea for a solution um unfortunately uh sometimes you have an answer to the not the problem you were working on you you were working on three projects and you loaded up with project C and you woke up with the answer to project a uh that has to be okay right

you just just switch and take advantage of it at least capture it right if you wake up with an answer to some other thing that you can't work on that day capture the results of this background process they're really useful um finally you do have to take um your great ideas and figure out if they're actually great by either analyzing them more which is certainly important but sometimes you have to write them and type them into your computer actually we all have to do this so you do eventually have to code um it's fun Stu has this great sense he's seen some of my design sheets and I don't what you call this document of Despair or something you call it just like it seemed to be all like oh we can't do this this doesn't work like that question marks blah blah this other thing was just like all it's all negative but it's all challenges to the problem solving process it's not like it's not despairing it's positive it's saying I know what my challenges are and therefore I can work on them uh but you

spit this thing out now you have something so you try to you try to uh

try to avoid a lot of typing I know I do

uh because if I if I think I've got an answer and the answer is small that's one of the most telling attributes that

it's probably good uh and what I would hope from doing this

whole process is that uh you gain confidence in it after you've seen it work for you so that you say you know what I have never done this before but I really have thought about it and and this solution I came up with overnight feels awesome and and woo let's go um it

is important to look at what you did and to run it and see and find out new things about the solution and say ah you know I had the supposition it's not correct I thought it would have this characteristic it doesn't etc etc I am not advocating the warf fall model you're going to try stuff and go back that's fine but don't lean on this right

um test driven Dentistry I don't think I could come up with a better thing

right we can't really do that the last thing is um you are going

to be wrong I'm frequently wrong um that's

part of the game you're going to think of better ideas I think that's one of the most exciting things I think no matter what I've ever thought of the fact that I know I'm going to think of something better as much as that will suck a little bit because I know I delivered something was not the best means that I'm still going you know it's

still working so you will think of better ideas also the facts change right

they can change because of two reasons right one you missed some of them early on so they're new to you because you skipped them what else do we have changing requirements right it's

just you know we all know this the facts will change when the facts change do not dig in do it over again and see if your answer is still valid in the context of the new requirements the new facts and if it isn't change your mind and don't

apologize sometimes you'll just make mistakes errors in logic or you know miss you know you just you just get a wrong that's fine if I can Advocate

anything it's do not be afraid especially do not be afraid of being

wrong so in summary um this was a there's no

s I have two minutes for questions yes

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