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

100 lines
17 KiB
HTML

<div id="readability-page-1" class="page">
<div itemscope="" itemtype="http://schema.org/BlogPosting" tabindex="0">
<meta itemprop="blogId" content="7943444959024231990">
<meta itemprop="postId" content="3209638659688275137">
<div itemprop="articleBody">
<p>Productivity is one of my pet topics, because it's always dogged me a bit, especially early in my career. &nbsp;I'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. &nbsp;Upon talking to coworkers, this seemed to be <i>normal, </i>a part of the&nbsp;expected friction costs incurred working in an office environment. &nbsp;Meetings, shooting the shit with coworkers, lunch, email, and, er, <i>stuff</i>.</p>
<table>
<tbody>
<tr>
<td><a href="http://upload.wikimedia.org/wikipedia/en/9/93/Netscape_Navigator.png" imageanchor="1"><img height="298" src="http://upload.wikimedia.org/wikipedia/en/9/93/Netscape_Navigator.png" width="320"></a></td>
</tr>
<tr>
<td>This is what I mean by 'stuff' in 1996</td>
</tr>
</tbody>
</table>
<br>
<div>
<p> Eventually working around high-productivity&nbsp;professionals like John Carmack made me realize that if you want to excel, then you have to work hard and focus the whole time.</p>
<div>
<table>
<tbody>
<tr>
<td><a href="http://img2u.info/ckgni/i/c48b1ced.jpg" imageanchor="1"><img height="207" src="http://img2u.info/ckgni/i/c48b1ced.jpg" width="320"></a></td>
</tr>
<tr>
<td>John Carmack Productivity Measurement Tool ca. 1998</td>
</tr>
</tbody>
</table>
<p> I remember Carmack talking about productivity measurement. &nbsp;While working he would play a CD, and if he was not being productive, he'd pause the CD player. &nbsp;This meant any time someone came into his office to ask him a question or he checked email he'd pause the CD player. &nbsp;He'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). &nbsp;I distinctly remember him saying "So if I get up to go to the bathroom, I pause the player". </p>
<p> You know what's pretty hardcore? &nbsp;Thinking that &nbsp;<i>going to the bathroom</i>&nbsp;is essentially the same as fucking off.</p>
</div>
<div>
<p> (Sidenote: my memory is hazy on this since it was long ago -- CD PLAYERS yo).</p>
</div>
<p> That level of work ethic and focus is rare, particularly with my generation of programmers who were raised with the vile "work smart, not hard" mantra, coupled with the sense that we were somehow significantly brighter than most of our peers. &nbsp;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.</p>
<p><a href="http://cdn.memegenerator.net/instances/400x/36064437.jpg" imageanchor="1"><img src="http://cdn.memegenerator.net/instances/400x/36064437.jpg"></a>If my coworkers were grinding through stuff that took them 20 hours, I'd be all "I work <i>smart</i>, not <i>hard</i>" with accompanying snarky eye roll, and I'd assume I could bust through an equivalent work load in four hours and still look like a goddamn superhero.</p>
<p> And sometimes I could, so, hey, validation! &nbsp;</p>
<p> 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.</p>
<p>
<h4> Productivity Deficit: Your Attitude Writing Checks Your Work Ethic Can't Cash</h4>
</p>
<p> 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. &nbsp;</p>
<p> But there is no countering surplus to offset the deficit. &nbsp;The only way surpluses show up is when you finish a (presumably) hard task much faster than you anticipated. &nbsp;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. &nbsp;Hey, what's on Facebook and Twitter right now? &nbsp;Do I have any new mail? &nbsp;No? &nbsp;I wonder if anyone has tweeted something recently since the last time I checked...what about Reddit? &nbsp;Oh, an inspirational/funny/cool YouTube video, it's only eight minutes long, let me watch it now! &nbsp;(Eight minutes later) Sweet...what's up Twitter? &nbsp;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...</p>
<div>
<p> And before you know it, the day is done, and you're still feeling good because you finished in one hour what should have taken all day, so all good, right?</p>
<h4> Trap of the Easy Task</h4>
</div>
<p> And yeah, it'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. &nbsp;Tasks so trivial that they barely register as work. &nbsp;Update an SDK? &nbsp;Hour, tops. &nbsp;Implement this feature that I've already done on every other platform? &nbsp;Hour, tops. &nbsp;This is all mindless grunt work that anyone could do, it's just clicking through dialog boxes, maybe changing a few lines of source, rebuilding, whatever.</p>
<p> In other words, an easy task like this is <i>so</i>&nbsp;easy that it's a constant time cost for everyone irrespective of ability, so there's no opportunity nor need for crazy overestimation since&nbsp;<i>what could possibly go wrong?</i></p>
<p> Well, as with so many things, it's the unexpected things that screw you the hardest. &nbsp;The things that <i>should</i>&nbsp;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't uninstall it, and now I have to fucking WIPE MY WHOLE GODDAMN HARD DRIVE TO RECOVER. &nbsp;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 "Internal compiler failure 2033", 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&nbsp;foreseeable&nbsp;future.</p>
<p> So what should have taken less than an hour took a week.</p>
<p> It's like having a perfect monetary budget that assumes no crazy "one time" 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.</p>
<p> And now you'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's not <i>your</i>&nbsp;fault, because it could have happened to anyone! &nbsp;But&nbsp;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.</p>
<p> And now you live in a state of mild panic because you're way smarter than all this but you're never actually getting things done on time.</p>
<p>
<h4> Identity Recalibration Crisis</h4>
</p>
<div>
<p> Which leads to a potential identity recalibration crisis upon landing at a company with high performers that work hard <i>and</i>&nbsp;smart. &nbsp;And that will happen if you're good. &nbsp;Now you're no longer at the top of the curve. &nbsp;In fact, shit, you're in the middle or <i>bottom</i>&nbsp;of the curve, a situation your brain probably never considered as an option.</p>
<table>
<tbody>
<tr>
<td><a href="http://img2u.info/ckgni/i/539249a2.jpg" imageanchor="1"><img height="241" src="http://img2u.info/ckgni/i/539249a2.jpg" width="320"></a></td>
</tr>
<tr>
<td>This dude was my wake up call with respect to my<br> over inflated sense of skill</td>
</tr>
</tbody>
</table>
<p> I went through this when I went to id software. &nbsp;I had rationalized that John Carmack'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? &nbsp;Upon my arrival I had a crash course in humility, because he was <i>way</i>&nbsp;smarter than me and <i>way</i>&nbsp;more productive as well.</p>
<p> 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. &nbsp;And then working with Carmack I realized he was not just a little better, he was <i>orders of magnitude </i>better. &nbsp;And I couldn't dismiss it with a "But I write a lot of code" hand wave, because he also wrote like 80% of the Quake code base.</p>
</div>
<p> Sometimes it takes a while for this to sink in. &nbsp;Sometimes it doesn't sink in at all, and you're let go because you're not very productive compared to your new team of high performers. &nbsp;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're just trying not to drown, much less keep up with everyone else.</p>
<div>
<p> 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.</p>
<h4> Killing the Underachiever</h4>
<p> If my pithy advice were little more than "Be more like John Carmack" then I can imagine a lot of readers throwing up their hands and saying "Well, fuck it, I'm a lost cause, because that's not going to happen." &nbsp;But what I can do is relate some of the things that helped me kill off some of my underachieving habits. &nbsp;The point isn't to become a superstar, it's to become better, since that's always the first step.</p>
<p> I don't believe in mechanical solutions ("Turn off the internet", "Listen to music", and stuff like that) because I don't think they address the core issues, which are psychological. &nbsp;Instead I found that I had to do the following.</p>
<ol>
<li><b>Develop self-awareness</b>. &nbsp;It took working with John Carmack and other high productivity programmers and <i>admitting that they were way more productive than me</i>&nbsp;before I really understood how much more productive I could be. &nbsp;In other words, if you don't admit it's something worth improving, then obviously you're not going to search for a solution, and if that'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>. &nbsp;Originally I called this "develop a sense of urgency", but really it's just about caring about getting your work done. &nbsp;It doesn't even matter what you specifically care about! &nbsp;It can be your professional image, your product, your team, your customers, whatever. &nbsp;You just have to care about something that will drive you to getting things done, because if you don't, apathy will occupy that void.</li>
<li><b>Minimize uncertainty</b>. &nbsp;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. &nbsp;If it's unclear what you need to get done <i>today</i>, then there's a reasonable chance you won't actually <i>do </i>anything today.</li>
<li><b>Commit to getting something done every day.</b> &nbsp;When you show up in the morning have a well defined set of things to finish that day. &nbsp;Stay as late as you have to in order to finish. &nbsp;By committing to finishing that task other distractions will naturally fall by the wayside. &nbsp;For example, I have jiu-jitsu training at 7pm. &nbsp;If I screw off too much during the day, I don't get to train. &nbsp;Also, by committing to a task, you avoid "being busy" instead of "getting work done",&nbsp;<a href="http://bookofhook.blogspot.com/2013/01/being-busy-isnt-same-as-getting-work.html">they're not the same thing</a>. &nbsp;</li>
<li><b>Never say "I'll finish it up tomorrow" or "I'll make up for it by coming in early/staying late/working the weekend". </b>&nbsp;This is an easy trap to get into, where you keep incurring time debt until at some point you realize you're now three weeks behind on a task that should have taken two days. &nbsp;This is like racking up credit card bills assuming you can pay them off later. &nbsp;Which is fine, until "later" arrives and you've only accumulated more debt.</li>
<li><b>Do not overpromise to make up for poor productivity</b>. &nbsp;There's a tendency when we're falling behind to try to overcompensate with future promises. &nbsp;"When I'm done, it'll be AWESOME" or "I know I'm late, but I'm positive I'll be done by Monday". &nbsp;By doing those things we just build more debt we can't pay off, and that will eventually lead to a catastrophic melt down when the super final absolutely last deadline date shows up. &nbsp;Just get shit done, don't talk about how you're going to get shit done.</li>
<li><b>Have an objective productivity metric.</b> &nbsp;This is a mechanical thing, but it acts as a reasonable backstop. &nbsp;If you have changelogs you can reference, then it's easy to sit down on Friday and ask yourself "What have I done this week?" &nbsp;And if you know that it's possible for others to check on you, then it makes you take each day a lot more seriously. &nbsp;If you judge your value solely on output, not subjective things like "being smart", you will be more productive.</li>
<li><b>Accept that "the grind" is part of the job</b>. &nbsp;A friend of mine's father has a great quote:&nbsp;"Son, i don't wake up every day and go to a place called fun. I wake up and go to a place called <i>work</i>" &nbsp;You can't get irate or frustrated that the bulk of the day is typing in boring code and dealing with bugs and other people. &nbsp;</li>
</ol>
<p> I still screw off during the day. &nbsp;I am not a code grinding automaton. &nbsp;I read Facebook, chat with others, Tweet, shop on Amazon, get coffee, read forums, write blog posts like this one<i>&nbsp;</i>and I'm <i>totally fine with that</i>. &nbsp;</p>
<p><a href="http://cdn.memegenerator.net/instances/400x/36175351.jpg" imageanchor="1"><img height="320" src="http://cdn.memegenerator.net/instances/400x/36175351.jpg" width="255"></a></p>
<p> Because I know I'm committed to getting things done as well. &nbsp;So even though I'm writing &nbsp;this right now at 3pm, if I have to work until 8pm to get my shit done and checked in, I'll do that, so that tomorrow is a fresh start, not a day of "Oh goddamit, let's try <i>again</i>&nbsp;to finish that task I started a week ago."</p>
</div>
</div>
<p> Once I developed that sense of daily urgency my productivity went up considerably. &nbsp;And if I'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't burn out. &nbsp;</p>
<p> It's a push/pull between banking surplus and generating a deficit, just make sure you don't do just one or the other.</p>
</div>
</div>
</div>