<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Eyefodder</title>
	
	<link>http://www.eyefodder.com</link>
	<description />
	<lastBuildDate>Mon, 13 Feb 2012 11:26:19 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Eyefodder" /><feedburner:info uri="eyefodder" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>Eyefodder</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>An external keyboard for the iPad; making the right choice</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/8gcraPblXhU/choosing-an-external-keyboard-for-the-ipad.html</link>
		<comments>http://www.eyefodder.com/2012/02/choosing-an-external-keyboard-for-the-ipad.html#comments</comments>
		<pubDate>Mon, 13 Feb 2012 10:29:58 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Travelling Light]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=149</guid>
		<description><![CDATA[As I mentioned in my previous post, I&#8217;m traveling for the next few weeks on a sabbatical to Europe and Asia. I&#8217;m keeping a journal of my travels on my tumblog, and from time to time figure I&#8217;ll be writing longer text posts here. Because of this, I figured that I should bring an external [...]]]></description>
				<content:encoded><![CDATA[<p>As I mentioned in my <a href="http://www.eyefodder.com/2012/01/why-im-travelling-tablet-only.html">previous post</a>, I&#8217;m traveling for the next few weeks on a sabbatical to Europe and Asia. I&#8217;m keeping a journal of my travels on my tumblog, and from time to time figure I&#8217;ll be writing longer text posts here. Because of this, I figured that I should bring an external keyboard with me and I&#8217;ve already found it to be a tremendous help. Even writing short emails is so much easier on a real keyboard. When I was researching, I quickly narrowed it down to two choicee: The <a title="" href="https://goincase.com/m/#product/cl57934" target="_blank">Apple wireless keyboard</a> (with the <a title="" href="https://goincase.com/m/#product/cl57934" target="_blank">Incase origami case</a>) and the Zagg Zaggfolio case and keyboard.</p>
<p><span id="more-149"></span></p>
<h2>Apple keyboard and Incase origami case</h2>
<div class="wp-caption aligncenter" style="width: 522px"><img title="Apple Keyboard and Incase origami case" src="http://www.eyefodder.com/media/2012/02/wpid-Photo-Feb-13-2012-519-AM1.jpg" alt="" width="512" height="341" /><p class="wp-caption-text">Apple keyboard and Incase origami case</p></div>
<p>The first setup I looked at was to just use the <a title="" href="https://goincase.com/m/#product/cl57934" target="_blank">Apple bluetooth keyboard</a> together with the innovative <a title="" href="https://goincase.com/m/#product/cl57934" target="_blank">Incase origami case</a>. There&#8217;s not much point in me writing a review of the keyboard as there are already a tonne out there. Suffice it to say that it&#8217;s built well, is full sized (minus the number keypad) and feels great. The case is the interesting part of the kit. Based on the japanese art of origami, the case folds into a stand for the iPad when you want to type. When you first put it together before you put the iPad in place it seems a bit flimsy, but as soon as the iPad is in place, its super stable and looks pretty neat too. There are velcro straps to hold it all together; I saw some reports that these might come unstuck after a lot of use, I&#8217;ll have to give an update at the end of the trip.</p>
<h2>Zagg Zaggfolio case</h2>
<div class="wp-caption aligncenter" style="width: 510px"><img title="Zagg Zaggfolio case &amp; keyboard" src="http://ecx.images-amazon.com/images/I/41YAh2UeEvL.jpg" alt="" width="500" height="411" /><p class="wp-caption-text">Zagg Zaggfolio case &amp; keyboard</p></div>
<p>The other setup I looked at was the <a title="" href="http://www.amazon.com/ZAGG-ZAGGfolio-Apple-iPad-FOLCARBLK97/dp/B005C2A4DO/ref=sr_1_1?s=electronics&amp;ie=UTF8&amp;qid=1329126187&amp;sr=1-1" target="_blank">Zaggfolio case from Zagg</a>. The nice thing about this setup is that it combines the case and keyboard in one package. There are also function keys specially programmed for the iPad to search or mimic the home key (something Apple&#8217;s offering is lacking). The case replaces the Apple Smart cover if you have one, and the iPad sits face down in the case when not in use. Although this seems like a neat solution, I ultimately decided against the Zagg for a couple of reasons. First up, the keyboard isn&#8217;t full sized, but a little shorter as it needs to fit within the dimensions of the iPad. I&#8217;m a pretty fat-fingered typist at the best of times, so I was worried that the keyboard would end up just being too annoying. Secondly, because the case and keyboard are all in one, you can&#8217;t really go traveling without the keyboard and just the tablet. I think I will only be using the tablet for writing 5-10% of the time, so I don&#8217;t want to have to bring the keyboard along for the ride all the time.</p>
<h2>First impressions</h2>
<p>So far, I&#8217;m really happy with the keyboard setup. I really like the key-feel of the Appple keyboard, and writing an article like this is almost as painless on the iPad as it is doing it on my laptop. I&#8217;ve found a couple of gripes with using the keyboard so far; one general, and one Apple related. The first is that keyboard arrow key navigation doesn&#8217;t seem to be built in to Safari. If I&#8217;m typing a url or search term, auto-complete suggests some options and my muscle memory keeps trying to use the down arrow key to select an option. I assume this would be the same no matter what keyboard I chose and it&#8217;s just something I&#8217;ll have to get used to. The second gripe—and it&#8217;s minor—is that when I&#8217;m done with the keyboard, I have to remember to turn it off, else I don&#8217;t get the on-screen keyboard when I&#8217;m using the iPad. It&#8217;s easily fixed by switching bluetooth off, but nevertheless has been a little bit of a gripe from time to time. That said, I think an external keyboard is an essential accessory for the tablet if you are going to be writing more than the occasional email; so far my money is on the Apple / Incase combo.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=8gcraPblXhU:T1rYKGsK9Nk:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=8gcraPblXhU:T1rYKGsK9Nk:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=8gcraPblXhU:T1rYKGsK9Nk:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=8gcraPblXhU:T1rYKGsK9Nk:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=8gcraPblXhU:T1rYKGsK9Nk:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=8gcraPblXhU:T1rYKGsK9Nk:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/8gcraPblXhU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2012/02/choosing-an-external-keyboard-for-the-ipad.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2012/02/choosing-an-external-keyboard-for-the-ipad.html</feedburner:origLink></item>
		<item>
		<title>Tablet only living—A geek travelling light</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/_dO6j5h59kE/why-im-travelling-tablet-only.html</link>
		<comments>http://www.eyefodder.com/2012/01/why-im-travelling-tablet-only.html#comments</comments>
		<pubDate>Tue, 31 Jan 2012 16:50:01 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Tablets]]></category>
		<category><![CDATA[Travelling Light]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=143</guid>
		<description><![CDATA[In about a week&#8217;s time I&#8217;m taking off on a sabbatical. I&#8217;m fortunate enough to have employers who have agreed to let me off the leash for a few weeks, so I&#8217;m making the most of it. I&#8217;m using the opportunity to take myself off on a journey that will take me from Berlin to [...]]]></description>
				<content:encoded><![CDATA[<p>In about a week&#8217;s time I&#8217;m taking off on a sabbatical. I&#8217;m fortunate enough to have <a title="" href="http://www.adobe.com" target="_blank">employers</a> who have agreed to let me off the leash for a few weeks, so I&#8217;m making the most of it.<br />
<div class="wp-caption aligncenter" style="width: 510px"><a href="http://www.eyefodder.com/media/2012/02/wpid-Photo-Feb-2-2012-452-PM.jpg"><img title="On the road again" src="http://www.eyefodder.com/media/2012/02/wpid-Photo-Feb-2-2012-452-PM.jpg" width="500" /> </a><p class="wp-caption-text">On the road again, and learning to be more like a car than a truck</p></div><br />
I&#8217;m using the opportunity to take myself off on a journey that will take me from Berlin to Bangkok, from Paris to Paro. But this isn&#8217;t just a grand tour where I&#8217;m off to &#8216;find myself&#8217; (although I will be travelling to <a title="" href="http://www.world-airport-codes.com/bhutan/paro-5686.html" target="_blank">PBH</a>)—I&#8217;m also using this as an experiment in tablet-only living.</p>
<p><span id="more-143"></span></p>
<p>For most of us, being connected all the time is as natural as breathing the air around us. A typical day for me involves checking emails on my &#8216;phone in the morning, working on my laptop during the day, and watching tv on the ipad at night. What happens if you take the laptop away? Do we need to have a laptop to be a functioning (and contributing) member of digital society? When Steve Jobs was interviewed about this a couple of years ago, he likened the relationship of tablets to PC&#8217;s as that between trucks and cars:</p>
<blockquote><p>&#8220;When we were an agrarian nation, all vehicles were trucks&#8230;. but as we moved to a more urban society, now most people use cars, so that now something like one in every twenty five vehicles is a truck. PC&#8217;s are like trucks.&#8221; —<a title="" href="http://www.youtube.com/watch?v=lz8aU1EXkBA#t=44m08s" target="_blank">Steve Jobs</a></p></blockquote>
<p>I couldn&#8217;t agree with this more. I&#8217;ve seen how people have moved from having a desktop PC at home, to having a laptop—before long I should imagine its rare to see anything other than a tablet in the house. I can imagine a similar shift for many people at their workplace over time. Right now, the tablet is still in it&#8217;s nascent form in terms of both software and hardware. We are starting to see reasonable content creation apps becoming available (I&#8217;m writing this post on one now). As I&#8217;ve been planning my trip, I&#8217;ve tried to predict what sort of scenarios I might find myself in, and setting up my ipad in preparation for that. I&#8217;ll share these over the next couple of weeks as I get my stuff together for the trip.<br />
I couldn&#8217;t agree with this more. I&#8217;ve seen how people have moved from having a desktop PC at home, to having a laptop—before long I should imagine its rare to see anything other than a tablet in the house. I can imagine a similar shift for many people at their workplace over time. Right now, the tablet is still in it&#8217;s nascent form in terms of both software and hardware. We are starting to see reasonable content creation apps becoming available (I&#8217;m writing this post on one now). As I&#8217;ve been planning my trip, I&#8217;ve tried to predict what sort of scenarios I might find myself in, and setting up my ipad in preparation for that. I&#8217;ll share these over the next couple of weeks as I get my stuff together for the trip.</p>
<blockquote><p>&#8220;The greatest reward and luxury of travel is to be able to experience everyday things as if for the first time, to be in a position in which almost nothing is so familiar it is taken for granted.&#8221; —<a title="" href="http://www.vagabondroots.com/travel-quotes/" target="_blank">Bill Bryson</a></p></blockquote>
<p>I&#8217;m excited to travel. Not just to parts of the world I haven&#8217;t been before, but also to find out what makes for a good tablet lifestyle. As Bill Bryson said in the quote above, one of the great rewards of travel is to experience everyday things anew. I think this is just as true for my digital journey as for the physical trip I&#8217;m going on. What I&#8217;m looking forward to are the unexpected changes in online behavior—both positive and negative—that will suggest interesting opportunities to differentiate and enhance tablet-living away from it&#8217;s PC roots.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=_dO6j5h59kE:4aYWzKIf4kQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=_dO6j5h59kE:4aYWzKIf4kQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=_dO6j5h59kE:4aYWzKIf4kQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=_dO6j5h59kE:4aYWzKIf4kQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=_dO6j5h59kE:4aYWzKIf4kQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=_dO6j5h59kE:4aYWzKIf4kQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/_dO6j5h59kE" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2012/01/why-im-travelling-tablet-only.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2012/01/why-im-travelling-tablet-only.html</feedburner:origLink></item>
		<item>
		<title>Performance – spend it wisely and never raise the debt ceiling</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/0X0OG27gISk/software-performance-dont-get-downgraded.html</link>
		<comments>http://www.eyefodder.com/2011/08/software-performance-dont-get-downgraded.html#comments</comments>
		<pubDate>Sat, 06 Aug 2011 23:49:52 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Engineering]]></category>
		<category><![CDATA[Quality Software]]></category>
		<category><![CDATA[Software Estimation]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=140</guid>
		<description><![CDATA[The US had it&#8217;s credit rating downgraded yesterday. For many people, it seems at first a little abstract and vaguely ominous—a chance for China to get it&#8217;s own back after being harangued by the US on its undervaluation of the Yuen. Maybe the outcome will be catastrophic, maybe not so much. Only time will tell. [...]]]></description>
				<content:encoded><![CDATA[<p>The US had it&#8217;s <a href="http://www.nytimes.com/2011/08/06/business/us-debt-downgraded-by-sp.html?ref=global">credit rating downgraded</a> yesterday. For many people, it seems at first a little abstract and vaguely ominous—a chance for <a href="http://www.nytimes.com/2011/08/07/business/global/china-a-big-creditor-says-us-has-only-itself-to-blame.html?hp">China to get it&#8217;s own back</a> after being harangued by the US on its <a href="http://uk.reuters.com/article/2010/09/23/uk-usa-china-yuan-idUKTRE68M09H20100923">undervaluation of the Yuen</a>. Maybe the outcome will be catastrophic, maybe not so much. Only time will tell. What Standard and Poor&#8217;s have basically said is that there is more chance than before that America will fail to pay its bills on time. But what does this have to do with quality software and how it gets built? Well here&#8217;s the thing—the way the US government are managing the economy and the debt ceiling are very similar to the way many software projects go slowly south; everyone recognizes that something needs to be done, but none can agree on what the right course of action actually is.</p>
<div id="attachment_141" class="wp-caption aligncenter" style="width: 499px"><img class="size-full wp-image-141 " title="Don't overpromise and foreclose on your project" src="http://www.eyefodder.com/media/2011/08/100-will-buy-this-car-great-depression-stock-crash.jpeg" alt="Stock market crash &quot;100 dollars will buy this car, lost all on stock market&quot;" width="489" height="323" /><p class="wp-caption-text">Don&#39;t overpromise and foreclose on your project</p></div>
<p><span id="more-140"></span></p>
<h2>Performance as money</h2>
<p>I first was introduced to the idea of performance as money through watching an <a href="http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-introduction-to-algorithms-sma-5503-fall-2005/">MIT lecture series on algorithms</a>. In the <a href="http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-046j-introduction-to-algorithms-sma-5503-fall-2005/video-lectures/lecture-1-administrivia-introduction-analysis-of-algorithms-insertion-sort-mergesort/">opening lecture</a>, Charles Leiserson talks about performance as currency:</p>
<blockquote><p>A good way I think about performance, and the reason it&#8217;s on the bottom of the heap, is sort of like performance is like money, it&#8217;s like currency. You say what good does a stack of hundred dollar bills do for you? Would you rather have food or water or shelter or whatever? And you&#8217;re willing to pay those hundred dollar bills, if you have hundred dollar bills, for that commodity.</p></blockquote>
<p>when he talks about performance being on the bottom of the heap, what he&#8217;s talking about is how other things are more important than performance; features, security, ease of use and so on.</p>
<h2>Performance constraints as the debt limit</h2>
<p>I&#8217;ve posted before on <a href="http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html">non functional requirements every application should have</a>, and first and foremost amongst those constraints is performance. The deal you need to make with yourself and your users is how much of that performance stack of bills are you willing or able to spend to get there? all of the decisions you make, from language choice to functionality to visual design are informed by this decision. Setting your performance constraint is just like setting your household budget (or the government&#8217;s debt ceiling).</p>
<h2>And the credit rating?</h2>
<p>To extend the metaphor a little bit further than is natural, the credit rating is akin to the likelihood that your project will fail overall. We don&#8217;t have a good measure for that in software development, but I do think drawing the parallel is interesting. If you read the <a href="http://www.standardandpoors.com/servlet/BlobServer?blobheadername3=MDT-Type&amp;blobcol=urldata&amp;blobtable=MungoBlobs&amp;blobheadervalue2=inline%3B+filename%3DUS_Downgraded_AA%2B.pdf&amp;blobheadername2=Content-Disposition&amp;blobheadervalue1=application%2Fpdf&amp;blobkey=id&amp;blobheadername1=content-type&amp;blobwhere=1243942957443&amp;blobheadervalue3=UTF-8">S&amp;P downgrade overview</a>, you will see that the decision was in part due to the rising debt burden (technical debt?), but more significantly it is due of the infighting and lack of a clear plan forward:</p>
<blockquote><p>More broadly, the downgrade reflects our view that the effectiveness, stability, and predictability of American policymaking and political institutions have weakened…</p></blockquote>
<p>This sounds so much like entrenched behavior of stakeholders on a poorly managed software projects (and its effect) that I couldn&#8217;t pass on the opportunity to use it. Simply put, if you have a lack of alignment and clear plan about what is acceptable, what is important and how you are going to spend your resources (or generate income) things aren&#8217;t going to be plain sailing.</p>
<h2>Performance—Avoid foreclosure</h2>
<p>O.K. I really am stretching it here, but I wanted to finish up with how I think you best avoid getting mired in software rot or simply just building something that no-one wants to use. And it&#8217;s really similar to being financially prudent:</p>
<ul>
<li>Understand that almost everything you do bears some cost to performance</li>
<li>Decide what is an acceptable level of performance…</li>
<li>…and spend within your means</li>
<li>Don&#8217;t go into debt(let performance drop below acceptable level)</li>
<li>But sometimes it&#8217;s going to happen. If it does, get a plan in place quickly to address it.</li>
</ul>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=0X0OG27gISk:gRIqWbzzHOQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=0X0OG27gISk:gRIqWbzzHOQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=0X0OG27gISk:gRIqWbzzHOQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=0X0OG27gISk:gRIqWbzzHOQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=0X0OG27gISk:gRIqWbzzHOQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=0X0OG27gISk:gRIqWbzzHOQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/0X0OG27gISk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/08/software-performance-dont-get-downgraded.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/08/software-performance-dont-get-downgraded.html</feedburner:origLink></item>
		<item>
		<title>Have you been hurt by code reuse? Learn from De Niro</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/WyV2VUTNRqk/have-you-been-hurt-by-code-reuse-learn-from-de-niro.html</link>
		<comments>http://www.eyefodder.com/2011/07/have-you-been-hurt-by-code-reuse-learn-from-de-niro.html#comments</comments>
		<pubDate>Wed, 06 Jul 2011 23:34:32 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Quality Software]]></category>
		<category><![CDATA[Software Craftsmanship]]></category>
		<category><![CDATA[Test Driven Development]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=132</guid>
		<description><![CDATA[Ever used someone else&#8217;s code; a library or sample app online? Ever got to a point where it&#8217;s been so mind-bendingly painful that you rue the day you ever found the stupid &#8216;library&#8217; in the first place? If not then chances are you&#8217;re not a developer, you&#8217;re this guy, or you&#8217;re delusional. Spurred by a [...]]]></description>
				<content:encoded><![CDATA[<p>Ever used someone else&#8217;s code; a library or sample app online? Ever got to a point where it&#8217;s been so mind-bendingly painful that you rue the day you ever found the stupid &#8216;library&#8217; in the first place? If not then chances are you&#8217;re not a developer, you&#8217;re <a href="http://www.orato.com/self-help/luckiest-man-the-world">this guy</a>, or you&#8217;re delusional. Spurred by a <a href="http://twitter.com/#!/mateobarraza/status/86150174744911872">conversation with Mateo</a>, my friend and former development buddy about this, I started to think a little deeper about what the problem is with code reuse. We expect a well-made production quality piece of work, and before long we realize that we are stuck with something that is sucking time away rather than letting us develop the hard stuff faster. So when should you reuse code? Here are some thoughts on when you should proceed with abandon, and when you might want to be more cautious&#8230;<br />
<div class="wp-caption aligncenter" style="width: 384px"><a href="http://www.mustrad.org.uk/pictures/brown.htm"><img alt="" src="http://www.mustrad.org.uk/graphics/james_b.jpg" title="We think we are getting this" width="374" height="503" /></a><p class="wp-caption-text">We think we are getting this...</p></div><br />
<div class="wp-caption aligncenter" style="width: 405px"><a href="http://www.mustrad.org.uk/pictures/italian1.htm"><img alt="" src="http://www.mustrad.org.uk/graphics/italian1.jpg" title="...but often end up stuck with this" width="395" height="620" /></a><p class="wp-caption-text">...but often end up stuck with this</p></div></p>
<p><span id="more-132"></span></p>
<p>As Mateo mentioned, we are pretty much trained to reuse code wherever we can (and that includes our own—more on that later). The assumption is that just because it&#8217;s on google code or GitHub it&#8217;s good to go. If you&#8217;re not careful you will spend more time working through someone else&#8217;s library than you would coding from scratch. In practice the decision to reuse or not is a very delicate balancing act that you can easily get wrong. Here are some things to consider when you are faced with the choice:</p>
<h2>Good times to consider reuse</h2>
<h3>It&#8217;s generally accepted to be best in class</h3>
<p>No-one is going to regret choosing to use <a href="http://jquery.org/about/">JQuery</a> as a base framework for their javascript app. If you know the library is a de-facto standard for the problem you&#8217;re trying to solve you should be in good shape.</p>
<h3>You don&#8217;t know much about the problem / algorithm</h3>
<p>I&#8217;m not a statistics guy, and when I decided to code up an <a href="http://www.eyefodder.com/how-long-will-your-project-take-software-estimation-app">application</a> that uses some simple estimates to get a more realistic prediction of development time I needed to calculate the shape of a <a href="http://www.wolframalpha.com/input/?i=beta+distribution">beta distribution chart</a>. Rather than do it myself, I found a <a href="http://www.jstat.org/">library</a> that saved me having to learn how to code a bunch of statistical formula.</p>
<h3>There is an a active community around the code</h3>
<p>If there are O&#8217;reilly books on the subject, if there are questions (and answers) about the code on <a href="http://stackoverflow.com/">stack overflow</a>, then you can probably feel a little more comfortable that when you get stuck, your questions will get answered.</p>
<h3>It&#8217;s not the main problem you&#8217;re trying to solve</h3>
<p>Again, in the example of the software estimation app I built, the main problem I was after solving was showing people how you can quickly get a sense of the length of your project, not hardcore statistical analysis on data. I knew I didn&#8217;t need to do too much with the statistical analysis, and if it all went wrong, I could back out and use simpler, back of the napkin estimates</p>
<h2>When to be wary</h2>
<h3>The code isn&#8217;t being maintained</h3>
<p>If the code is marked at version 0.1 and was last updated three years ago, just be aware that the owner has probably moved on to other things and if you find problems, you might end up having to fix someone else&#8217;s issues.</p>
<h3>You know a lot about the problem domain and could put something together quickly</h3>
<p>If I know a problem domain really really well, then I can probably write my own stuff in the time it takes me to learn how someone else has approached the problem. Essentially I can do it quicker than &#8216;most any learning curve.</p>
<h3>The code doesn&#8217;t have supporting tests</h3>
<p>At the risk of sounding like an <a href="http://www.youtube.com/watch?v=l1wKO3rID9g">agile hitler</a>, if code doesn&#8217;t have a decent, usable test harness written against it, I have very little faith in it&#8217;s utility. It will mean that I have to proceed more slowly and cautiously and likely not understand half the intent of the code.</p>
<h3>It&#8217;s your own stuff</h3>
<p>So you wrote some stuff on your last project that applies to what you&#8217;re doing now? Good on you; should save a tonne of time, right? Think again—just because you wrote it doesn&#8217;t mean it&#8217;s any better than someone else&#8217;s work. This one deserves a little more explanation below</p>
<h3>It&#8217;s going to be really difficult to back out of later</h3>
<p>If the library you&#8217;re going to use is going to form the backbone of your application or the way its structured, then you need to be careful about the decision you&#8217;re making. Things like an <a href="http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller#Implementations_of_MVC_as_web-based_frameworks">architectural framework</a> deserve careful though because the cost of changing your mind can get prohibitively high.</p>
<h2>On re-using your own code</h2>
<p>There are a couple of reasons why we need to be wary of our own work. First off, we tend to take a revisionist view on things; we assume that the work we did in the past is completely applicable to the problem we have at hand today. And I don&#8217;t know about you but I&#8217;ve become a better coder over time, so my old code is not as good or clean as the code I write today. Any time you reuse work, you need to weigh your own code with the same rigour as you would someone else&#8217;s. Don&#8217;t get me wrong, I&#8217;m really not advocating re-writing your own code for every project; what I&#8217;m suggesting is that if you are going to reuse your own code, make sure it&#8217;s fit for purpose, well-tested and as good as you can make it.</p>
<h2>So, what can De Niro teach me about reuse?</h2>
<p>The decision about whether to reuse or not is a tough one. You need to invest some time evaluating the library, and at some point make a judgement call on how steep the learning curve is versus just going it alone. The smart thing to do when you decide to reuse code is to make it easy to back out of the decision. As <a href="http://www.youtube.com/watch?v=85eeu2XF4QY&amp;feature=related">De Niro says in Heat</a>:</p>
<blockquote><p>Have no attachments; allow nothing to be in your life that you cannot walk out on in thirty seconds flat if you feel the heat around the corner</p></blockquote>
<p>&nbsp;</p>
<p>What I mean by this is that if you are going to use a library or someone else&#8217;s code, make sure you have it well isolated in your application. Try to only interact with it in one place, and make sure you have solidly tested that integration point. That way, if you later decide to back out of your decision, you can cleanly, surgically remove the library and replace it with your own work (or vice versa). Lowering the cost of changing your mind is the thing that can make the difference between a happy marriage and a bitter, bitter divorce that bankrupts you in the process.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=WyV2VUTNRqk:SmRv_E9eebo:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=WyV2VUTNRqk:SmRv_E9eebo:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=WyV2VUTNRqk:SmRv_E9eebo:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=WyV2VUTNRqk:SmRv_E9eebo:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=WyV2VUTNRqk:SmRv_E9eebo:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=WyV2VUTNRqk:SmRv_E9eebo:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/WyV2VUTNRqk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/07/have-you-been-hurt-by-code-reuse-learn-from-de-niro.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/07/have-you-been-hurt-by-code-reuse-learn-from-de-niro.html</feedburner:origLink></item>
		<item>
		<title>Try this, my mini-application for software estimation</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/2K72im_oR1U/try-this-my-mini-application-for-software-estimation.html</link>
		<comments>http://www.eyefodder.com/2011/07/try-this-my-mini-application-for-software-estimation.html#comments</comments>
		<pubDate>Tue, 05 Jul 2011 18:50:02 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Agile Software Development]]></category>
		<category><![CDATA[Quality Software]]></category>
		<category><![CDATA[Software Estimation]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=134</guid>
		<description><![CDATA[A couple of weeks ago I wrote about a simple yet powerful process for software estimation. When I was done I started to look at my excel worksheet for doing this process and figured that it could be something I could share with a broader audience. Rather than just post an excel file, I decided [...]]]></description>
				<content:encoded><![CDATA[<p>A couple of weeks ago I wrote about a <a title="Software Estimation — A good simple way courtesy of the Navy and the cold war" href="http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html">simple yet powerful process for software estimation</a>. When I was done I started to look at my excel worksheet for doing this process and figured that it could be something I could share with a broader audience. Rather than just post an excel file, I decided to create a simple software estimation app and post it here. You can go <a title="How long will your project take?" href="http://www.eyefodder.com/how-long-will-your-project-take-software-estimation-app">check it out now</a>, or read on to get a bit more detail into the thinking behind it.</p>
<div id="attachment_128" class="wp-caption aligncenter" style="width: 478px"><a href="http://www.eyefodder.com/how-long-will-your-project-take-software-estimation-app"><img class="size-full wp-image-128" title="Estmator Application" src="http://www.eyefodder.com/media/2011/07/EstmatorApp.png" alt="Screenshot of the software estimation app" width="468" height="549" /></a><p class="wp-caption-text">The estimation app in action</p></div>
<p><span id="more-134"></span></p>
<h2>The application</h2>
<p>The application is really simple. You just break down your project into a few tasks and enter three estimates for each—Optimistic, Nominal and Pessimistic (To get what I mean about these terms, check out this <a title="Software Estimation — A good simple way courtesy of the Navy and the cold war" href="http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html">post</a>). What it then does is calculate the expected duration of the tasks as well as a high and low end of a range that you can have 95% confidence in. On top of that, it consolidates all of your estimates into a rolled up view that tells you how long you can expect your full project to take. See, there can be some science behind software estimation after all (if you want the details behind how the estimates are worked out, they&#8217;re covered in a <a title="Software Estimation — A good simple way courtesy of the Navy and the cold war" href="http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html">previous post</a>).</p>
<h2>The sparklines</h2>
<p>One of the things I wanted to do over and above a spreadsheet was to make something that was clean and simple to read yet packed a lot of information into each row. What originally was six data points has been reduced to two thanks to using <a href="http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR">sparklines</a>. I could have possibly also done away with the low and high end estimates and had them as rollovers (like in the main result chart) but I just found it to be too overloaded and hard to read. I&#8217;ve found that there has been some really nice outcomes from using the sparklines:</p>
<ul>
<li>I can see which tasks have the most uncertainty in them (those with the broadest range)</li>
<li>I can see how different tasks stack up against one another by comparing the sparklines vertically (they&#8217;re all on the same x axis scale). I can do this much quicker than if it were a numeric table</li>
<li>I can present a hierarchy of information. The ranges are most important, then the expected time (which you can see on rollover), followed by the variance and the shape of the estimate which you can infer from the shape of the chart</li>
</ul>
<h2>The results script</h2>
<p>One of my big frustrations is that when people come up with software estimates, they give you values that imply a far greater precision than is reasonable. I&#8217;ve seen software estimates for a project in terms like &#8220;3042.5 hours&#8221; What this does is <em>imply</em> that the estimate is between 3042.45 and 3042.55 hours. Far more likely is that you have added up a number of estimates and at best you might be precise to within ten, twenty or even fifty hours (tough to say without knowing more about the estimate, but you get the drift). With the results script, I&#8217;ve tried to represent this by using natural language to lessen the implied precision. A few examples:</p>
<ul>
<li>Anything less than 1 is represented as &#8220;A few hours&#8221; &#8220;less than a day&#8221;</li>
<li>Up to a week you have &#8220;A couple of days&#8221; or &#8220;A few days&#8221;</li>
<li>Up to a month you have &#8220;About a week, a couple of weeks, three weeks</li>
<li>More than that, time is measured in months</li>
</ul>
<p>While looking into this, I also found this article talking about the <a href="http://northerneconomics.com/blog/?p=49">psychology of the zero</a>. In essence it says that people are more likely to &#8216;accept&#8217; a number with implied precision than one without. If you want to try this out and use the calculated numbers, rolling over the dots on the results plot will give you them. I also left in the calculated numbers for the individual tasks so you can see what&#8217;s going in to the final estimate.</p>
<h2>What&#8217;s next?</h2>
<p>Well, I&#8217;m hoping you&#8217;ll tell me. Right now, all estimates are in days and part days, but I thought I could add an option so you could put estimates in hours for smaller tasks. Maybe some export options or something. If you use this app and get some value from it, let me know if there&#8217;s anything else you&#8217;d like to see it do. So go ahead and <a title="How long will your project take?" href="http://www.eyefodder.com/how-long-will-your-project-take-software-estimation-app">try it out</a> and let me know what you think!</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=2K72im_oR1U:LROyarL_BmY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=2K72im_oR1U:LROyarL_BmY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=2K72im_oR1U:LROyarL_BmY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=2K72im_oR1U:LROyarL_BmY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=2K72im_oR1U:LROyarL_BmY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=2K72im_oR1U:LROyarL_BmY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/2K72im_oR1U" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/07/try-this-my-mini-application-for-software-estimation.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/07/try-this-my-mini-application-for-software-estimation.html</feedburner:origLink></item>
		<item>
		<title>Software Estimation — A good simple way courtesy of the Navy and the cold war</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/OZyACUBLGsc/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html</link>
		<comments>http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html#comments</comments>
		<pubDate>Sun, 19 Jun 2011 16:25:33 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Quality Software]]></category>
		<category><![CDATA[Software Estimation]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=115</guid>
		<description><![CDATA[In my last post I told you that your next project will take longer than you think. Now I&#8217;ve destroyed hope I&#8217;m going to show you how you can use this knowledge to be better at software estimation. We&#8217;re going to use a simple but very effective technique first developed by the Navy back in [...]]]></description>
				<content:encoded><![CDATA[<p>In my last post I told you that <a title="Your project will take longer than you think and less than a Nukem" href="http://www.eyefodder.com/2011/06/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html">your next project will take longer than you think</a>. Now I&#8217;ve destroyed hope I&#8217;m going to show you how you can use this knowledge to be better at software estimation. We&#8217;re going to use a simple but very effective technique first developed by the Navy back in the &#8217;50s when they were <a href="http://www.lessons-from-history.com/node/116">building the Polaris nuclear submarine</a>. Faced with tremendous risk and uncertainty, they had to work out how to build a missile that had never been built before, to be carried on a submarine more complex than contemporary technology would allow. And by the way, they had to work out how get a missile to launch underwater and hit a target thousands of miles away when no one had built a decent guidance system before. Oh, and the Russians were breathing down their neck with the <a href="http://en.wikipedia.org/wiki/Sputnik_1">Sputnik</a> project. The Navy managed to develop a system of estimation and risk management that was so effective, they delivered three years early. Think your project is harder to estimate than that? Think again. Get on board and read on to find out how you can use this technique for your own means&#8230;</p>
<div class="wp-caption aligncenter" style="width: 490px"><a href="http://www.oldmodelkits.com/index.php?detail=15359&amp;manu=Renwal" target="_blank"><img class=" " title="How long would it take you to build the world's most formidable weapon?" src="http://www.oldmodelkits.com/jpegs/Renwal%20653-349%20TomJeff.JPG" alt="" width="480" height="189" /></a><p class="wp-caption-text">How long would it take you to build &quot;the free world&#39;s most formidable weapon&quot;?</p></div>
<p><span id="more-115"></span></p>
<h2>The real reason why your project will take longer than you think</h2>
<p>What the Navy realized is that when you give a baseline estimate, the number you tend to give is how long you think it will take in ordinary circumstances; the outcome that will happen most of the time. This isn&#8217;t however the <em>average</em> amount of time the task will take. How so? Consider this extract from Bob Martin&#8217;s excellent book <a href="http://www.amazon.com/gp/product/0137081073/ref=as_li_ss_tl?ie=UTF8&amp;tag=eyefodder-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=0137081073">The Clean Coder</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=0137081073&amp;camp=217145&amp;creative=399373" border="0" alt="" width="1" height="1" /> where he describes a typical software estimation conversation:</p>
<blockquote><p>Mike: “How likely is it that you’ll be done in three days?</p>
<p>Peter: “Pretty likely.”</p>
<p>Mike: “Can you put a number on it?”</p>
<p>Peter: “Fifty or sixty percent.”</p>
<p>Mike: “So there’s a good chance that it’ll take you four days.”</p>
<p>Peter: “Yes, in fact it might even take me five or six, though I doubt it.”</p>
<p>Mike: “How much do you doubt it?”</p>
<p>Peter: “Oh, I don’t know … I’m ninety-five percent certain I’ll be done before six days have passed.”</p>
<p>Mike: “You mean it might be seven days?”</p>
<p>Peter: “Well, only if everything goes wrong. Heck, if everything goes wrong, it could take me ten or even eleven days. But it’s not very likely that so much will go wrong.”</p></blockquote>
<p>As <a href="http://www.objectmentor.com/omTeam/martin_r.html">Uncle Bob</a> goes on to explain, what&#8217;s going on here is that Mike is describing a probability distribution, something like this:</p>
<p><img class="aligncenter size-full wp-image-119" title="Chances of delivering on a certain day" src="http://www.eyefodder.com/media/2011/06/DeliveryDistribution.png" alt="" width="577" height="331" /></p>
<p>What is happening is that when you describe how long you think it will take, you are describing the <strong><em>mode</em></strong> &#8211; what will happen most often. However because there is more chance of running over than under, you need to take that into account. What the Navy did was find a really quick simple way of finding the mean by looking at three simple estimates for the duration of a task&#8230;</p>
<h2>Three little estimates</h2>
<p>They figured out that if you can get people to estimate these three possible outcomes, you can calculate the expected duration for a task:</p>
<h3>Nominal (ψ)</h3>
<p>This is the standard issue estimate, what people are used to giving—the amount of time you would expect a task to take under normal circumstances. In the example above it would probably be 3.</p>
<h3>Nukem (ω)</h3>
<p>This is the longest it could take if pretty much everything went wrong. This is the one in a thousand worst case scenario, the Nukem (for more on this read my last <a title="Your project will take longer than you think and less than a Nukem" href="http://www.eyefodder.com/2011/06/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html">post</a>). Mike&#8217;s Nukem is 11.</p>
<h3>Mu-nicorn (μ)</h3>
<p>I took extreme license with naming this one, but bear with me. This is the your estimate of how long this would take if the stars aligned, unicorns pair programmed with you and generally everything went so well you have to check yourself.</p>
<h2>Super Simple Math</h2>
<p>Now you have these estimates, you can calculate the expected duration of the task using this formula:</p>
<p><em style="font-size: 3em;">T<sub>e</sub> = (μ + 4ψ + ω)/6</em></p>
<p>You can also get the standard deviation of the estimate, which gives a measure of how uncertain the task is:</p>
<p><em style="font-size: 3em;">σ = (ω &#8211; μ )/6</em></p>
<p>Now, you can tell people that you are pretty confident that your task will take between <em style="font-size: 1.3em;">T<sub>e</sub>-2σ</em> and <em style="font-size: 1.3em;">T<sub>e</sub>+2σ</em>. This statement is not strictly correct, and I will explain at the end why this is so, but to keep it simple, I would use this.</p>
<h2>Putting it to practice</h2>
<p>In order to put this into on your project I would recommend breaking your app up into somewhat smaller, more manageable pieces for estimating. In theory, this helps because the <a href="http://en.wikipedia.org/wiki/Law_of_large_numbers">law of large numbers</a> implies that your errors cancel out. In practice, it&#8217;s also just plain easier to understand your app in small pieces.  When you have your estimates for a number of tasks, you can simply add the expected times together to get the expected duration for the project. To get the standard deviation, you have to calculate the square root of the sum of the squares:<br />
<em style="font-size: 3em;">σ<sub style="font-size: .8em;"> project</sub> = √ ∑ σ <sup>2</sup></em></p>
<h2>Conclusion</h2>
<p>There is nothing like real development data and experience to understand how long things are going to take. Unfortunately you will often have a situation when you don&#8217;t have that information available and you are still called upon to give a estimate. This technique can help you do that and have solid reasoning to back you up. I hope you find this useful, and if you want to look into estimation more, I highly recommend both Bob Martins book <a href="http://www.amazon.com/gp/product/0137081073/ref=as_li_ss_tl?ie=UTF8&amp;tag=eyefodder-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=0137081073">The Clean Coder</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=0137081073&amp;camp=217145&amp;creative=399373" border="0" alt="" width="1" height="1" /> mentioned above and Mike Cohn&#8217;s book on <a href="http://www.amazon.com/gp/product/0131479415/ref=as_li_ss_tl?ie=UTF8&amp;tag=eyefodder-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399369&amp;creativeASIN=0131479415">Agile Estimating and Planning</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=&amp;l=as2&amp;o=1&amp;a=0131479415&amp;camp=217145&amp;creative=399369" border="0" alt="" width="1" height="1" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>Post-script &#8211; there (probably) be dragons down here</h2>
<p><em>This gets a little involved down here, so if you want to keep it simple, don&#8217;t worry about this stuff. As you are usually at the beginning of a project when you do this and are wildly imprecise anyway it shouldn&#8217;t make much difference.</em></p>
<p>The more astute amongst you will have seen an issue with how we worked out our range by simply adding / subtracting two standard deviations from the estimated duration of the project. That assumes that its equally likely we run over as it is that we run under—that is, it&#8217;s a <a href="http://en.wikipedia.org/wiki/Normal_distribution">normal distribution</a> like this:</p>
<p><img class="aligncenter size-medium wp-image-120" title="normal distribution chart" src="http://www.eyefodder.com/media/2011/06/normalDistribution-300x202.png" alt="normal distribution chart" width="300" height="202" /></p>
<p>Trouble is, as we saw in the example, there is a tail off to the right. This is what&#8217;s known as a <a href="http://en.wikipedia.org/wiki/Beta_distribution">beta distribution</a> (or at least an example of one), something more like this:</p>
<p><img class="aligncenter size-medium wp-image-121" title="beta distribution chart" src="http://www.eyefodder.com/media/2011/06/betaDistribution-300x202.png" alt="beta distribution chart" width="300" height="202" /></p>
<p>If you look at these overlaid onto one another, you see that the range estimate when using normal distribution actually underestimates the duration a bit. If you want to keep things simple you are probably ok, but it&#8217;s worth knowing:</p>
<p><img class="aligncenter size-full wp-image-123" title="beta and normal distribution together" src="http://www.eyefodder.com/media/2011/06/overlaiddistribution1.png" alt="beta and normal distribution together" width="542" height="411" /></p>
<p>The shape of the distribution is called a beta distribution, and it makes the math for working out the range quite a bit more complicated. You need to calculate a couple of variables that describe the shape of the curve: α and β. These are a bit complicated to work out, but for the sake of completeness, I hunted them down for you <a href="http://www.brighton-webs.co.uk/distributions/beta.asp">here</a>. They are:</p>
<p><em style="font-size: 1.1em;">α = ((mean-min)/(max-min)) * ((((mean-min)*(max-min))/σ<sup>2</sup>)-1)</em></p>
<p><em style="font-size: 1.1em;"> </em></p>
<p><em style="font-size: 1.1em;">β = (max-mean)/(mean-min)*α</em></p>
<p>Once you have these, you can use the Excel BETAINV function to get your minimum and maximum ranges. For example, if you want to calculate an duration as a range you can have 95% confidence in:</p>
<p><em style="font-size: 1.1em;">low end of range = BETAINV(0.025,α,β,min,max)</em></p>
<p><em style="font-size: 1.1em;"> </em></p>
<p><em style="font-size: 1.1em;">high end of range = BETAINV(0.975,α,β,min,max)</em></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=OZyACUBLGsc:TusQr3-O8PM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=OZyACUBLGsc:TusQr3-O8PM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=OZyACUBLGsc:TusQr3-O8PM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=OZyACUBLGsc:TusQr3-O8PM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=OZyACUBLGsc:TusQr3-O8PM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=OZyACUBLGsc:TusQr3-O8PM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/OZyACUBLGsc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/06/software-estimation-a-good-simple-way-courtesy-of-the-navy-and-the-cold-war.html</feedburner:origLink></item>
		<item>
		<title>Your project will take longer than you think and less than a Nukem</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/PhF0Cup9XJ4/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html</link>
		<comments>http://www.eyefodder.com/2011/06/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html#comments</comments>
		<pubDate>Thu, 16 Jun 2011 06:38:36 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Quality Software]]></category>
		<category><![CDATA[Software Estimation]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=113</guid>
		<description><![CDATA[I will tell you how long your next project will take to release. You won&#8217;t like it, but I&#8217;ll tell you. A game is launching this week and in the story of its development is the key to successful software estimation. The game is Duke Nukem Forever, and just like the title, it did pretty [...]]]></description>
				<content:encoded><![CDATA[<p>I will tell you how long your next project will take to release. You won&#8217;t like it, but I&#8217;ll tell you. A game is launching this week and in the story of its development is the key to successful software estimation. The game is Duke Nukem Forever, and just like the title, it did pretty much take forever to launch. Five thousand, one hundred and sixty days to be precise. <a href="http://duke.a-13.net/">That&#8217;s just over 14 years</a>. Longer than it took to build the Empire State Building, the Golden Gate Bridge and the World Trade Center combined. It took so long, people have <a href="http://duke.a-13.net/">put up sites</a> covering how long it took. The game is by most accounts at best <a href="http://www.guardian.co.uk/technology/gamesblog/2011/jun/10/duke-nukem-forever-game-review">mediocre</a> and at worst <a href="http://arstechnica.com/gaming/reviews/2011/06/duke-nukem-forever-review-barely-playable-unfunny-and-rampantly-offensive.ars">atrocious</a>—in my highly opinionated view, the duration of a release is inversely proportional to product quality. But that&#8217;s not the story here. What&#8217;s important is why it happened and what it can tell you about software estimation on your own project.</p>
<div class="wp-caption aligncenter" style="width: 455px"><a href="http://www.gearboxsoftware.com/"><img title="Duke Nukem Launches after 'forever'" src="http://www.gearboxsoftware.com/themes/default/images/home/duke_now.jpg" alt="" width="445" height="415" /></a><p class="wp-caption-text">Duke Nukem Forever Launched after 14 years development; what can this big chested antihero teach you about your project?</p></div>
<p><span id="more-113"></span></p>
<h2>Why it overran</h2>
<p>There are a number of reasons why the Duke took so long to get his politically incorrect ass back out in the wild. As an adoring public were salivating at the <a href="http://forums.3drealms.com/vb/showthread.php?t=30367">thought of a new Nukem</a>, the development team and its management were stuck in a pattern of events that pretty much ensured a death march of a project:</p>
<h3>Scope Creep</h3>
<p>Anyone who has ever been on a development project will be familiar with this problem. After the success of Duke Nukem 3D, George Broussard—the game&#8217;s creator—kept seeing <a href="http://www.wired.com/magazine/2009/12/fail_duke_nukem/2/">opportunities for ever more awesome features to put in the experience</a>:</p>
<blockquote><p>Broussard simply couldn&#8217;t tolerate the idea of <cite>Duke Nukem Forever</cite> coming out with anything other than the latest and greatest technology and awe-inspiring gameplay. He didn&#8217;t just want it to be good. It had to surpass every other game that had ever existed, the same way the original <cite>Duke Nukem 3D</cite> had.</p></blockquote>
<p>Snow scenes? You got it. Online Multiplayer? Of course! These sorts of things may seem price-of-admission now, but bear in mind that these features were being added over ten years ago. And &#8211; I&#8217;m not saying that these were bad ideas or unnecessary ideas, just that the goalposts kept moving, which makes it kind of tough to finish.</p>
<h3>Technology Death Spiral</h3>
<p>When Duke Nukem 3D came out, it was built on a <a href="http://www.youtube.com/watch?v=VSVzn0F3pyQ">game engine named &#8220;build&#8221;</a> by a child prodigy called Ken Silverman. In order to keep up with ever increasing needs of the project (see above), Broussard swapped out for a new game engine not once, but twice. This, again, may have been necessary, but it meant that the development team were always playing catch up.</p>
<h3>Too much cash, not enough business</h3>
<p>Here&#8217;s the thing: Duke Nukem 3D was a runaway success. So much so, that unlike before, Broussard could basically fund development themselves. Creative freedom is great, but without the business reminding you that what your building is for people to use and enjoy you run the risk of getting stuck into some sort of artwank vortex.</p>
<h3>Fear of Success—gilding the lily</h3>
<p>I&#8217;m not a console game developer, but when I heard it takes up to a year from &#8220;locking a game down&#8221; to launch I really felt sorry for those guys. The projects I work on have some level of locking down code to close out the last remaining bugs, but if it took a year, I can see how it would be an almost paralysing decision to make.</p>
<h3><span style="font-size: 19px;">You&#8217;re no different from Nukem</span></h3>
<p>To some extent or another, your project will have some of these issues. Or the server will blow up. If you don&#8217;t have complete freedom and never know when to finish the business will be on your ass. Or the IT department. Or someone else&#8217;s sucky APIs will kill you slowly as you realise you&#8217;re the first person to use them. Or you will get a fundamental set of assumptions so wrong that you need to reset. Or you hire someone that turns out to be worse than useless (and yeah &#8211; I know you will <a href="http://www.bothsidesofthetable.com/2011/05/26/startup-mantra-hire-fast-fire-fast/">fire them quickly</a>, but it will still suck energy and time from the team).</p>
<p>Once you realize that some or all of these things will happen to your project, you can start to use this information to your advantage&#8230;</p>
<p><span style="font-size: 19px; font-weight: bold;">Duke Nukem Forever is at the limit of how long things will take</span></p>
<p><a href="http://ars.userfriendly.org/cartoons/?id=20030430"><img class="aligncenter" title="Usenet jokes mocking DNF's delay 8 years ago" src="http://www.3drealms.com/duke4/images/uf005450.gif" alt="people are bitter waiting for DNF to launch" width="720" height="274" /></a></p>
<p>See here&#8217;s the thing: Duke Nukem is pretty much at the outer limit of how long you can get away with a project overrunning. Any longer and it would have been be laid to rest. If it weren&#8217;t for the cult-like following DNF&#8217;s only achievement would have been 3 <a href="http://www.wired.com/science/discoveries/news/2004/01/61935?currentPage=all">Vaporware of the year</a> awards (and a lifetime award to boot). <a href="http://www.gearboxity.com/content/view/645/33/">Gearbox Software</a>, the company that picked up development after the <a href="http://www.shacknews.com/article/58519/duke-nukem-developer-3d-realms">original developer went bankrupt</a> probably realized that they were better off launching a mediocre game and starting from scratch than suffering yet another rewrite. This gives them the opportunity to reset the &#8216;development time&#8217; clock.</p>
<h2>Enter the Nukem as a unit of development time</h2>
<p>With all this in mind, I propose that we consider using the lesson of Duke Nukem Forever to give us a new unit of software estimation:</p>
<blockquote style="font-size: 1.2em;"><p><strong>A Nukem</strong>: <em>The amount of time a project or part thereof will take when pretty much anything that can go wrong does.</em></p></blockquote>
<h2>So &#8211; how long will your next project take?</h2>
<p>I can&#8217;t be precise, but I can be accurate. This is how long your next project will take longer than you expect it to to and less than a Nukem. Or, in mathematical terms:</p>
<blockquote><p><em style="font-size: 3em;">ψ &lt; x &lt; ω</em></p>
<p><em>Where:</em></p>
<p><em><em>ψ = the amount of time you expect it to take</em></em></p>
<p><em><em>x = the amount of time it will actually take</em></em></p>
<p><em><em><em>ω = a Nukem</em></em></em></p></blockquote>
<p>What&#8217;s interesting here is that many of the issues that Nukem had weren&#8217;t really down to code or developers, yet developers are the ones who get asked to estimate project duration and get held to it. Oh well, tough shit, that&#8217;s what you get for being a creator. Broussard&#8217;s stock response of &#8220;<a href="http://forums.3drealms.com/vb/showthread.php?p=654680#post654680">screw you publisher, it&#8217;ll be ready when it&#8217;s ready</a>&#8221; actually ended up killing his baby. Of course if you go to someone who is paying the bills with this range, you&#8217;ll probably not get vey far. But there is hope. In my next post I&#8217;ll show you how you can use this information to arrive at a range that is more palatable to them, has some science behind it, and allows the business to make some decisions based on your assumptions.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=PhF0Cup9XJ4:uSkvjU6AdWM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=PhF0Cup9XJ4:uSkvjU6AdWM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=PhF0Cup9XJ4:uSkvjU6AdWM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=PhF0Cup9XJ4:uSkvjU6AdWM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=PhF0Cup9XJ4:uSkvjU6AdWM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=PhF0Cup9XJ4:uSkvjU6AdWM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/PhF0Cup9XJ4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/06/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/06/your-project-will-take-longer-than-you-think-and-less-than-a-nukem.html</feedburner:origLink></item>
		<item>
		<title>Making Quality Software: how to test non-functional requirements</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/JBkP2OW6VYg/quality-software-testing-non-functional-requirements.html</link>
		<comments>http://www.eyefodder.com/2011/06/quality-software-testing-non-functional-requirements.html#comments</comments>
		<pubDate>Fri, 10 Jun 2011 04:32:06 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Quality Software]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=109</guid>
		<description><![CDATA[In my last post, I outlined what I think are the twelve key constraints you need to think about if you are going to build high quality software that people want to use. As I mentioned, thinking through this needn&#8217;t be a mind sapping endeavour, and for some things you may just decide it&#8217;s not [...]]]></description>
				<content:encoded><![CDATA[<p>In my last post, I outlined what I think are the <a title="Making Quality Software: 12 non functional requirements every app should have." href="http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html">twelve key constraints</a> you need to think about if you are going to build high quality software that people want to use. As I mentioned, thinking through this needn&#8217;t be a mind sapping endeavour, and for some things you may just decide it&#8217;s not important right now. Here&#8217;s the rub though; once you&#8217;ve decided something is important enough to define as a constraint on your system you&#8217;d better think about how you&#8217;re going to test it. If not, you may as well kiss the requirement goodbye as eventually people will stop paying attention to it. Here&#8217;s how I would go about testing each of those twelve constraints:<br />
<span id="more-109"></span></p>
<h2>The trouble with typical non functional requirements</h2>
<p>&#8220;it&#8217;s not fast enough&#8230;&#8221; That was the response I always had with my client / UX lead when I was developing when I asked them what they thought of the application. The trouble was, the client was used to seeing a vision demo which had canned data and used smoke and mirrors to mimic the application without having to worry about anything like network latency or the size of data. During development, the software you are building will go through various degrees of speed and performance as you strike a balance between functionality, flexibility and speed. In order for you not to get the shaft as a much harried developer, you need to arrive at an understanding with the client about what performance is acceptable and in what conditions.</p>
<h2>Make your requirements SMART</h2>
<p>First off, the creation and agreement of how the application needs to behave has to be a conversation between UX, the business and the technical team; you all fail if they are crappy, and you all need to sign up to them. What you need to do is come away with a clearly defined set of goals for &#8216;quality&#8217; of the application. Like any other requirement, they should be clear, simple and understandable. A great way to check this is to use the SMART principle first written up by Mike Mannion and Barry Keepence in a <a href="http://www.win.tue.nl/~wstomv/edu/2ip30/references/smart-requirements.pdf">1995 paper</a> on this. Basically they suggest that requirements should be:</p>
<p><em><strong>S</strong>pecific </em>- Clear, consistent and simple<br />
<em><strong>M</strong>easurable</em> &#8211; If you can&#8217;t measure it, you won&#8217;t know when you&#8217;ve acheived it<br />
<em><strong>A</strong>ttainable</em> &#8211; The requirement must be something that the team thinks is acheivable given what they know<br />
<em><strong>R</strong>ealizable</em> &#8211; Can it actually be done given the constraints you know about the way the project is being executed (is there enough money / time to acheive this goal for example)<br />
<em><strong>T</strong>raceable</em> &#8211; It is important to understand why a requirement exists so that it can be justified (and to question if it is still needed if the original driver or assumption changes)</p>
<h2>A common structure for defining the requirements</h2>
<p>I did quite a bit of hunting looking for a way that I could describe requirements as diverse as conformance to coding standards and ability to cope with year-on-year growth needs. Fortunately I found this post by <a href="http://www.theagileengineer.com/public/Home/Entries/2008/10/12_Qualities,_User_Stories_and_sad_state_of_Scrum_requirements.html">Ryan Shriver</a> that talks about how he uses a method by <a href="http://gilb.com">Tom Gilb</a></p>
<blockquote><p>[requirements] can 1) be specified numerically and 2) systems can be engineered to meet specific levels of performance. Qualities can be specified using a minimum of six attributes:</p>
<p style="padding-left: 30px;"><strong>Name</strong>: A unique name for the quality<br />
<strong>Scale</strong>: “What” you’ll measure (aka the units of measure, such as seconds)<br />
<strong>Meter</strong>: “How” you’ll measure (aka the device you’ll use to obtain measurements)<br />
<strong>Target</strong>: The level of performance you’re aiming to achieve (how good it can be)<br />
<strong>Constraint</strong>: The level of performance you’re trying to avoid (how bad it can be)<br />
<strong>Benchmark</strong>: Your current level of performance.</p>
</blockquote>
<h2>Some sample requirements and reports</h2>
<p>I think it&#8217;s best to take a look at a few examples from my last post on <a title="Making Quality Software: 12 non functional requirements every app should have." href="http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html">essential non functional requirements for building quality software</a>. What I&#8217;m showing here is how I would specify test and report the constraint:</p>
<h3>Processing times</h3>
<p>First off a relatively simple one. Measuring processing time is a matter of allowing the system to log out how long it took to do stuff.</p>
<p><strong>Name</strong>: Parsing of a large search result<br />
<strong>Scale</strong>: Elapsed milliseconds from receiving an XML response in the client containing 1000 results<br />
<strong>Meter</strong>: Log messages with a defined signature that output the parsing time in milliseconds<br />
<strong>Target</strong>: &lt;1200ms (i.e. 1200 ms or less is a target time)<br />
<strong>Constraint</strong>: &gt;5000 ms (i.e. more than 5000 ms is an epic fail)<br />
<strong>Benchmark</strong>: Build 155; test environment 3/21/11: 4500ms</p>
<p>Reporting this over time could give a chart something like this:</p>
<p style="text-align: center;"><img class="size-full wp-image-110 aligncenter" title="Processing time test report" src="http://www.eyefodder.com/media/2011/06/queryTimeTestReport.png" alt="sample processing time test report" width="486" height="373" /></p>
<h3>Architectural standards</h3>
<p>This one seems a bit more tricky at first glance. How can you measure how compliant a codebase is against architectural standards? Fortunately there are some great <a href="http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis">static analysis tools </a>out there that allow you to inspect your code for potential problems. We have used <a href="http://pmd.sourceforge.net/">PMD</a> and <a href="http://opensource.adobe.com/wiki/display/flexpmd/FlexPMD">FlexPMD</a> in our projects. You can write your own rules or draw from common rulesets. Using this we are able to reduce things like architectural conformance to something quantifiable and thus testable:</p>
<p><strong>Name</strong>: Conformance to standard Flex architectural best practices<br />
<strong>Scale</strong>: # of PMD high warnings from the &#8216;cairngorm&#8217; and &#8216;architecture&#8217; PMD rulesets<br />
<strong>Meter</strong>: Flex PMD warnings reported by the nightly <del><a href="http://www.infoq.com/news/2011/01/jenkins">Hudson</a></del> <a href="http://jenkins-ci.org/content/about-jenkins-ci">Jenkins</a> build divided by the number of classes<br />
<strong>Target</strong>: &lt;1200ms (i.e. 1200 ms or less is a target time)<br />
<strong>Constraint</strong>: &gt;5000 ms (i.e. more than 5000 ms is an epic fail)<br />
<strong>Benchmark</strong>: Build 155; test environment 3/21/11: 4500ms</p>
<p><img class="aligncenter size-full wp-image-111" title="Sample Architectural compliance test report" src="http://www.eyefodder.com/media/2011/06/architecturalTestReport.png" alt="Architectural compliance test report" width="486" height="373" /></p>
<p>You can see here how architectural standards started to lapse in sprint 3. The good news was that it was caught and addressed. This sort of conversation is far easier to have with your team when you have data to support the conversation.</p>
<h3>Year on year growth requirements</h3>
<p>Last one to demonstrate some breadth. If you want to test growth requirements, you are basically going to have to think about what your likely point of failure is going to be in your other requirements as your user base grows. It could be storage needs or response times, or more likely it&#8217;s peak throughput. In the example below, we increase the standard load on the system until the throughput test fails. We use that to predict how much runway the current system has before breaking down.</p>
<p><strong>Name</strong>: 60% year-on-year growth<br />
<strong>Scale</strong>: Number of months for system to hit peak throughput failure<br />
<strong>Meter</strong>: Standard Load Scenario increased by 5% per month and measured in each scenario until failure<br />
<strong>Target</strong>: 8 months<br />
<strong>Constraint</strong>: 3 months<br />
<strong>Benchmark</strong>: Current application; 3/21/11; Production environment; 2 months</p>
<p><img class="aligncenter size-full wp-image-112" title="Sample growth requirements test report " src="http://www.eyefodder.com/media/2011/06/growthRequirementTestReport.png" alt="Sample growth requirements test report " width="486" height="373" /></p>
<h2>Simplicity and Consistency</h2>
<p>This pretty much wraps it up for non functional requirements (and FWIW, I agree with Mike Cohn that <a href="http://blog.mountaingoatsoftware.com/non-functional-requirements-as-user-stories">we should be calling these things constraints</a>). Non functional requirements can be a gnarly area as they attempt to describe areas of the software most prone to gradual decay and entropy, but I think these are the areas that are important to test if you are serious about building decent quality software. What I like about the approach is that the output reports are nice, clean and simple. They allow you to report on really varied requirements in a consistent manner and allow you to have a data driven conversation if things start to slide.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=JBkP2OW6VYg:2qer7U97oP4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=JBkP2OW6VYg:2qer7U97oP4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=JBkP2OW6VYg:2qer7U97oP4:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=JBkP2OW6VYg:2qer7U97oP4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=JBkP2OW6VYg:2qer7U97oP4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=JBkP2OW6VYg:2qer7U97oP4:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/JBkP2OW6VYg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/06/quality-software-testing-non-functional-requirements.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/06/quality-software-testing-non-functional-requirements.html</feedburner:origLink></item>
		<item>
		<title>Making Quality Software: 12 non functional requirements every app should have.</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/aSYBqKpxQ0A/quality-software-non-functional-requirements.html</link>
		<comments>http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html#comments</comments>
		<pubDate>Tue, 07 Jun 2011 02:24:18 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Quality Software]]></category>

		<guid isPermaLink="false">http://www.eyefodder.com/?p=107</guid>
		<description><![CDATA[When people talk about really great quality software, they usually think in terms of it&#8217;s utility, simplicity or aesthetics. But there&#8217;s more to it than that. A really great piece of software will bleed quality through and through like a piece of Brighton Rock (or Bognor Regis). What separates high quality software from mediocrity? It&#8217;s [...]]]></description>
				<content:encoded><![CDATA[<p>When people talk about really great quality software, they usually think in terms of it&#8217;s utility, simplicity or aesthetics. But there&#8217;s more to it than that. A really great piece of software will bleed quality through and through like a piece of Brighton Rock (or <a href="http://www.flickr.com/photos/charlottehbest/5775157361/" target="_blank">Bognor Regis</a>). What separates high quality software from mediocrity? It&#8217;s being aware of and planning for the right constraints to put on the way you develop software. Frank Lloyd Wright did his best work in tightly constrained spaces and awkward sites, and as software engineers we need to do the same to avoid flabby work. Here&#8217;s my list of twelve constraints I&#8217;d plan for on my next project:<br />
<span id="more-107"></span><br />
<a title="Falling Water by amanderson2, on Flickr" href="http://www.flickr.com/photos/amanderson/454044257/"><img src="http://farm1.static.flickr.com/191/454044257_0b26b21e0d.jpg" alt="Falling Water" width="375" height="500" /></a><br />
<em>Great architecture comes from great constraints</em></p>
<h2>How I arrived at this list</h2>
<p>I started to look at this a little while back when I was putting together our <a href="http://blogs.adobe.com/swebster/2010/03/3_steps_to_inno.php#more">playbook</a> for how we create software for our customers by bringing together <a href="http://agilemanifesto.org/">agile</a> and <a href="http://en.wikipedia.org/wiki/User-centered_design">user centred design</a> together. We articulate our requirements as <a href="http://www.mountaingoatsoftware.com/topics/user-stories">User Stories</a>, but outside of the functional aspects of the system, I realized that there are a common set of non-functional requirements that we saw the need for over and over again. Mike Griffiths has put together a great checklist of n<a href="http://leadinganswers.typepad.com/leading_answers/2009/03/nonfunctional-requirements-minimal-checklist.html">on-functional requirements</a>, but I felt that a number of them could be covered off and scheduled in standard stories. What follows are the ones that to me are about how a development team needs to think and behave over time:</p>
<h2>Performance</h2>
<p>This one shouldn&#8217;t come as a surprise. Quality software has to be fast. Or at least feel fast. As a front-end guy, this is the one I always feel first. &#8220;It&#8217;s not fast enough&#8221; is a battle I never want to get into. I had this reported as a bug against one of my projects, but the client wouldn&#8217;t specify what &#8220;fast enough&#8221; was; talk about moving goalposts. When you think about an app being performant, thing about specifying the following:</p>
<h3>1. Response times</h3>
<p>How long should your app take to load? What about screen refresh times or choreography?</p>
<h3>2. Processing times</h3>
<p>Can I get a <a href="http://en.wikipedia.org/wiki/Spinning_wait_cursor">spinning beachball</a> please? How long is acceptable to perform key functions or export / import data?</p>
<h3>3. Query and Reporting times</h3>
<p>This could be covered off with general reporting times, but if you&#8217;re providing an API you should probably consider acceptable query times too.</p>
<h2>Capacity and Scalability</h2>
<p>How much do you need to cope with now, and how much do you think you&#8217;ll need to cope with in the future. Unless you are truly blessed with an incredibly forgiving audience (or a great illustrator), you won&#8217;t be able to get away with your own fail whale.<br />
<a title="Yiying Lu's Fail Whale for twitter" href="http://www.yiyinglu.com/sc/illustration"><img src="http://www.yiyinglu.com/showcase/30.%20Illustration/01.%20Naive%20Collection/05.gif" alt="Fail Whale" width="499" height="375" /></a><br />
<em>Your audience had better be pretty charmed by you if you can get away with regularly futzing on capacity</em></p>
<h3>4. Throughput</h3>
<p>Think about how many transactions your system needs to handle. A thousand a day? A million? When Amazon solved this for their needs, they decoupled systems and created a <a href="http://aws.amazon.com/sqs/">queue service</a> that became the foundation of AWS.</p>
<h3>5. Storage</h3>
<p>How much data are you going to need to store to do the awesomeness you need it to do?</p>
<h3>6. Growth Requirements</h3>
<p>This is a tough one, because truly you don&#8217;t know how popular your app is going to be until it&#8217;s out there. But you can bet (or hope) that someone has made predictions about how wildly successful your app is going to be. Be wary of over engineering here, but at least make sure you aren&#8217;t constantly <a href="http://techcrunch.com/2010/06/08/twitter-190-million-users/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A+Techcrunch+%28TechCrunch%29&amp;utm_content=Google+Reader">laying down track in front of a moving train</a>.</p>
<h2>Availability</h2>
<p>Does your system need to be available all the time, and to everyone? Most of the time you can get away with the occasional vacation, but knowing what&#8217;s important helps you make good decisions. Quality software ain&#8217;t quality if its down when your precious users need it<br />
<a title="iPad2 line by mohrolsen, on Flickr" href="http://www.flickr.com/photos/mohrolsen/5558757306/"><img src="http://farm6.static.flickr.com/5144/5558757306_12aca10bb4.jpg" alt="iPad2 line" width="500" height="500" /></a></p>
<p><em>Can you get away with a product that is rarely available?</em></p>
<h3>7. Hours of operation</h3>
<p>When does your app need to be available? If you need to do a database upgrade or a system backup, can you take the system offline while you do it?</p>
<h3>8. Locations of operation</h3>
<p>A few things to think about here: Geographic location, connection requirements and the restrictions of a local network prevail. If you are building a killer app for use behind the corporate firewall, you&#8217;d better make damn sure you aren&#8217;t using any exotic ports.</p>
<h2>Maintainability</h2>
<p>When you&#8217;re running a software project you are at constant war against <a href="http://pragprog.com/the-pragmatic-programmer/extracts/software-entropy">software entropy</a>. This is your chance to save yourself from having to live with shitty code, or leave shitty code for others to pile more shit onto. I&#8217;m passionate about this; can you tell?</p>
<p><a title="76:365 Broken by Bamagirl7, on Flickr" href="http://www.flickr.com/photos/bamagirl7/3362031185/"><img src="http://farm4.static.flickr.com/3608/3362031185_ea2d4d9796.jpg" alt="76:365 Broken" width="500" height="333" /></a><br />
<em>Don&#8217;t live with broken windows</em></p>
<h3>9. Architectural Standards</h3>
<p>What&#8217;s important here is that the code is going to feel like a consistent body of work, not some ad-hoc glom of a bunch of developers&#8217; whims. Define what the standards need to be else you&#8217;ll always be discussing the merits of different styles.</p>
<h3>10. Coding Standards</h3>
<p>Again &#8211; decide on the coding standards for the application and stick to them!</p>
<h2>Recovery</h2>
<p>You are prepared for a disaster, right? Right? And if a disaster happens, how long&#8217;s it going to take to get back up and running?<br />
<a title="Storage centre SF by eyefodder, on Flickr" href="http://www.flickr.com/photos/eyefodder/5806901462/"><img src="http://farm4.static.flickr.com/3079/5806901462_68c00a7cb6.jpg" alt="Storage centre SF" width="500" height="333" /></a></p>
<p><em>Backing up your stuff somewhere is smart, but how long will it take to get it out of storage?</em></p>
<h3>11. Restore time</h3>
<p>I know you don&#8217;t want to think about the worst happening, but if it does, ask yourself how long should it take to get back up and running?</p>
<h3>12. Backup time</h3>
<p>Speaking of which, how long does it take to back your data?</p>
<h2>It doesn&#8217;t need to be all doom and gloom</h2>
<p>I know when I first put together this list, I felt a bit deflated at all the extra specification I was laying onto my magic development world. In truth though it&#8217;s not all that bad. In fact I&#8217;ve done the hard legwork for you in editing down the list. If you just think through these things early on in development, you can be pretty sure you are going to save yourself either under- or over-engineering your app, and be much more likely to produce decent quality software that you can be proud of.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=aSYBqKpxQ0A:jlGEY3bSmGY:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=aSYBqKpxQ0A:jlGEY3bSmGY:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=aSYBqKpxQ0A:jlGEY3bSmGY:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=aSYBqKpxQ0A:jlGEY3bSmGY:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=aSYBqKpxQ0A:jlGEY3bSmGY:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=aSYBqKpxQ0A:jlGEY3bSmGY:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/aSYBqKpxQ0A" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2011/06/quality-software-non-functional-requirements.html</feedburner:origLink></item>
		<item>
		<title>Code Coverage with Flex – a headless agent for CI builds</title>
		<link>http://feedproxy.google.com/~r/Eyefodder/~3/n_T85shmgz8/code_coverage_with_flex_a_head.html</link>
		<comments>http://www.eyefodder.com/2009/07/code_coverage_with_flex_a_head.html#comments</comments>
		<pubDate>Tue, 28 Jul 2009 17:29:37 +0000</pubDate>
		<dc:creator>Paul Barnes-Hoggett</dc:creator>
				<category><![CDATA[Agile Software Development]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Flash & Actionscript]]></category>

		<guid isPermaLink="false">http://localhost:8888/?p=33</guid>
		<description><![CDATA[In my last blog post I gave details of how I user the modified code coverage viewer for flex in an automated build to follow the trend of code coverage over time. The trouble with this approach was that there was a problem either with the localConnection in flex or the code that uses it [...]]]></description>
				<content:encoded><![CDATA[<p>In my last blog post I gave details of how I user the modified <a href="http://www.eyefodder.com/2009/07/code_coverage_with_flex_runnin.html">code coverage viewer for flex</a> in an automated build to follow the trend of code coverage over time. The trouble with this approach was that there was a problem either with the <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=security2_13.html">localConnection</a> in flex or the code that uses it and there was a wide variance of the values being reported. This post shows you how I fixed it by creating a headless code coverage reporter that you can drop into your test harness and remove the need for a second application altogether.</p>
<p><span id="more-33"></span><br />
In order to try and do this I decided to use as much of the code as possible that the <a href="http://code.google.com/p/flexcover/">FlexCover</a> guys had written, and only change what I needed to get it working.Once I had it up and running I could worry about making it faster / leaner / more neatly coded&#8230;</p>
<h3>The approach</h3>
<p>So here&#8217;s the basic plan:</p>
<ol>
<li>Swap out the default localConnection reporting mechanism for one that will pick and choose depending on environment the app is running in</li>
<li>Create a headless agent that will pull the code coverage data collection and reporting side of the coverageViewer into the app</li>
<li>Use commandline options to swap between the headless and localConnnection agent</li>
<li>Default to using the localConnnection</li>
</ol>
<h3>How it works</h3>
<p>When your app compiles using the instrumented SDK created for using <a href="http://code.google.com/p/flexcover/">FlexCover</a>, your application makes use of a class called CoverageManager. This manager is a patch that allows you to plug in a custom code coverage agent for use in your app. By default it uses a class called <code>LocalConnectionCoverageAgent</code> which broadcasts code coverage metadata to the coverage viewer application. What my patch does is get in and allow you to use a different, headless agent. To do this simply call during the preinitialize event of your main application:</p>
<pre class="brush: as3; title: ; notranslate">
private function injectAgent():void{
CoverageManager.agent = new CoverageAgentSwitch();
}</pre>
<p>As a quick test, run your app as you had previously and confirm it still works by sending data over a localConnection to the CoverageViewer. This is expected as by default, the switch will create a LocalConnectionCoverageAgent. In order to use the headless agent you need to set a few commandline properties. First you need to tell the switch that you want to go headless. Then the headless agent needs to know where it&#8217;s getting its metadata from, where it should output the code coverage report. The commandline options are:</p>
<pre class="brush: bash; title: ; notranslate">
-coverage-agent-type=headless &lt;em&gt;Headless is only option, anything else will default to localConnectionAgent&lt;/em&gt;
-coverage-metadata='/full/path/to/coverage/metadata.cvm'
-coverage-output='/full/path/to/coverage/reportInOriginalFormat.cvr'
-emma-report='/full/path/to/coverage/reportInEmmaFormat.xml'
</pre>
<p>Note that if you don&#8217;t specify the metadata path and at least one of the report formats, the headless agent will log errors but otherwise fail silently.<br />
In terms of the edits I made to get it working, that is pretty much it. The headlessCoverageAgent swc is probably larger than it needs to be and is definitely grossly inefficient. I will update this soon to improve this, but right now I only have time to get this post up.<br />
Obviously you will have to change your build script to pass these new commandline parameters in to the test harness when you run it. If there is any interest, I&#8217;ll post my updated build script and test harness modifications that dispense with the log parser altogether and make for a more repeatable build script.</p>
<h3>The Result</h3>
<p>My build process is now much quicker because I don&#8217;t have to wait to be sure that the coverage viewer has initialized. It&#8217;s also completely stable and the code coverage trend has been a great motivator for the team.<br />
<img src="http://www.eyefodder.com/images/betterCoverage.png" alt="better coverage" width="324" height="266" /><br />
<em>Code Coverage trend without crazy variance found using the external viewer</em><br />
<a href="http://www.eyefodder.com/blog/downloads/headlessCoverageAgent.swc.zip">Download headless library</a></p>
<h3>Update</h3>
<p>A few of you have asked for a copy of the source code so you can play around with it and undoubtedly make it all work better for your needs. Attached here—with no warranty or support—is the <a href="http://www.eyefodder.com/blog/downloads/headlessCoverageAgent_src.zip">headless agent project</a>. In order to get it to work, you will need to have the <a href="http://flexcover.googlecode.com/svn/trunk/CoverageAgent/">CoverageAgent</a> and <a href="http://flexcover.googlecode.com/svn/trunk/CoverageUtilities">CoverageUtilities</a> projects in your workspace, as well as the modified <a href="http://www.eyefodder.com/2009/07/flex_code_coverage_process_par.html">CoverageViewer</a> project from previous posts. Good luck with it &#8211; It&#8217;s code I haven&#8217;t looked at for a while so don&#8217;t hate on me for it :/</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Eyefodder?a=n_T85shmgz8:m_YZI2wuEIM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=n_T85shmgz8:m_YZI2wuEIM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=n_T85shmgz8:m_YZI2wuEIM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=n_T85shmgz8:m_YZI2wuEIM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Eyefodder?i=n_T85shmgz8:m_YZI2wuEIM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Eyefodder?a=n_T85shmgz8:m_YZI2wuEIM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Eyefodder?d=qj6IDK7rITs" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Eyefodder/~4/n_T85shmgz8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.eyefodder.com/2009/07/code_coverage_with_flex_a_head.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		<feedburner:origLink>http://www.eyefodder.com/2009/07/code_coverage_with_flex_a_head.html</feedburner:origLink></item>
	</channel>
</rss>
