{"id":89,"date":"2009-05-30T00:39:20","date_gmt":"2009-05-30T06:39:20","guid":{"rendered":"http:\/\/www.pervasivecode.com\/blog\/?p=89"},"modified":"2009-08-04T17:54:01","modified_gmt":"2009-08-04T23:54:01","slug":"xp-experiences-part-1-of-5","status":"publish","type":"post","link":"http:\/\/www.pervasivecode.com\/blog\/2009\/05\/30\/xp-experiences-part-1-of-5\/","title":{"rendered":"Extreme Programming Experiences: Part 1 of 5: Do The Simplest Thing That Could Possibly Work"},"content":{"rendered":"<p><b><a href=\"http:\/\/c2.com\/cgi\/wiki?DoTheSimplestThingThatCouldPossiblyWork\">Do The Simplest Thing That Could Possibly Work<\/a><\/b><\/p>\n<p>This does not mean &#8220;do the least work possible&#8221;. Doing the least possible is not XP, it is hackery, which is the methodology that leads to a <a href=\"http:\/\/www.laputan.org\/mud\/\">Big Ball of Mud<\/a>.<br \/>\n<!--more--><br \/>\nYou do want to do the least work possible in between the Red and Green steps, perhaps even by following the <a href=\"http:\/\/c2.com\/cgi\/wiki?PairProgrammingPingPongPattern\">Pair Programming Ping Pong Pattern<\/a>, a.k.a. <a href=\"http:\/\/www.peterprovost.org\/blog\/post\/The-Pair-Programming-TDD-Game.aspx\">The Pair Programming TDD Game<\/a>.<\/p>\n<p>But once you reach Green, you still need to <a href=\"http:\/\/c2.com\/cgi\/wiki?RefactorMercilessly\">Refactor Mercilessly<\/a>. That step obligates you to eliminate duplication (<a href=\"http:\/\/c2.com\/cgi\/wiki?DontRepeatYourself\">Don&#8217;t Repeat Yourself<\/a> \/ <a href=\"http:\/\/c2.com\/cgi\/wiki?OnceAndOnlyOnce\">Once and Only Once<\/a> \/ the <a href=\"http:\/\/c2.com\/cgi\/wiki?ZeroOneInfinityRule\">Zero One Infinity Rule<\/a>) and to make sure that the <i>code<\/i> Does The Simplest Thing That Could Possibly Work. <\/p>\n<p>This is very important, because this is how you avoid <a href=\"http:\/\/c2.com\/cgi\/wiki?AddingEpicycles\">AddingEpicycles<\/a>. That is, if you skip the Refactor stage and just keep on doing Red-Green over and over, the code and tests quickly become very hard to work with, because you&#8217;re just hacking on top of a design that no longer fits the requirements. Pretty soon you will find that your feature velocity has dropped dramatically, because it&#8217;s so darn hard to make a simple change without breaking pre-existing tests.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do The Simplest Thing That Could Possibly Work This does not mean &#8220;do the least work possible&#8221;. Doing the least possible is not XP, it is hackery, which is the methodology that leads to a Big Ball of Mud.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[58,61,5],"tags":[],"class_list":["post-89","post","type-post","status-publish","format-standard","hentry","category-agile-development","category-extreme-programming","category-process"],"_links":{"self":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/89"}],"collection":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":1,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions"}],"predecessor-version":[{"id":152,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/posts\/89\/revisions\/152"}],"wp:attachment":[{"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.pervasivecode.com\/blog\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}