dockerfile/examples/omnivore/api/readabilityjs/test/test-pages/bookofhook.blogspot.com/distiller.html

876 lines
59 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div><div>Productivity is one of my pet topics, because it&#39;s always dogged me a bit, especially early in my career.  I&#39;d pull long days and nights and then realize I only actually worked (as in, typing in code, debugging stuff, and thinking about problems and their solutions) maybe 20% of the time.  Upon talking to coworkers, this seemed to be <i>normal, </i>a part of the expected friction costs incurred working in an office environment.  Meetings, shooting the shit with coworkers, lunch, email, and, er, <i>stuff</i>.<br/>
</div><img src="http://upload.wikimedia.org/wikipedia/en/9/93/Netscape_Navigator.png"/>This is what I mean by &#39;stuff&#39; in 1996<div>
Eventually working around high-productivity professionals like John Carmack made me realize that if you want to excel, then you have to work hard and focus the whole time.</div><img src="http://img2u.info/ckgni/i/c48b1ced.jpg"/>John Carmack Productivity Measurement Tool ca. 1998<div>
I remember Carmack talking about productivity measurement.  While working he would play a CD, and if he was not being productive, he&#39;d pause the CD player.  This meant any time someone came into his office to ask him a question or he checked email he&#39;d pause the CD player.  He&#39;d then measure his output for the day by how many times he played the CD (or something like that -- maybe it was how far he got down into his CD stack).  I distinctly remember him saying &#34;So if I get up to go to the bathroom, I pause the player&#34;. <br/>
<br/>
You know what&#39;s pretty hardcore?  Thinking that  <i>going to the bathroom</i> is essentially the same as fucking off.</div><div>
(Sidenote: my memory is hazy on this since it was long ago -- CD PLAYERS yo).<br/>
<br/></div><div>
That level of work ethic and focus is rare, particularly with my generation of programmers who were raised with the vile &#34;work smart, not hard&#34; mantra, coupled with the sense that we were somehow significantly brighter than most of our peers.  Combine those two notions and add the <a href="http://www.urbandictionary.com/define.php?term=Scotty%20Principle">Scotty Principle</a> and you get....me.</div><img src="http://cdn.memegenerator.net/instances/400x/36064437.jpg"/><div>If my coworkers were grinding through stuff that took them 20 hours, I&#39;d be all &#34;I work <i>smart</i>, not <i>hard</i>&#34; with accompanying snarky eye roll, and I&#39;d assume I could bust through an equivalent work load in four hours and still look like a goddamn superhero.</div><div>
And sometimes I could, so, hey, validation!  </div><div>
And you can skate by like this (God knows I did) for a long time before a couple things eventually rear their heads and bite you in your entitled face.</div><h4>
Productivity Deficit: Your Attitude Writing Checks Your Work Ethic Can&#39;t Cash</h4><div>
An overinflated sense of your own abilities creates a constant state of production deficit, because you assume that you can make it up with a burst of brilliance and/or crunch.  </div><div>
But there is no countering surplus to offset the deficit.  The only way surpluses show up is when you finish a (presumably) hard task much faster than you anticipated.  But instead of banking the surplus (i.e. moving on immediately to your next task), you spend it relaxing and screwing off because, whew, you just earned a small vacation by busting shit out in an hour that you thought would take all day.  Hey, what&#39;s on Facebook and Twitter right now?  Do I have any new mail?  No?  I wonder if anyone has tweeted something recently since the last time I checked...what about Reddit?  Oh, an inspirational/funny/cool YouTube video, it&#39;s only eight minutes long, let me watch it now!  (Eight minutes later) Sweet...what&#39;s up Twitter?  Oh man, I have to make a snarky response, but first I have to Google for that XKCD comic that totally makes my point for me...</div><div>
And before you know it, the day is done, and you&#39;re still feeling good because you finished in one hour what should have taken all day, so all good, right?<br/>
</div><h4>
Trap of the Easy Task</h4><div>
And yeah, it&#39;s often all good, but when operating at a slight deficit things can go pear shaped quickly when you accidentally spring the trap of the easy task.  Tasks so trivial that they barely register as work.  Update an SDK?  Hour, tops.  Implement this feature that I&#39;ve already done on every other platform?  Hour, tops.  This is all mindless grunt work that anyone could do, it&#39;s just clicking through dialog boxes, maybe changing a few lines of source, rebuilding, whatever.</div><div>
In other words, an easy task like this is <i>so</i> easy that it&#39;s a constant time cost for everyone irrespective of ability, so there&#39;s no opportunity nor need for crazy overestimation since <i>what could possibly go wrong?</i></div><div>
Well, as with so many things, it&#39;s the unexpected things that screw you the hardest.  The things that <i>should</i> be trivial end up taking days because, shit, that SDK install required a new compiler install, and the new compiler install failed and I can&#39;t uninstall it, and now I have to fucking WIPE MY WHOLE GODDAMN HARD DRIVE TO RECOVER.  Or you need to implement something that was trivial on nine other platforms, and it should be 30 minutes on platform number ten, except it lacks a base feature that is present on everything else, the compiler is dying with an &#34;Internal compiler failure 2033&#34;, the API call you need to use hangs the dev console immediately and, oh, the dev support site you use to get release notes is totally down for the foreseeable future.</div><div>
So what should have taken less than an hour took a week.</div><div>
It&#39;s like having a perfect monetary budget that assumes no crazy &#34;one time&#34; only bills, except life is full of crazy one time only bills and the only way you can keep those under control is by giving yourself a budgetary capacitor to dampen the fluctuations.</div><div>
And now you&#39;re defensive about losing a week to something stupid because you budgeted an hour for it and waited until the last second to do it and now the schedule has gone to hell, but it&#39;s not <i>your</i> fault, because it could have happened to anyone!  But if you had banked your surplus hours before and/or worked at closer to your theoretical peak effectiveness then this type of thing would get absorbed in the wash.</div><div>
And now you live in a state of mild panic because you&#39;re way smarter than all this but you&#39;re never actually getting things done on time.</div><h4>
Identity Recalibration Crisis</h4><div>
Which leads to a potential identity recalibration crisis upon landing at a company with high performers that work hard <i>and</i> smart.  And that will happen if you&#39;re good.  Now you&#39;re no longer at the top of the curve.  In fact, shit, you&#39;re in the middle or <i>bottom</i> of the curve, a situation your brain probably never considered as an option.<br/>
<br/>
</div><img src="http://img2u.info/ckgni/i/539249a2.jpg"/>This dude was my wake up call with respect to my<br/>
over inflated sense of skill<div>
I went through this when I went to id software.  I had rationalized that John Carmack&#39;s success was just a factor of timing and luck since, hell, he was my age, and I was pretty smart, so what else could it be?  Upon my arrival I had a crash course in humility, because he was <i>way</i> smarter than me and <i>way</i> more productive as well.<br/>
<br/>
This took a while to sink in, because until then I was used to believing I was one of the better programmers at a company.  And then working with Carmack I realized he was not just a little better, he was <i>orders of magnitude </i>better.  And I couldn&#39;t dismiss it with a &#34;But I write a lot of code&#34; hand wave, because he also wrote like 80% of the Quake code base.<br/>
<br/></div><div>
Sometimes it takes a while for this to sink in.  Sometimes it doesn&#39;t sink in at all, and you&#39;re let go because you&#39;re not very productive compared to your new team of high performers.  Sometimes it sinks in, and you panic and get depressed because your self-image has always been that of being the strongest swimmer in the school, and right now you&#39;re just trying not to drown, much less keep up with everyone else.</div><div>
But ideally you shrug off the old counter productive mentality and habits and emerge as another one of the high functioning team members, but that can take a lot of work, particularly if you have to get over years of giving it twenty percent.<br/>
</div><h4>
Killing the Underachiever</h4><div>
If my pithy advice were little more than &#34;Be more like John Carmack&#34; then I can imagine a lot of readers throwing up their hands and saying &#34;Well, fuck it, I&#39;m a lost cause, because that&#39;s not going to happen.&#34;  But what I can do is relate some of the things that helped me kill off some of my underachieving habits.  The point isn&#39;t to become a superstar, it&#39;s to become better, since that&#39;s always the first step.<br/>
<br/>
I don&#39;t believe in mechanical solutions (&#34;Turn off the internet&#34;, &#34;Listen to music&#34;, and stuff like that) because I don&#39;t think they address the core issues, which are psychological.  Instead I found that I had to do the following.<br/>
<br/>
</div><ol><li><b>Develop self-awareness</b>.  It took working with John Carmack and other high productivity programmers and <i>admitting that they were way more productive than me</i> before I really understood how much more productive I could be.  In other words, if you don&#39;t admit it&#39;s something worth improving, then obviously you&#39;re not going to search for a solution, and if that&#39;s the case, you should go <a href="http://www.reddit.com/">here </a>or <a href="https://www.facebook.com/">here</a>.</li><li><b>Give a shit</b>.  Originally I called this &#34;develop a sense of urgency&#34;, but really it&#39;s just about caring about getting your work done.  It doesn&#39;t even matter what you specifically care about!  It can be your professional image, your product, your team, your customers, whatever.  You just have to care about something that will drive you to getting things done, because if you don&#39;t, apathy will occupy that void.</li><li><b>Minimize uncertainty</b>.  In another blog article, <a href="http://bookofhook.blogspot.com/2012/09/productivity-vs-uncertainty-apathy.html">Productivity vs. Uncertainty and Apathy</a>, I talk about how poorly defined goals can lead to poor productivity.  If it&#39;s unclear what you need to get done <i>today</i>, then there&#39;s a reasonable chance you won&#39;t actually <i>do </i>anything today.</li><li><b>Commit to getting something done every day.</b>  When you show up in the morning have a well defined set of things to finish that day.  Stay as late as you have to in order to finish.  By committing to finishing that task other distractions will naturally fall by the wayside.  For example, I have jiu-jitsu training at 7pm.  If I screw off too much during the day, I don&#39;t get to train.  Also, by committing to a task, you avoid &#34;being busy&#34; instead of &#34;getting work done&#34;, <a href="http://bookofhook.blogspot.com/2013/01/being-busy-isnt-same-as-getting-work.html">they&#39;re not the same thing</a>.</li><li><b>Never say &#34;I&#39;ll finish it up tomorrow&#34; or &#34;I&#39;ll make up for it by coming in early/staying late/working the weekend&#34;. </b> This is an easy trap to get into, where you keep incurring time debt until at some point you realize you&#39;re now three weeks behind on a task that should have taken two days.  This is like racking up credit card bills assuming you can pay them off later.  Which is fine, until &#34;later&#34; arrives and you&#39;ve only accumulated more debt.</li><li><b>Do not overpromise to make up for poor productivity</b>.  There&#39;s a tendency when we&#39;re falling behind to try to overcompensate with future promises.  &#34;When I&#39;m done, it&#39;ll be AWESOME&#34; or &#34;I know I&#39;m late, but I&#39;m positive I&#39;ll be done by Monday&#34;.  By doing those things we just build more debt we can&#39;t pay off, and that will eventually lead to a catastrophic melt down when the super final absolutely last deadline date shows up.  Just get shit done, don&#39;t talk about how you&#39;re going to get shit done.</li><li><b>Have an objective productivity metric.</b>  This is a mechanical thing, but it acts as a reasonable backstop.  If you have changelogs you can reference, then it&#39;s easy to sit down on Friday and ask yourself &#34;What have I done this week?&#34;  And if you know that it&#39;s possible for others to check on you, then it makes you take each day a lot more seriously.  If you judge your value solely on output, not subjective things like &#34;being smart&#34;, you will be more productive.</li><li><b>Accept that &#34;the grind&#34; is part of the job</b>.  A friend of mine&#39;s father has a great quote: &#34;Son, i don&#39;t wake up every day and go to a place called fun. I wake up and go to a place called <i>work</i>&#34;  You can&#39;t get irate or frustrated that the bulk of the day is typing in boring code and dealing with bugs and other people.</li></ol><div>
I still screw off during the day.  I am not a code grinding automaton.  I read Facebook, chat with others, Tweet, shop on Amazon, get coffee, read forums, write blog posts like this one<i> </i>and I&#39;m <i>totally fine with that</i>.  </div><img src="http://cdn.memegenerator.net/instances/400x/36175351.jpg"/><div>
Because I know I&#39;m committed to getting things done as well.  So even though I&#39;m writing  this right now at 3pm, if I have to work until 8pm to get my shit done and checked in, I&#39;ll do that, so that tomorrow is a fresh start, not a day of &#34;Oh goddamit, let&#39;s try <i>again</i> to finish that task I started a week ago.&#34;</div><div>
Once I developed that sense of daily urgency my productivity went up considerably.  And if I&#39;m really productive in the morning and afternoon and feel like I can go home at 4pm with a clean conscience, I do that too, so I don&#39;t burn out.  </div><div>
It&#39;s a push/pull between banking surplus and generating a deficit, just make sure you don&#39;t do just one or the other.</div><div>
Posted <abbr title="2013-03-12T23:10:00.003Z">12th March 2013</abbr> by Unknown
</div><ol><li><div>
<div>
<a title="25th April 2014" href="http://bookofhook.blogspot.com/2014/04/this-advice-is-worthless.html">
<div>Apr</div>
<div>25</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2014/04/this-advice-is-worthless.html" rel="bookmark">
This Advice Is Worthless</a>
</h1>
</div>
<div>I was originally going to write this blog about a different topic, one of the endless online discussions about &#34;How to get better at this thing you suck at&#34;.  Then I realized it was pointless.<br/>
<br/>
Many &#34;How to make your life/code/job/hobby better&#34; blogs are very well written, insightful, and even inspirational.  They provide awareness into our failings and weaknesses and hint at ways in which we can improve.  They give us strategies and high level conceptual ideas on how to approach problems.<br/>
<br/>
The issue is that it&#39;s all mostly pointless.  Finding the best plan doesn&#39;t mean we&#39;ll execute it, because very often the problem is that we suck at execution. The very things we&#39;re trying to fix are often the very things that prevent us from fixing them.<br/>
<br/>
Or, put another way, it&#39;s a rare situation where someone doesn&#39;t know what to do, is told what to do, then goes off and just does it.<br/>
<br/>
Have a nice day.<br/>
<br/></div>
<div>
<div>
Posted <abbr title="2014-04-25T15:39:00.005Z">25th April 2014</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="12th March 2013" href="http://bookofhook.blogspot.com/2013/03/smart-guy-productivity-pitfalls.html">
<div>Mar</div>
<div>12</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2013/03/smart-guy-productivity-pitfalls.html" rel="bookmark">
Smart Guy Productivity Pitfalls</a>
</h1>
</div>
<div>Productivity is one of my pet topics, because it&#39;s always dogged me a bit, especially early in my career.  I&#39;d pull long days and nights and then realize I only actually worked (as in, typing in code, debugging stuff, and thinking about problems and their solutions) maybe 20% of the time.  Upon talking to coworkers, this seemed to be <i>normal, </i>a part of the expected friction costs incurred working in an office environment.  Meetings, shooting the shit with coworkers, lunch, email, and, er, <i>stuff</i>.<br/>
<table><tbody>
</tbody></table></div></div><img src="http://upload.wikimedia.org/wikipedia/en/9/93/Netscape_Navigator.png"/><div><table><tbody>
<tr><td>This is what I mean by &#39;stuff&#39; in 1996</td></tr>
</tbody></table>
<br/>
<div>
<div>
Eventually working around high-productivity professionals like John Carmack made me realize that if you want to excel, then you have to work hard and focus the whole time.</div>
<div>
<table><tbody>
</tbody></table></div></div></div><img src="http://img2u.info/ckgni/i/c48b1ced.jpg"/><div><div><table><tbody>
<tr><td>John Carmack Productivity Measurement Tool ca. 1998</td></tr>
</tbody></table>
I remember Carmack talking about productivity measurement.  While working he would play a CD, and if he was not being productive, he&#39;d pause the CD player.  This meant any time someone came into his office to ask him a question or he checked email he&#39;d pause the CD player.  He&#39;d then measure his output for the day by how many times he played the CD (or something like that -- maybe it was how far he got down into his CD stack).  I distinctly remember him saying &#34;So if I get up to go to the bathroom, I pause the player&#34;. <br/>
<br/>
You know what&#39;s pretty hardcore?  Thinking that  <i>going to the bathroom</i> is essentially the same as fucking off.</div>
<div>
(Sidenote: my memory is hazy on this since it was long ago -- CD PLAYERS yo).<br/>
<br/></div>
<div>
That level of work ethic and focus is rare, particularly with my generation of programmers who were raised with the vile &#34;work smart, not hard&#34; mantra, coupled with the sense that we were somehow significantly brighter than most of our peers.  Combine those two notions and add the <a href="http://www.urbandictionary.com/define.php?term=Scotty%20Principle">Scotty Principle</a> and you get....me.</div>
<div>
</div></div><img src="http://cdn.memegenerator.net/instances/400x/36064437.jpg"/><div><div>If my coworkers were grinding through stuff that took them 20 hours, I&#39;d be all &#34;I work <i>smart</i>, not <i>hard</i>&#34; with accompanying snarky eye roll, and I&#39;d assume I could bust through an equivalent work load in four hours and still look like a goddamn superhero.</div>
<div>
And sometimes I could, so, hey, validation!  </div>
<div>
And you can skate by like this (God knows I did) for a long time before a couple things eventually rear their heads and bite you in your entitled face.</div>
<div>
<h4>
Productivity Deficit: Your Attitude Writing Checks Your Work Ethic Can&#39;t Cash</h4>
</div>
<div>
An overinflated sense of your own abilities creates a constant state of production deficit, because you assume that you can make it up with a burst of brilliance and/or crunch.  </div>
<div>
But there is no countering surplus to offset the deficit.  The only way surpluses show up is when you finish a (presumably) hard task much faster than you anticipated.  But instead of banking the surplus (i.e. moving on immediately to your next task), you spend it relaxing and screwing off because, whew, you just earned a small vacation by busting shit out in an hour that you thought would take all day.  Hey, what&#39;s on Facebook and Twitter right now?  Do I have any new mail?  No?  I wonder if anyone has tweeted something recently since the last time I checked...what about Reddit?  Oh, an inspirational/funny/cool YouTube video, it&#39;s only eight minutes long, let me watch it now!  (Eight minutes later) Sweet...what&#39;s up Twitter?  Oh man, I have to make a snarky response, but first I have to Google for that XKCD comic that totally makes my point for me...</div>
<div>
And before you know it, the day is done, and you&#39;re still feeling good because you finished in one hour what should have taken all day, so all good, right?<br/>
<h4>
Trap of the Easy Task</h4>
</div>
<div>
And yeah, it&#39;s often all good, but when operating at a slight deficit things can go pear shaped quickly when you accidentally spring the trap of the easy task.  Tasks so trivial that they barely register as work.  Update an SDK?  Hour, tops.  Implement this feature that I&#39;ve already done on every other platform?  Hour, tops.  This is all mindless grunt work that anyone could do, it&#39;s just clicking through dialog boxes, maybe changing a few lines of source, rebuilding, whatever.</div>
<div>
In other words, an easy task like this is <i>so</i> easy that it&#39;s a constant time cost for everyone irrespective of ability, so there&#39;s no opportunity nor need for crazy overestimation since <i>what could possibly go wrong?</i></div>
<div>
Well, as with so many things, it&#39;s the unexpected things that screw you the hardest.  The things that <i>should</i> be trivial end up taking days because, shit, that SDK install required a new compiler install, and the new compiler install failed and I can&#39;t uninstall it, and now I have to fucking WIPE MY WHOLE GODDAMN HARD DRIVE TO RECOVER.  Or you need to implement something that was trivial on nine other platforms, and it should be 30 minutes on platform number ten, except it lacks a base feature that is present on everything else, the compiler is dying with an &#34;Internal compiler failure 2033&#34;, the API call you need to use hangs the dev console immediately and, oh, the dev support site you use to get release notes is totally down for the foreseeable future.</div>
<div>
So what should have taken less than an hour took a week.</div>
<div>
It&#39;s like having a perfect monetary budget that assumes no crazy &#34;one time&#34; only bills, except life is full of crazy one time only bills and the only way you can keep those under control is by giving yourself a budgetary capacitor to dampen the fluctuations.</div>
<div>
And now you&#39;re defensive about losing a week to something stupid because you budgeted an hour for it and waited until the last second to do it and now the schedule has gone to hell, but it&#39;s not <i>your</i> fault, because it could have happened to anyone!  But if you had banked your surplus hours before and/or worked at closer to your theoretical peak effectiveness then this type of thing would get absorbed in the wash.</div>
<div>
And now you live in a state of mild panic because you&#39;re way smarter than all this but you&#39;re never actually getting things done on time.</div>
<div>
<h4>
Identity Recalibration Crisis</h4>
</div>
<div>
Which leads to a potential identity recalibration crisis upon landing at a company with high performers that work hard <i>and</i> smart.  And that will happen if you&#39;re good.  Now you&#39;re no longer at the top of the curve.  In fact, shit, you&#39;re in the middle or <i>bottom</i> of the curve, a situation your brain probably never considered as an option.<br/>
<br/>
<table><tbody>
</tbody></table></div></div><img src="http://img2u.info/ckgni/i/539249a2.jpg"/><div><div><table><tbody>
<tr><td>This dude was my wake up call with respect to my<br/>
over inflated sense of skill</td></tr>
</tbody></table>
I went through this when I went to id software.  I had rationalized that John Carmack&#39;s success was just a factor of timing and luck since, hell, he was my age, and I was pretty smart, so what else could it be?  Upon my arrival I had a crash course in humility, because he was <i>way</i> smarter than me and <i>way</i> more productive as well.<br/>
<br/>
This took a while to sink in, because until then I was used to believing I was one of the better programmers at a company.  And then working with Carmack I realized he was not just a little better, he was <i>orders of magnitude </i>better.  And I couldn&#39;t dismiss it with a &#34;But I write a lot of code&#34; hand wave, because he also wrote like 80% of the Quake code base.<br/>
<br/></div>
<div>
Sometimes it takes a while for this to sink in.  Sometimes it doesn&#39;t sink in at all, and you&#39;re let go because you&#39;re not very productive compared to your new team of high performers.  Sometimes it sinks in, and you panic and get depressed because your self-image has always been that of being the strongest swimmer in the school, and right now you&#39;re just trying not to drown, much less keep up with everyone else.</div>
<div>
But ideally you shrug off the old counter productive mentality and habits and emerge as another one of the high functioning team members, but that can take a lot of work, particularly if you have to get over years of giving it twenty percent.<br/>
<h4>
Killing the Underachiever</h4>
If my pithy advice were little more than &#34;Be more like John Carmack&#34; then I can imagine a lot of readers throwing up their hands and saying &#34;Well, fuck it, I&#39;m a lost cause, because that&#39;s not going to happen.&#34;  But what I can do is relate some of the things that helped me kill off some of my underachieving habits.  The point isn&#39;t to become a superstar, it&#39;s to become better, since that&#39;s always the first step.<br/>
<br/>
I don&#39;t believe in mechanical solutions (&#34;Turn off the internet&#34;, &#34;Listen to music&#34;, and stuff like that) because I don&#39;t think they address the core issues, which are psychological.  Instead I found that I had to do the following.<br/>
<br/>
</div></div><ol><li><b>Develop self-awareness</b>.  It took working with John Carmack and other high productivity programmers and <i>admitting that they were way more productive than me</i> before I really understood how much more productive I could be.  In other words, if you don&#39;t admit it&#39;s something worth improving, then obviously you&#39;re not going to search for a solution, and if that&#39;s the case, you should go <a href="http://www.reddit.com/">here </a>or <a href="https://www.facebook.com/">here</a>.</li><li><b>Give a shit</b>.  Originally I called this &#34;develop a sense of urgency&#34;, but really it&#39;s just about caring about getting your work done.  It doesn&#39;t even matter what you specifically care about!  It can be your professional image, your product, your team, your customers, whatever.  You just have to care about something that will drive you to getting things done, because if you don&#39;t, apathy will occupy that void.</li><li><b>Minimize uncertainty</b>.  In another blog article, <a href="http://bookofhook.blogspot.com/2012/09/productivity-vs-uncertainty-apathy.html">Productivity vs. Uncertainty and Apathy</a>, I talk about how poorly defined goals can lead to poor productivity.  If it&#39;s unclear what you need to get done <i>today</i>, then there&#39;s a reasonable chance you won&#39;t actually <i>do </i>anything today.</li><li><b>Commit to getting something done every day.</b>  When you show up in the morning have a well defined set of things to finish that day.  Stay as late as you have to in order to finish.  By committing to finishing that task other distractions will naturally fall by the wayside.  For example, I have jiu-jitsu training at 7pm.  If I screw off too much during the day, I don&#39;t get to train.  Also, by committing to a task, you avoid &#34;being busy&#34; instead of &#34;getting work done&#34;, <a href="http://bookofhook.blogspot.com/2013/01/being-busy-isnt-same-as-getting-work.html">they&#39;re not the same thing</a>.</li><li><b>Never say &#34;I&#39;ll finish it up tomorrow&#34; or &#34;I&#39;ll make up for it by coming in early/staying late/working the weekend&#34;. </b> This is an easy trap to get into, where you keep incurring time debt until at some point you realize you&#39;re now three weeks behind on a task that should have taken two days.  This is like racking up credit card bills assuming you can pay them off later.  Which is fine, until &#34;later&#34; arrives and you&#39;ve only accumulated more debt.</li><li><b>Do not overpromise to make up for poor productivity</b>.  There&#39;s a tendency when we&#39;re falling behind to try to overcompensate with future promises.  &#34;When I&#39;m done, it&#39;ll be AWESOME&#34; or &#34;I know I&#39;m late, but I&#39;m positive I&#39;ll be done by Monday&#34;.  By doing those things we just build more debt we can&#39;t pay off, and that will eventually lead to a catastrophic melt down when the super final absolutely last deadline date shows up.  Just get shit done, don&#39;t talk about how you&#39;re going to get shit done.</li><li><b>Have an objective productivity metric.</b>  This is a mechanical thing, but it acts as a reasonable backstop.  If you have changelogs you can reference, then it&#39;s easy to sit down on Friday and ask yourself &#34;What have I done this week?&#34;  And if you know that it&#39;s possible for others to check on you, then it makes you take each day a lot more seriously.  If you judge your value solely on output, not subjective things like &#34;being smart&#34;, you will be more productive.</li><li><b>Accept that &#34;the grind&#34; is part of the job</b>.  A friend of mine&#39;s father has a great quote: &#34;Son, i don&#39;t wake up every day and go to a place called fun. I wake up and go to a place called <i>work</i>&#34;  You can&#39;t get irate or frustrated that the bulk of the day is typing in boring code and dealing with bugs and other people.</li></ol><div>
<div>
I still screw off during the day.  I am not a code grinding automaton.  I read Facebook, chat with others, Tweet, shop on Amazon, get coffee, read forums, write blog posts like this one<i> </i>and I&#39;m <i>totally fine with that</i>.  </div>
<div>
</div></div><img src="http://cdn.memegenerator.net/instances/400x/36175351.jpg"/><div><div><div><div>
<div>
<br/></div>
<div>
Because I know I&#39;m committed to getting things done as well.  So even though I&#39;m writing  this right now at 3pm, if I have to work until 8pm to get my shit done and checked in, I&#39;ll do that, so that tomorrow is a fresh start, not a day of &#34;Oh goddamit, let&#39;s try <i>again</i> to finish that task I started a week ago.&#34;</div>
</div>
</div>
<div>
Once I developed that sense of daily urgency my productivity went up considerably.  And if I&#39;m really productive in the morning and afternoon and feel like I can go home at 4pm with a clean conscience, I do that too, so I don&#39;t burn out.  </div>
<div>
It&#39;s a push/pull between banking surplus and generating a deficit, just make sure you don&#39;t do just one or the other.</div>
</div>
<div>
<div>
Posted <abbr title="2013-03-12T23:10:00.003Z">12th March 2013</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="20th February 2013" href="http://bookofhook.blogspot.com/2013/02/missing-features-are-better-than.html">
<div>Feb</div>
<div>20</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2013/02/missing-features-are-better-than.html" rel="bookmark">
Missing Features Are Better Than Partial Features</a>
</h1>
</div>
<div>Telemetry was the first product I worked on where I interacted directly with customers.  This interaction creates an interesting real time tension between working on big features with long development periods versus working on smaller features that can immediately benefit a small number of customers.<br/>
<div>
Typically it starts with a reasonable request -- let&#39;s call it Feature X -- so we don&#39;t want to just say &#39;no&#39;.  But of course, we have to deal with bug reports, customer support, sales assistance, new platforms and previously promised or planned features, and all within the constraint of monthly releases.  </div>
<div>
As a result the choice boils down to &#34;Do you want some of Feature X now, or all of Feature X much later?&#34;  In a perfect world we just do Feature X right and everyone wins, but in the real world of constrained bandwidth we have to be deliberate about scheduling work.</div>
<div>
Very often Feature X can be implemented in a limited form and the customer is happy because, hey, what wasn&#39;t possible is now possible.  And if we focus on just that customer&#39;s response then this is a net win, because that partial implementation may have taken only an hour whereas a proper, fully fleshed out implementation might have taken several days due to cascading side effects.</div>
<div>
The problem arises when you look at this new feature in context of other customers.  Now they see &#34;Whoa, Feature X, cool!&#34; or maybe just &#34;Huh, didn&#39;t know about Feature X, I&#39;ll give it a try&#34;.  The former camp has learned to work around the absence of Feature X, the latter camp didn&#39;t even know it existed and didn&#39;t care, but now that they&#39;re aware of it they want to use it.</div>
<div>
And this is when the partial implementation absolutely turns out to be the wrong call.  Because for that one customer who thinks &#34;Those guys are awesome, they were super responsive to a feature request!&#34; you now have multiple (potential) customers thinking &#34;This feature is janky, what the hell?&#34;</div>
<div>
And they don&#39;t care about the reasons for it.  They don&#39;t care that it wasn&#39;t even going to get implemented until a customer requested it, or the reasons that a full implementation isn&#39;t practical or maybe even possible, they&#39;re just kind of annoyed that Feature X is incomplete and/or buggy.</div>
<div>
The lesson is this: if you&#39;re not going to do it right, then you have to really think hard about whether it&#39;s worth doing.  Saying no to one customer is a lot better than explaining to all the others why Feature X isn&#39;t as good as they expect. And it&#39;s a tough thing to say, because it&#39;s easy to rationalize that a limited Feature X is better than no Feature X, but in my experience this is almost never the case.</div>
</div>
<div>
<div>
Posted <abbr title="2013-02-20T19:44:00.004Z">20th February 2013</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="8th January 2013" href="http://bookofhook.blogspot.com/2013/01/being-busy-isnt-same-as-getting-work.html">
<div>Jan</div>
<div>8</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2013/01/being-busy-isnt-same-as-getting-work.html" rel="bookmark">
Being Busy Isn&#39;t the Same As Getting Shit Done</a>
</h1>
</div>
<div>In software development it&#39;s easy to lose sight of the fact that we&#39;re supposed to be shipping software.  We can show up to work, be legitimately busy for eight or nine hours, go home, and then realize that we didn&#39;t get any closer to shipping. <br/>
<br/>
<div>
Many people are fine with this -- &#34;Well, I &#39;did stuff&#39;, so hey, all good, right?&#34; -- despite not getting any closer to shipping.  Their day was consumed with necessary-but-not-shipping tasks.  Things like installing software, replacing a hard drive, helping a coworker, setting up a dev kit, or debugging a feature you thought you were done with a year ago.  This hidden but large frictional load can easily consume so much of our time that over a given period of time, <i>we never actually get closer to ship</i>. <br/>
<br/>
This is particularly true with mature products, where you now spend a lot of time on non-development tasks  like support, sales, meetings, and training, and the &#39;being busy&#39; part can become so dominant that you never get around to shipping a new version.  This overhead is rarely factored into any schedule since coders are notoriously shitty at accounting for non-coding things.  We think in best case terms like &#34;That should take like a day&#34; with the assumption &#34;day&#34; means &#34;calendar day&#34; but we never get a calendar day to do stuff, so &#34;day&#34; means &#34;eight hours&#34; which takes a week to get done.<br/>
<br/>
Assuming that crunching non-stop is off the table as an option, I&#39;ve found that the biggest productivity boost I&#39;ve had comes from asking myself &#34;What do I need to get done today?&#34; instead of &#34;What will I work on today?&#34;.  By creating a sense of urgency to finish a well defined task I now have to be cognizant of all the little interruptions that interfere with that goal through the day.<br/>
<br/>
So get shit done and stop just being busy.  Or to quote David Wong (or Jesus, take your pick), <i>a tree is judged by its fruit</i>.<br/>
<br/>
<br/></div>
</div>
<div>
<div>
Posted <abbr title="2013-01-08T17:31:00.001Z">8th January 2013</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="11th September 2012" href="http://bookofhook.blogspot.com/2012/09/productivity-vs-uncertainty-apathy.html">
<div>Sep</div>
<div>11</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2012/09/productivity-vs-uncertainty-apathy.html" rel="bookmark">
Productivity vs. Uncertainty &amp; Apathy</a>
</h1>
</div>
<div>If you&#39;re not getting shit done, it may not be because you suck.  Traditionally unproductive workers get nailed with labels like <i>undisciplined, lack of focus</i>, or <i>poor work ethic</i>, but in my experience these are not nearly as influential as I&#39;d thought.<br/>
<br/>
Over the past two decades of coding, including stints in management/as a lead/and being self-directed with no immediate manager, I&#39;ve come to the conclusion that the main issues that impact productivity are <i>uncertainty</i> and <i>apathy</i>.<br/>
<br/>
When uncertainty kicks me in the nuts, it&#39;s usually in one of several flavors: <b>high-level uncertainty</b>, <b>strategic uncertainty</b>, and <b>low-level uncertainty</b>.<br/>
<br/>
<table><tbody>
</tbody></table></div></div><img src="http://img2u.info/ckgni/i/94fb1e59.jpg"/><div><table><tbody>
<tr><td>&#34;I feel like I should be doing something, but I have no idea where the fuck I am&#34;</td></tr>
</tbody></table>
<b>High-level uncertainty, </b>aka &#34;Where am I and what an I trying to do?&#34;,<b> </b>is when you have a general goal that comes with a set of implicit assumptions.  Those assumptions are a minefield you have to traverse as you try to get to your finished product.  You end up paralyzed because you&#39;re not sure which direction is safe, especially since none of the mines are marked.  For example, you might have the task of &#34;In the next month improve our network performance by 50%&#34;.  It seems like a concrete goal, but there are still a ton of hidden assumptions in there.<br/>
<br/>
<br/>
Solution: Constrain your problem so that what was once vague is now extremely well specified.  Constraints tend to dictate solutions.  Okay, I have to improve network performance by fifty percent.  Can I use more memory to do this?  Can I use more CPU?  How much more CPU?  Can I use a third party library?  Is our performance poor sending or receiving or both?  Under what conditions? <br/>
<br/>
Or, using our lost in the woods analog, <i>get a goddamn map.</i><br/>
<table><tbody>
</tbody></table></div><img src="http://2.bp.blogspot.com/-qOus7B8IArI/UYQI-9JFKRI/AAAAAAAAAOc/me2fCf_E8mc/s400/Greyhawk_1600x1024.jpg"/><div><table><tbody>
<tr><td>&#34;So we have a lot of bugs, and apparently orcs and dragons&#34;</td></tr>
</tbody></table>
Once questions like those are answered the scope of the problem and available solutions becomes a lot clearer, and we can move on to tackling the next problem.<br/>
<br/>
<b>Strategic uncertainty</b> occurs when you have a well defined goal but you&#39;re unsure how to go about it.  Using our previous example you&#39;ve determined that the problem is total network bandwidth, on both sides, and that you can sacrifice a lot of CPU to do it.  It seems to happen all the time under all conditions, and unfortunately most of the data going across the network comes from a bunch of different systems so you can&#39;t just pare down the data at one location.<br/>
<br/>
Now you have to come up with a technical solution.  You know you need to compress and decompress the data, but how?  Maybe you have no experience with compression algorithms, so now you&#39;re kind of stuck.  Do you just use zlib?  Or miniz?  Or do you license something?  Is there a hardware solution?  If there&#39;s no clear solution at hand (&#34;drop in zlib&#34;) then even very good programmers will spin their wheels, unsure of how to tackle it.  They just hope for a brilliant insight.<br/>
<br/>
Solution: Grind it out by talking to someone.  Having an office mate helps tremendously so you can just say &#34;I have to do this thing, I&#39;m not even sure how to tackle it&#34;.  People like to sound smart and give their opinions, so give someone else the opportunity to solve your problem for you!<br/>
<br/>
In this case the simplest solution is to use a package like zlib to compress and decompress your data.  Strategy defined!<br/>
<br/>
This leaves the day to day tasks of getting it done, and here&#39;s where <b>low-level uncertainty</b> can creep in.  Now you know what you&#39;re supposed to do at a fairly specific level (&#34;Implement zlib in our codebase so that the network layer is much faster&#34;) but at any given moment you&#39;re just staring at your editor, unsure what to do next. <br/>
<br/>
Solution: Make a list.  It&#39;s that simple.  Instead of writing code, start by getting yourself organized and enumerate all your fine grained tasks, no matter how small.  &#34;Find compression and decompression entry points&#34;.  &#34;Get compression code into build system&#34;.  &#34;Implement dummy implementation to verify integration works.&#34; &#34;Write a test harness&#34;.  etc.  Once you have a list, sort in terms of priority.  And if you have any tasks that would take longer than a day, go ahead and break them out into smaller tasks.<br/>
<br/>
You now have a clear road map from A to B, broken down into actionable items at a very fine grained level.  There&#39;s no more uncertainty.  If you&#39;re driving, this is the part where your GPS has figured out how to get you from  your current location to the nearest Five Guys without having to ask for directions or pull over.<br/>
<br/>
So what do you do if you&#39;re <i>still</i> not getting shit done?!  The glib answer is something along the lines of...<br/>
<br/>
<table><tbody>
</tbody></table></div><img src="http://img2u.info/ckgni/i/35cd00e6.jpg"/><div><div><table><tbody>
<tr><td>...but this doesn&#39;t really help, now does it?</td></tr>
</tbody></table>
It&#39;s likely that you&#39;re just not interested in the work.  If you&#39;re passionate and interested in something, then the work is fun and interesting and you want to do it.  Unfortunately a lot of the work we do in software -- in fact, the <i>bulk</i> of work in software development -- is excruciatingly dull.  Finding obscure bugs.  Dealing with build system issues.  Hunting down compiler switches.  Typing in the same code we&#39;ve typed in hundreds of times before.  Dealing with poor or missing API documentation.<br/>
<br/>
For this stuff, you just have to grind.  This is where work ethic and discipline can come into play, but I prefer to cheat and just try to stick to things I find interesting.  Unfortunately the amount of interesting things to work on in a typical software project is dwarfed by the sheer amount of bullshit tasks.<br/>
<br/>
<br/></div>
<div>
<div>
Posted <abbr title="2012-09-12T02:26:00.001Z">11th September 2012</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="8th August 2012" href="http://bookofhook.blogspot.com/2012/08/bug-classification.html">
<div>Aug</div>
<div>8</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2012/08/bug-classification.html" rel="bookmark">
Jankiness and the Taxonomy of Bugs</a>
</h1>
</div>
<div>Related to my principle of &#34;suffer no jankiness&#34;, I&#39;ve realized that almost all bugs can be distilled into three main categories: <b>I Have No Idea What I&#39;m Doing</b>; <b>Oops</b>; and <b>Oh Fuck You</b>.<br/>
<br/>
<b>I Have No Idea What&#39;s Going On</b> bugs are the worst, because they&#39;re due to a lack of comprehension of what&#39;s supposed to be occurring in the software (i.e. <a href="http://bookofhook.blogspot.com/2012/08/suffer-no-jankiness.html">jankiness</a>).  We attempt to &#34;fix&#34; these bugs by near random transformations until things &#34;work&#34;, but of course it&#39;s just masked, at best, until it crops up somewhere else.<br/>
<br/>
Examples of this include:<br/>
<br/>
<span>v.z = -v.z; // WTF?  No idea why this works.</span><br/>
<br/>
And:<br/>
<br/>
<span>char buffer[ sizeof( Foo ) + 128 ]; // Add extra just in case...</span><br/>
<br/>
&#34;In case&#34; of what?<br/>
<br/>
<span>LaunchThreads();</span><br/>
<span>Sleep(1000); // give it some time to startup</span><br/>
<br/>
&#34;Some time&#34;?  Where did the magical 1000ms value come from?<br/>
<br/>
And:<br/>
<br/>
<span>if ( !system.Initialized() )</span><br/>
<span>   system.Initialize(); // Just in case it wasn&#39;t initialized already</span><br/>
<br/>
Any time you see &#34;just in case&#34; in a comment, that&#39;s bad.<br/>
<br/>
<b>I Have No Idea What&#39;s Going On</b> bugs are a symptom of flailing about trying to make something work that would probably work if you just took a step back and started over from first principles.  But you&#39;re in a hurry, you&#39;re bored, you&#39;re frustrated, and you hope that one more transposition or sign flip will suddenly make everything right.<br/>
<br/>
These bugs are also really, really bad because <i>they breed</i>.  They create more bugs like themselves <i>and </i>they also create a ton of <b>Oh Fuck You</b> bugs for other programmers who have to figure out why the hell you decided that you needed to reset the graphics hardware state every time your function is called &#34;just in case&#34; it wasn&#39;t in a known good state.<br/>
<br/>
<b>Oops</b> bugs are the forgivable ones.  They don&#39;t show a lack of comprehension of the software, they were just dumb oversights, typos, copy and paste bugs, off-by-1, etc.  These are also generally the easiest bugs to hunt down because you&#39;re starting with a concrete mental model of how things are supposed to work, and then figuring out why it&#39;s not.<br/>
<br/>
<span>double l = sqrt( v.x*v.x + v.x*v.x + v.x*vx );</span><br/>
<br/>
Those happen to everyone.  Yeah, you can avoid them with better testing and what have you, but by and large they&#39;re not symptoms of incomprehension.  In my experience each programmer has a fixed rate at which they create these bugs, which is a reflection of their habits.<br/>
<br/>
<b>Oh Fuck You</b> bugs are the ones where, once you realize what&#39;s happened, you say &#34;Oh, <i>fuck you [entity name here]</i>&#34; because someone else has inadvertently sent you on an hours or days long bug hunt that is not of your doing. <br/>
<br/>
Compilers generate incorrect code, tools corrupt data, SDKs are incorrectly documented, third party libraries do the wrong thing, drivers are broken, someone overclocked their CPU which led to weird memory errors, etc.  These bugs tend to occur at a fixed rate irrespective of the individual programmer since they&#39;re out of control of the individual programmer.<br/>
<br/>
In a perfect world you only ever encounter <b>Oh Fuck You</b> bugs, but if you can keep the frequency of <b>Oh Fuck You</b> and <b>Oops</b> bugs higher than those of <b>I Have No Idea What&#39;s Going On</b> then you&#39;re probably doing pretty well.<br/>
<br/></div>
<div>
<div>
Posted <abbr title="2012-08-08T16:30:00.001Z">8th August 2012</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li><li><div>
<div>
<a title="8th August 2012" href="http://bookofhook.blogspot.com/2012/08/suffer-no-jankiness.html">
<div>Aug</div>
<div>8</div>
<div>
</div>
</a>
<h1>
<a href="http://bookofhook.blogspot.com/2012/08/suffer-no-jankiness.html" rel="bookmark">
Suffer No Jankiness</a>
</h1>
</div>
<div>I&#39;m fairly old (40+) for a programmer, and you&#39;d think most skill jumps would have occurred by now, and I think that in terms of raw ability that&#39;s true. Most people learn and apply everything in their first 10 years or whatever of doing things -- their experience will broaden as they get older, which provides a larger set of experiences to pattern match against, but by and large I think their basic &#39;programming smarts&#39; is set at that point. <br/>
<br/>
BUT, philosophical outlooks and habits can still grow, and these can materialize as skill jumps. Lately I&#39;ve been trying to be more intolerant of perceived jankiness in my code.<br/>
<br/>
A quick definition: code jankiness occurs when the mental model of your software is no longer accurate or complete.  Hacks are not janky, for example, as long as you know how and why they work.  This, on the other hand, is classic jankiness:<br/>
<br/>
<span>char buffer[ sizeof( foo ) + 128 ]; // a little extra, just in case...</span><br/>
<br/>
Every time you see &#34;This should never happen, but just in case&#34;, that&#39;s janky.  In fact, any time you see &#34;Just in case&#34; in a comment -- probably janky.  Defensive coding?  Total jankiness.  Checking against NULL even when there is no reason why that pointer should ever be NULL?  Janky.<br/>
<br/>
&#34;Creeping jankiness&#34; are all the little things that make you go &#34;Huh, that&#39;s weird&#34; but you ignore them because, hey, it didn&#39;t crash and nothing obviously wrong occurred. The absolute best programmers I&#39;ve ever known, without exception, are radically intolerant of their software acting in any way that does not match their mental models. If something happens -- no matter how small -- that they do not understand, they stop and go &#34;What just happened?&#34; <br/>
<br/>
Even if it takes them all day and even if it means that they fall behind in other areas.  It seems like a net productivity loss, but it&#39;s actually a net productivity win in the long term because you maintain a rock solid understanding of how your software works.<br/>
<br/>
I can think of at least three great examples of this.  The first was when I was at 3Dfx and the Voodoo chip was being developed.  Gary Tarolli, 3Dfx&#39;s CTO and the principal architect of Voodoo (then known as SST-1), was running some simulations that took a long time (a single frame of rendering would take well over a minute).  We&#39;d generate the frames (sometimes over night), then play them back as a movie for demos or whatever.<br/>
<br/>
<table><tbody>
</tbody></table></div></div><img src="http://img2u.info/ckgni/i/a9c5c157.jpg"/><div><table><tbody>
<tr><td>Obligatory reminder of that horrible 3Dfx logo</td></tr>
</tbody></table>
We did this with one of the demos, and during rendering there was a pixel that flickered for exactly one frame.  That was it.  Hardly noticeable, but there it was.  As a software guy I remember kinda shrugging and thinking &#34;Screw it, it looks right most of the time and it didn&#39;t crash, SHIP IT!&#34;  But Tarolli would not have any of that.<br/>
<br/>
After spending what seemed like a huge amount of time (I want to say it was at least a day), he found the bug and discovered that it wasn&#39;t a bug, but an unintended side effect of a feature that was totally legitimate.<br/>
<br/>
The second example was when I was at id software.  John Carmack was absolutely intolerant of rendering errors -- especially cracks, slivers and T-junctions in his BSP renderer.  He was devoutly religious about it, and this is one of the reasons that the Quake games had such an immensely heavy, solid feel to them. <br/>
<br/>
So of course one day we&#39;re testing things, and we see the occasional flash of a crack or a sliver.  This was pretty much an all-stop situation for him.  He spent a long time (I want to say at least a day -- and one Carmack Day is like Five Regular Dude Days) and finally narrowed it down to an issue specific to an ATI driver or card.  Now, most of us would be content to be all &#34;Whew, not my problem, let&#39;s move on!&#34; but of course Carmack had to know <i>how</i> the ATI driver was broken.<br/>
<br/>
It turned out to be their guard band clipper.  <a href="http://fgiesen.wordpress.com/2011/07/05/a-trip-through-the-graphics-pipeline-2011-part-5/">Guard band clipping</a> is a graphics driver optimization, but it can introduce cracks when done wrong.  If you&#39;re going to use guard band clipping, you <i>have</i> to clip against the guard band planes all the time.  You can&#39;t clip against them for some triangles then clip against the viewport for others -- that can introduce slivers between triangle edges.<br/>
<br/>
<table><tbody>
</tbody></table></div><img src="http://img2u.info/ckgni/i/12fdeffa.jpg"/><div><div><table><tbody>
<tr><td>I just needed a Quake 2 screenshot for symmetry...and to remember how goddamn dark that game was</td></tr>
</tbody></table>
I don&#39;t remember if that was a hardware bug or just a driver bug, but the point is that Carmack <i>knew</i> he didn&#39;t have those types of rendering errors, and when confronted with them he had to track down what was causing them.<br/>
<br/>
A more recent example of suffering no jankiness is Casey Muratori&#39;s <a href="http://the-witness.net/news/2012/12/finding-and-fixing-a-five-second-stall/comment-page-1/">dissection of a five second Windows stall</a>.  It&#39;s obvious that once the problem was fixed he could have moved on, but he was compelled to figure out what the hell was going on under the hood so he could have a better understanding of the software&#39;s interactions.<br/>
<br/>
That diligence reaps huge benefits, because very often these small problems are the first cracks in the codebase. By chasing after these now you stop larger problems from erupting later. In addition, by ensuring that only the things that you expect to happen actually happen, you&#39;re forced to keep a mental model of exactly what you think is happening in your head. If you become flippant about jankiness it&#39;s easy to eject global understanding (&#34;This is how the program works&#34;) to focus on localized concerns (&#34;Why is this function crashing?&#34;). Once that mental model of your software is corrupt or vague, you&#39;re in major trouble because you no longer know what to expect, and it becomes extremely hard to even detect non-crash bugs because you can&#39;t tell the difference between a bug and expected behaviour any more!<br/>
<br/>
I used to blow off this attitude as overengineering or intellectual wanking -- if it worked, that&#39;s what mattered, and I can be getting in a new feature while you&#39;re sitting there obsessing over code that works (for the most part...) -- but since then I&#39;ve decided I&#39;ve been doing it all wrong, and I need to have a solid understanding of all the code I write, if for no other reason than it makes things easier on me in the long run.<br/>
<br/></div>
<div>
<div>
Posted <abbr title="2012-08-08T15:49:00.000Z">8th August 2012</abbr> by Unknown
</div>
<div>
</div>
</div>
</div></li></ol><div>
<span>Blog Archive</span>
</div></div>