{"id":242,"date":"2010-09-20T08:25:43","date_gmt":"2010-09-20T12:25:43","guid":{"rendered":"http:\/\/www.peteonsoftware.com\/?p=242"},"modified":"2016-05-30T21:49:28","modified_gmt":"2016-05-31T01:49:28","slug":"the-case-for-requirements","status":"publish","type":"post","link":"https:\/\/www.peteonsoftware.com\/index.php\/2010\/09\/20\/the-case-for-requirements\/","title":{"rendered":"The Case for Requirements"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.peteonsoftware.com\/images\/201009\/Requirements.png\" style=\"float:left; margin: .5em;\" alt=\"Requirements\" title=\"Requirements\" \/>I was recently reading through some of my backlog of <a href=\"http:\/\/www.drdobbs.com\/\">Dr. Dobb&#8217;s Journals<\/a> (a PDF I receive monthly) and came across an article entitled <em>The Requirements Payoff<\/em> by Karl Wiegers.  I&#8217;ve archived a copy of the PDF <a href=\"https:\/\/www.peteonsoftware.com\/images\/201009\/DDD_0810.pdf\">here<\/a> and it can be found on pages 5-6.<\/p>\n<p>A lot of people seem to equate &#8220;requirements gathering&#8221; with &#8220;big design up front&#8221;, which is now often vilified as being antiquated and bloated.  Nothing could be further from the truth (about requirements, not BDUF).  In the book <a href=\"http:\/\/www.amazon.com\/Agile-Principles-Patterns-Practices-C\/dp\/0131857258\">Agile Principles, Patterns, and Practices in C#<\/a>, Uncle Bob talks about practicing Agile in a .Net world.  In every one of his examples, you have to know what your requirements are ahead of time.  The process goes as follows: <\/p>\n<ol style=\"clear:both;list-style-type: decimal;\">\n<li>Gather requirements<\/li>\n<li>Estimate requirements to determine length of project<\/li>\n<li>Work requirements in iterations<\/li>\n<li>Gauge velocity in coding requirements against estimate<\/li>\n<li>Determine whether your velocity requires you to either cut requirements or extend timelines<\/li>\n<li>Lather, rinse, repeat<\/li>\n<\/ol>\n<p>You see that the agile process doesn&#8217;t work without requirements.  In the article, Wiegers says that according to a 1997 study, &#8220;Thirty percent or more of the total effort spent on most projects goes into rework, and requirement errors can consume 70% to 85% of all project rework costs&#8221;.  That is a big penalty to pay for laziness or ineptitude in early requirements gathering.  This doesn&#8217;t mean that the requirements collected at the beginning are rigid and inflexible.  They are just a starting point.  However, changing the requirements changes the estimate and also the expected cost in time and resources and can fall under the statistic quoted above.<\/p>\n<p>Requirements are essential to TDD and BDD advocates, as well.  The requirements are what a vast majority of the tests are written against.  For instance, if the requirement is that the user name is an email address then a programmer will likely write a test (both positive and negative) verifying that the program behaves as expected when presented with an email address or a non-email address, etc.  Without that requirement, a test might only be written to ensure the user name wasn&#8217;t blank and the stake-holders might be upset when the program behaves differently than they imagined in their heads (and you failed to ferret out in requirements gathering).<\/p>\n<p>It is true that gathering proper requirements in advance costs time.  Wiegers sums it up best, however, when he says, &#8220;These practices aren&#8217;t free, but they&#8217;re cheaper than waiting until the end of a project or iteration, and then fixing all the problems. The case for solid requirements practices is an economic one.  With requirements, it&#8217;s not &#8216;You can pay me now, or you can pay me later.&#8217; Instead, it&#8217;s &#8216;You can pay me now, or you can pay me a whole lot more later.'&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was recently reading through some of my backlog of Dr. Dobb&#8217;s Journals (a PDF I receive monthly) and came across an article entitled The Requirements Payoff by Karl Wiegers. I&#8217;ve archived a copy of &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51],"tags":[113],"class_list":["post-242","post","type-post","status-publish","format-standard","hentry","category-agile","tag-agile"],"_links":{"self":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/comments?post=242"}],"version-history":[{"count":0,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/posts\/242\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/media?parent=242"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/categories?post=242"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.peteonsoftware.com\/index.php\/wp-json\/wp\/v2\/tags?post=242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}