<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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/"
	>

<channel>
	<title>Udi Dahan - The Software Simplist &#187; Agile</title>
	<atom:link href="http://www.udidahan.com/category/agile/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.udidahan.com</link>
	<description>Enterprise Development Expert &#38; SOA Specialist</description>
	<lastBuildDate>Sun, 08 Jan 2012 12:45:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>On Design for Testability</title>
		<link>http://www.udidahan.com/2010/04/18/on-design-for-testability/</link>
		<comments>http://www.udidahan.com/2010/04/18/on-design-for-testability/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 15:43:57 +0000</pubDate>
		<dc:creator>udidahan</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[The Team]]></category>

		<guid isPermaLink="false">http://www.udidahan.com/?p=1221</guid>
		<description><![CDATA[Almost at every conference, event, training, or consulting engagement someone asks for my opinion on the whole design for testability thing. I&#8217;m not quite sure why I haven&#8217;t blogged on this topic, especially at the time that a lot of the other bloggers were weighing in, but better late than never.
Before getting into that, I [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.udidahan.com/wp-content/uploads/elephant_balance.png" style="float:right; margin-left:10px; margin-bottom:10px; " alt="keeping balance" title="keeping balance" width="204" height="203" />Almost at every conference, event, training, or consulting engagement someone asks for my opinion on the whole design for testability thing. I&#8217;m not quite sure why I haven&#8217;t blogged on this topic, especially at the time that a lot of the other bloggers were weighing in, but better late than never.</p>
<p>Before getting into that, I want to start with a slightly broader scope of discussion.</p>
<p>You see, I get asked about &#8220;best practices&#8221; on all sorts of things. And I try not to be the kind of consultant that responds with &#8220;it depends&#8221;, but the context of the question often makes the answer irrelevant. And the unspoken context of a best-practice question is:</p>
<h2>Given infinite time and budget</h2>
<p>The biggest problem that I see with well-intentioned, best-practices-following developers and architects is that they <b>don&#8217;t</b> ask the question &#8220;is this the right thing for us to be focusing on right now?&#8221; Understandably, that is a difficult question to answer &#8211; but it needs to be asked, since you don&#8217;t have infinite time or budget to do everything according to best practices (assuming those even exist).</p>
<h2>About testing</h2>
<p>The biggest issue I have with the &#8220;design for testability&#8221; topic is the extremely narrow view it takes of the word &#8220;testability&#8221;, usually in the form of more code written by a developer which invokes the production code of the system, also known as &#8220;unit tests&#8221;.</p>
<p>There are many different kinds of testing &#8211; unit, integration, functional, load, performance, exploratory, etc&#8230; where some may be automated and others not. Should we not discuss what &#8220;design for testability&#8221; means for not-just-unit-testing?</p>
<h2>And what&#8217;s the point of testing anyway?</h2>
<p>It&#8217;s not to find bugs.</p>
<p>Research has shown that testing (of all kinds) is not the most effective way of finding bugs. I don&#8217;t have the reference handy but I&#8217;m pretty sure that it&#8217;s from <a href="http://alistair.cockburn.us/">Alistair Cockburn&#8217;s work</a>. Code reviews are (on average) about 60% more effective.</p>
<p>Don&#8217;t get me wrong &#8211; testing can provide indications that the software <b>has</b> bugs in it, but not necessarily where in the code those bugs are.</p>
<p>The purpose of testing is to provide quantitative and qualitative information about the system that can help various stakeholders in their decision-making processes. The relevance of that information indicates the quality of the testing. Here are some examples:</p>
<ul>
<li>The system supports 100 concurrent users, with the expected user-type distribution (X% role A, Y% role B, etc), performing expected use-case distributions, and collaboration scenarios.</li>
<li>Time to proficiency for new users in role A is expected to be 3 days</li>
<li>Alternate #2 of use case #12 fails on step #3</li>
</ul>
<p>As you can see, the relevance of the above information is dependent on what decisions the various stakeholders need to make. The bullet on load can help us decide if more machines are needed or if developers need to tune the performance of the systems. The bullet on time to proficiency can help us decide if larger investment in usability is required. Information like the last bullet can be used in conjunction with the first two to decide on the timing and type of a release.</p>
<p>The timeliness of this relevant information is critical to the success of a project.</p>
<p>Choosing which and how much of the various testing activities to perform when is something that needs to be revisited several times throughout the lifetime of a project, taking into account the current risks (threats and probabilities) and time and resource investment to mitigate them.</p>
<p>Let me reiterate &#8211; we&#8217;re not going to have enough time to do everything.</p>
<h2>On iterations</h2>
<p>If the only part of your organization that is doing iterations are your developers, you&#8217;re not agile.</p>
<p>In order to capitalize on the information that testers are providing, you need them in your iterations.</p>
<p>The same goes for the other roles involved in the project &#8211; business analysts, DBAs, sysadmins, etc.</p>
<p>I know that 99% of organizations aren&#8217;t structured in a way to do this.</p>
<p>I never said doing this would be easy.</p>
<h2>On design</h2>
<p>Figuring out what kind of design and how much to do when is just as important, and just as hard. Design for testability is one part of that, but not the only one, or necessarily the most important one at any point of time.</p>
<p>Within that design for testability topic is the &#8220;design for unit-testing&#8221; sub-topic which seems to be the popular one. Before getting into the design aspects of it, let&#8217;s take a closer look at the unit-testing side of things.</p>
<h2>On unit-testing</h2>
<p>The assumption is that having more unit tests will lead to a code-base with less bugs, thus requiring shorter time to get the system into production, which will pay back the time it took to write those unit tests to begin with.</p>
<p>In practice, what tends to happen is that as development progresses, testing code breaks as the structure of the production code changes. Now one of two things happens &#8211; either the testing code is removed or rewritten. In either case, we didn&#8217;t get the return on investment we expected on the first bit of testing code. Unfortunately, rare is the case where the relevant people in the organization understand <b>why</b>, resulting in the same situation repeating itself over and over again.</p>
<p>Those projects would have been better off without unit testing, though the organization as a whole might have used those experiences to learn and improve. It&#8217;s been my experience that if the organization wasn&#8217;t conscious enough in the context of the project to notice the situation, it is unlikely to do so at higher levels.</p>
<h2>On fragile unit tests</h2>
<p>The reason that a unit test ends up being rewritten (or removed) is that its code was coupled to the production code in such a way that it broke when the production code changed. This tendency to break (fragility) is a critical property of a unit test. A fragile unit test will slow down a developer doing work on some existing code &#8211; it actually makes the system less maintainable.</p>
<p>For a unit test code to be stable (not fragile) it needs to be coupled to stable properties of the production code. The question of whether the production code is designed in such a way that it has stable properties &#8211; is a design question. Is it a <b>unit</b>? If not, you will <b>not</b> be able to write a unit-test against it.</p>
<p>And anyway, who said that every class is a unit, or should be a unit? Domain models (when done right) are good examples of a unit, yet the classes that make them up may not be units. Unit-testing should only be attempted with things which are units. </p>
<p>I think too much weight is put on whether a dependency of a class is a concrete or interface type, and not nearly enough on the nature of the dependency. I wouldn&#8217;t blame the hammer for pounding my thumb, and by the same token I think that blame should not be directed towards tools like those from TypeMock.</p>
<h2>On tools</h2>
<p>There is so much more depth to both design and testability that needs to be more broadly understood. No tool has yet been created to handle either design or testing in such a way that humans can give up responsibility for the outcome. </p>
<p>Over the years I&#8217;ve noticed that tools are most significant when used by skilled practitioners, which makes sense in retrospect. Giving a novice carpenter a laser-guided saw probably won&#8217;t significantly change the outcome of their work. Ultimately, the skilled practitioners are the ones that create tools &#8211; not the novices. And no tool, no matter how advanced, will make a novice perform at levels like the skilled practitioner.</p>
<p>In the case of a project too big for a single skilled practitioner to complete in the time required (or at all), the balance of importance shifts away from tools to the project management topics described above.</p>
<h2>In summary</h2>
<p>I hope that this post has shed some light on the context in which decisions with respect to testing need to be made. Design is one activity that can support certain kinds of testing, but not the only one, or even the most important one for the given type of testing necessary at that time in the project.</p>
<p>Design is hard. Project management is hard. Testing is hard.</p>
<p>Getting the right mix of people that together have enough experience and skills in these activities isn&#8217;t easy.</p>
<p>Don&#8217;t expect that sprinkling some interfaces in your code base will be enough.<br />
That doesn&#8217;t count much in the way of design, just as writing code in a testing namespace doesn&#8217;t count much in the way of testability.</p>
<p>Looking forward to hearing your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2010/04/18/on-design-for-testability/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Convention over Configuration &#8211; The Next Generation?</title>
		<link>http://www.udidahan.com/2009/08/15/convention-over-configuration-the-next-generation/</link>
		<comments>http://www.udidahan.com/2009/08/15/convention-over-configuration-the-next-generation/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 18:13:24 +0000</pubDate>
		<dc:creator>udidahan</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[NServiceBus]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://www.udidahan.com/?p=1081</guid>
		<description><![CDATA[
Convention over configuration describes a style of development made popular by Ruby on Rails which has gained a great deal of traction in the .net ecosystem. After using frameworks designed in this way, I can say that the popularity is justified &#8211; it is much more pleasurable developing this way. 
The thing is, when looking [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.udidahan.com/wp-content/uploads/PicardKirk.jpg" alt="PicardKirk" title="PicardKirk" width="160" height="103" style="float:right; margin-left:10px; margin-bottom:10px; " /><br />
Convention over configuration describes a style of development made popular by Ruby on Rails which has gained a great deal of traction in the .net ecosystem. After using frameworks designed in this way, I can say that the popularity is justified &#8211; it is much more pleasurable developing this way. </p>
<p>The thing is, when looking at this in light of the full software development lifecycle, there are signs that the waters run deeper than we might have originally thought.</p>
<p>Let&#8217;s take things one step at a time though&#8230;</p>
<h3>What is it?</h3>
<p><a href="http://en.wikipedia.org/wiki/Convention_over_configuration">Wikipedia tells us</a>:</p>
<blockquote><p>&#8220;Convention over Configuration (aka Coding by convention) is a software design paradigm which seeks to decrease the number of decisions that developers need to make, gaining simplicity, but not necessarily losing flexibility. The phrase essentially means a developer only needs to specify unconventional aspects of the application.&#8221;</p></blockquote>
<p>What this means is that frameworks built in this way have default implementations that can be swapped out if needed. So far so good.</p>
<h3>For example&#8230;</h3>
<p>In <a href="http://www.NServiceBus.com">NServiceBus</a>, there is an abstraction for how subscription data is stored and multiple implementations &#8211; one in-memory, another using a durable MSMQ queue, and a third which uses a database. The convention for that part of the system is that the MSMQ implementation will be used, unless something else is specified. </p>
<p>Developers wishing to specify a different implementation can specify the desired implementation in the container &#8211; either one that comes out of the box, or their own implementation of ISubscriptionStorage.</p>
<p>Things get more interesting when we consider the full lifecycle.</p>
<h3>Lifecycle effects</h3>
<p>When developers are in the early phases of writing a new service, they want to focus primarily on what the service does &#8211; its logic. They don&#8217;t want to muck around with MSMQ queues for storing subscriptions and would much rather use the in-memory storage. </p>
<p>As the service takes shape and the developers want to run the full service on their machine, possibly testing basic fault-tolerance behaviors &#8211; kill one service, see that the others get a timeout, bring the service back up, wanting it to maintain all the previous subscriptions.</p>
<p>Moving on from there, our developers want to take the same system they just tested on their machine and move it into a staging environment. There, they don&#8217;t want to use the MSMQ implementation for subscription storage, but rather the database implementation &#8211; as will be used in the production environment. </p>
<p>While it may not sound like a big deal &#8211; changing the code which specifies which implementation to use when moving from one environment to another, consider that on top of just subscription storage, there is logging (output to console, file, db?), saga persistence (in-memory, file-based DB, relational DB), and more.</p>
<p>It&#8217;s actually quite likely that something will get missed as we move the system between environments. Can there be a better way?</p>
<h3>What if&#8230;</h3>
<p>What if there was some way for the developer to express their intent to the system, and the system could change its conventions, without the developer having to change any code or configuration files?</p>
<p>You might compare this (in concept) to debug builds and release builds. Same code, same config, but the runtime behaves different between the two.</p>
<p>As I mulled over how we could capture that intent without any code or config changes, the solution that I kept coming to seemed too trivial at first, so I dismissed it. Yet, it was the simplest one that would work for console and WinForms applications, as well as windows services &#8211; command line arguments. The only thing is that I don&#8217;t think those are available for web applications.</p>
<p>But since we&#8217;re still in &#8220;what if&#8221; land, and I&#8217;m more thinking out loud here than providing workable solutions for tomorrow morning, let&#8217;s &#8220;what if&#8221; command line arguments worked for web apps too.</p>
<h3>Command-Line Intent</h3>
<p>Going back to our original scenario, when developers are working on the logic of the service, they run it using the generic NServiceBus host process, passing it the command line parameter /lite (or whatever). The host then automatically configures all the in-memory implementations. </p>
<p>As the system progresses, when the developer wants to run everything on their machine, they run the processes with /integration. The host then configures the appropriate implementations (MSMQ for subscription storage, SQLite for saga persistence, etc. </p>
<p>When the developers want to run the system in production, they could specify /production (or maybe that could be the default?), and the database backed implementations would be configured.</p>
<h3>Imagine&#8230;</h3>
<p>Imagine being able to move that fluidly from one environment to another. Not needing to pore over configuration files or startup script code which configures a zillion implementation details. Not needing to worry that as you moved the system to staging something would break.</p>
<p>Imagine short, frictionless iterations even for large scale systems.</p>
<p>Imagine &#8211; lifecycle-aware frameworks making all this imagination a reality.</p>
<h3>In Closing</h3>
<p>We&#8217;re not there yet &#8211; but we&#8217;re not that far either. The generic host we&#8217;re providing with NServiceBus 2.0 is now being extended to support exactly these scenarios. </p>
<p>It&#8217;s my hope that as more of us think about this challenge, we&#8217;ll come up with better solutions and more intelligent frameworks. Just as convention came to our rescue before, breaking us out of the pain of endless XML configuration, I hope this new family of lifecycle-aware frameworks will make the friction of moving a system through dev, test, staging, and production a thing of the past.</p>
<p>A worthy problem for us all to solve, don&#8217;t you think?</p>
<p>Any ideas on how to make it a reality?<br />
Send them in &#8211; leave a comment below.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2009/08/15/convention-over-configuration-the-next-generation/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>YAGNI &#8211; Once Bitten, Twice Shy?</title>
		<link>http://www.udidahan.com/2007/12/20/yagni-once-bitten-twice-shy/</link>
		<comments>http://www.udidahan.com/2007/12/20/yagni-once-bitten-twice-shy/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 22:23:22 +0000</pubDate>
		<dc:creator>udidahan</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Simplicity]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://udidahan.weblogs.us/2007/12/20/yagni-once-bitten-twice-shy/</guid>
		<description><![CDATA[ It’s one of the things that sometimes drives me mad about the YAGNI philosophy of Agile. 
We need to stop throwing out the baby with the bath water.
Jay really liked that statement with relation to my previous post &#8220;Scalability &#8211; you wish you&#8217;re gonna need it&#8220;, so I thought I&#8217;d put up a logo [...]]]></description>
			<content:encoded><![CDATA[<p><em><img border="0" align="right" width="104" src="http://udidahan.weblogs.us/wp-content/uploads/yagni-once-bitten-twice-shy-thumb.png" alt="yagni_once_bitten_twice_shy" height="104" style="margin: 0px 20px 20px; border: 0px" /> It’s one of the things that sometimes drives me mad about the YAGNI philosophy of Agile. </em></p>
<p><em>We need to stop throwing out the baby with the bath water.</em></p>
<p>Jay really liked that statement with relation to my previous post &#8220;<a href="http://udidahan.weblogs.us/2007/12/12/scalability-you-wish-youre-gonna-need-it/">Scalability &#8211; you wish you&#8217;re gonna need it</a>&#8220;, so I thought I&#8217;d put up a logo for this movement. Anyone feeling like joining in, leave a comment, link, or whatever.</p>
<p>I understand that we don&#8217;t need to over-engineer everything, putting in every possible kind of extensibility point, so I accept that part of YAGNI. That is not a license to not think about the extensibility points you <strong>do</strong> need.</p>
<p>&lt;Remarks&gt;</p>
<p>This is a somewhat tongue-in-cheek post, and I do not want the pendulum to swing to far back the other way. But I do think it&#8217;s time it took a step back from the over-zealous &#8220;we&#8217;ll TDD our way there&#8221; thinking. Maybe Ron can pull it off. I&#8217;ve yet to see anyone else succeed.</p>
<p>&lt;/Remarks&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2007/12/20/yagni-once-bitten-twice-shy/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Estimate Individually &#8211; Fail Globally?</title>
		<link>http://www.udidahan.com/2007/09/01/estimate-individually-fail-globally/</link>
		<comments>http://www.udidahan.com/2007/09/01/estimate-individually-fail-globally/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 18:53:31 +0000</pubDate>
		<dc:creator>thesoftwaresimplist</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[The Team]]></category>

		<guid isPermaLink="false">http://udidahan.weblogs.us/2007/09/01/estimate-individually-fail-globally/</guid>
		<description><![CDATA[After reading Derek Hatchard&#8217;s post, The Art and War of Estimating and Scheduling Software, I wanted to follow up on my previous post on the topic, Don&#8217;t Trust Developers with Project Management. The problem lies with individualistic thinking.
Developers, and managers too for that matter, by and large are concerned with &#8220;productivity&#8221;. Developers want the latest [...]]]></description>
			<content:encoded><![CDATA[<p>After reading Derek Hatchard&#8217;s post, <a href="http://www.ardentdev.com/blog/index.php/2007/08/29/the-art-and-war-of-estimating-and-scheduling-software/">The Art and War of Estimating and Scheduling Software</a>, I wanted to follow up on my previous post on the topic, <a href="http://udidahan.weblogs.us/2007/08/06/dont-trust-developers-with-project-management/">Don&#8217;t Trust Developers with Project Management</a>. The problem lies with individualistic thinking.</p>
<p>Developers, and managers too for that matter, by and large are concerned with &#8220;productivity&#8221;. Developers want the latest tools and technologies so that they can churn out more code faster. Managers create schedules trying to get the maximum efficiency out of each one of their developers. They consider resource utilization and other terms that sound manager-ish.</p>
<p>Fact is, on medium to large sized projects, if you look at the studies you&#8217;ll find that developer productivity when measured as total lines of (non-blank) code of the system in production divided by the total number of developer days comes in roughly at 6. Maybe 7.</p>
<p>7 lines of code a day.</p>
<p>Let that sink in for a second.</p>
<p>I can hear the managers screaming already. OMFG, what were they doing all day long?! It takes, what, 10 minutes to put out 7 lines of code? An hour even, if it&#8217;s complicated recursive code and stuff. And they say they don&#8217;t like us micro-managing them?! Now we know why. It&#8217;s because they&#8217;re goofing off all day long.</p>
<p>Well, managers, that&#8217;s not really the way it goes. You see, you have to take into account the time it took to learn the technology, tools, frameworks, etc. Add to that the time of understanding the requirements, which is really sitting through boring meetings that don&#8217;t explain much. Finally, our poor developer actually gets to implement the requirement. Maybe run the system a couple of times, trying out the feature they implemented, and checking the code in.</p>
<p>Well, that&#8217;s actually the easy part. Now comes the part which kills most of the time. After a bunch of features have been developed by the team, the testers start banging away at it and find a bunch of bugs. Now the developer has to reverse-engineer some bizarre system behavior and figure out which part of the system is to blame. That involves usually some educated guessing (unless they&#8217;ve just joined the team and have been put in the bug-fixer role to &#8220;learn the system&#8221;, in which case it is thoroughly <B>UN</B>educated guessing). They change some code, run the system, which looks like its been fixed, check the new code in, and close the bug.</p>
<p>But the bugs keep coming. And as the project progresses towards production, more and more of the developers time is spent looking through code and changing existing code, that actually writing new code.</p>
<p>And the larger the system, the more bugs. And I don&#8217;t mean that the number of bugs linearly increases with lines of code, or number of features. It&#8217;s probably closer to exponential. If it&#8217;s a mission critical system, the performance bugs will be taking an order of magnitude more time to fix than other bugs.</p>
<p>So, as you can see, getting a system into production is a team effort. It includes the developers and testers, of course, but also management, and the customer, and how they manage scope. This is kind of a &#8220;duh&#8221; statement, but we&#8217;re getting to the punch-line.</p>
<p>If getting a system into production involves the entire team, isn&#8217;t that obviously true for each feature too?</p>
<p>In which case, why are we asking just the developers to estimate the time it takes to get a feature &#8220;done&#8221;? Why are we trying so hard to measure their productivity?</p>
<p>I know why. It&#8217;s so we can get rid of the less productive ones and give bonuses to the more productive ones!</p>
<p>Back to the main issue. I don&#8217;t &#8220;trust&#8221; developer estimates because I need to see the <i>team&#8217;s</i> capability to put features in production. The involves all aspects, and often many team members, in some cases multiple developers going through the same code. This involves all overhead and cross team communication, sick days, etc. It&#8217;s also why I try to get multiple data points over time to understand the team&#8217;s velocity.</p>
<p>While I care about the quality of my developers, and testers, and everybody on my team and would like them to be able to estimate their work as best they can, I&#8217;ve got a project to put into production. And the best way I&#8217;ll know when it&#8217;ll go into production is by having data that&#8217;ll enable me to state to my management:</p>
<p>&#8220;Our team is finishing 20 feature-units a month, we&#8217;ve got 200 feature-units to go, so we&#8217;ll be done in around 10 months.&#8221;</p>
<p>If I&#8217;m busy micro-measuring each developers estimates, I won&#8217;t have the time to see the forest. By first taking a harsh look at the reality of what the team can do, I can start looking for ways to make it better. Maybe the bottleneck is between analysts and developers, maybe we&#8217;re seeing the same bugs regressing many times, but until we know where we are, we can&#8217;t run controlled experiments to see what makes us better.</p>
<p>Focusing on the individual developer, getting them the latest and greatest tools may be great for their morale, but it probably won&#8217;t make a bit of difference to their actual productivity.</p>
<p>Next time &#8211; what to do when management asks you what it&#8217;ll take to be done sooner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2007/09/01/estimate-individually-fail-globally/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Successfully Applying Agile to Fixed-Bid Projects</title>
		<link>http://www.udidahan.com/2007/09/01/successfully-applying-agile-to-fixed-bid-projects/</link>
		<comments>http://www.udidahan.com/2007/09/01/successfully-applying-agile-to-fixed-bid-projects/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 13:06:08 +0000</pubDate>
		<dc:creator>thesoftwaresimplist</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Consulting]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Simplicity]]></category>
		<category><![CDATA[The Team]]></category>

		<guid isPermaLink="false">http://udidahan.weblogs.us/2007/09/01/successfully-applying-agile-to-fixed-bid-projects/</guid>
		<description><![CDATA[Jeremy&#8217;s trying to answer some hard questions about agile. I wanted to tackle the issue of fixed-bids, since most of my clients work on those kinds of projects and I managed those projects full-time before becoming a consultant.
So, here&#8217;s the thing.
The only way to win on fixed-bid projects, is to bid low, and then rack [...]]]></description>
			<content:encoded><![CDATA[<p>Jeremy&#8217;s <a href="http://codebetter.com/blogs/jeremy.miller/archive/2007/08/31/trying-to-answer-hard-questions-about-agile-development.aspx">trying to answer some hard questions about agile</a>. I wanted to tackle the issue of fixed-bids, since most of my clients work on those kinds of projects and I managed those projects full-time before becoming a consultant.</p>
<p>So, here&#8217;s the thing.</p>
<p>The only way to win on fixed-bid projects, is to bid low, and then rack up the change-requests. This is why people spend so much time documenting requirements, and then getting the client to sign off. It&#8217;s so they can prove that something is an actual change request, and thus they don&#8217;t have to do it. So, if the client wants to do whatever, they have to pay more money.</p>
<p>The problem is that it pisses off the client.</p>
<p>There&#8217;s another, subtler problem. It&#8217;s that clients get wise to this game, and front-load every possible requirement requesting total flexibility in everything. </p>
<p>This leads to another problem. We can&#8217;t bid low anymore.</p>
<p>Which leads to another problem. The client doesn&#8217;t have the budget to pay for the longer list of requirements.</p>
<p>Which leads us back to square one.</p>
<p>Fixed bids are a lose-lose proposition.</p>
<p>You see, if you bid rationally, taking into account the fact that some requirements will change, others will appear mid-way through, and so on, you&#8217;re bid will be significantly higher than the other guy who low-balled it. That means that the client will have a very hard time explaining to his management why he wants you to do the project.</p>
<p>So, the only way to win is for the client to realize this and game the system. This is sometimes a fine-line, possibly bordering on illegal when it comes to government contracts.</p>
<p>Once you have a client who understands that the fixed-bid is not in their interest, they will work collaboratively with you to get a reasonable system out the door within the given budget. There will be a lot of give-and-take but it can work. After a system goes into production successfully, it&#8217;s a lot easier to get management buy-in for the next version.</p>
<p>Fact is, upper management doesn&#8217;t really know all the specific requirements. So, if you don&#8217;t do them all, you&#8217;re OK, and so is your client.</p>
<p>In these circumstances, agile development is not only possible, but likely.</p>
<p>I know that it&#8217;s not really fixed-price, fixed-time, fixed-scope this way. But that&#8217;s what makes it successful <img src='http://www.udidahan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2007/09/01/successfully-applying-agile-to-fixed-bid-projects/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Self-Documenting, Test-Driven Alien Artifacts</title>
		<link>http://www.udidahan.com/2007/04/16/self-documenting-test-driven-alien-artifacts/</link>
		<comments>http://www.udidahan.com/2007/04/16/self-documenting-test-driven-alien-artifacts/#comments</comments>
		<pubDate>Mon, 16 Apr 2007 20:56:38 +0000</pubDate>
		<dc:creator>thesoftwaresimplist</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[Architecture]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://udidahan.weblogs.us/2007/04/16/self-documenting-test-driven-alien-artifacts/</guid>
		<description><![CDATA[How much, and what kind of documentation do we need to create even if we have “self-documenting code”? Or is that kind of code enough all by itself? I for one yearn for the day where the code really will be enough, and I think that Scott and Ayende do too. First of all, I [...]]]></description>
			<content:encoded><![CDATA[<p><P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>How much, and what kind of documentation do we need to create even if we have “self-documenting code”? Or is that kind of code enough all by itself? I for one yearn for the day where the code really will be enough, and I think that </FONT><A href="http://codebetter.com/blogs/scott.bellware/archive/2007/04/15/161874.aspx"><FONT face=Calibri>Scott</FONT></A><FONT face=Calibri> and </FONT><A href="http://ayende.com/Blog/archive/2007/04/16/Read-The-Code-is-not-a-valid-answer.aspx"><FONT face=Calibri>Ayende</FONT></A><FONT face=Calibri> do too. First of all, I think that as time progresses, the size of systems that the average developer works on is increasing substantially. And the larger a system is, the more we find a kind of code/design dialect that developers use to talk about that system. I think that these dialects are significantly different between framework/open source code, and application code. So, when a new developer comes in, do we tell them to “just read the code”? Or if the application has gone into production some time ago and now needs to be enhanced but the original team is long gone, what can be done?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></SPAN></P><br />
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>What I usually suggest (and practice) is to have some kind of documentation explaining “language” of the system – what things go together, how, and why; and just as importantly, what things must be kept apart. This can be a Software Architecture and Design document, or even videos of the design sessions where things were first discussed. The relevant requirements should be a part of this as well. We need to know that the reason asynchronous messaging was used was for the strenuous scalability requirements, otherwise we might start adding the high-productivity Visual Studio Web Services we like so much.<o:p></o:p></FONT></SPAN></P><br />
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Continuous integration is a boon to projects who use them. But developers who are only familiar with building solutions in Visual Studio may not be used to working that way, keeping code checked out for weeks at a time.<o:p></o:p></FONT></SPAN></P><br />
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><A href="http://codebetter.com/blogs/scott.bellware/archive/2007/04/15/161875.aspx"><FONT face=Calibri>Test-Driven Development and Architecture</FONT></A><FONT face=Calibri> will help those who know about it. We should probably write something up about how the system should be enhanced. Side-effect or not, developers and testers will need to know how we test the system – what tools are used in which way and at which stage of the development lifecycle. We could reference existing methodologies as well as in what ways we deviate from them and why.<o:p></o:p></FONT></SPAN></P><br />
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>What <I>sustainable</I> business value do we provide by leaving behind us </FONT><A href="http://www.eaves.org/blog-archive/000071.html"><FONT face=Calibri>alien artifacts and practices</FONT></A><FONT face=Calibri>? I’m not saying not to use state-of-the-art designs, techniques, and practices. On the contrary, I think that they are the key to sustainable business value. Necessary, but not sufficient. Documentation, of whatever flavor you find most suitable to each specific thing you are documenting, should be considered by the team as a whole, and the conclusions presented to stakeholders. The famous Chrysler C3 project’s long-term business value is shaky as the result of those stakeholders decision that documentation wasn’t necessary – in no way was the Agile process faulty in that respect.<o:p></o:p></FONT></SPAN></P><br />
<P class=MsoNormal style="MARGIN: 0cm 0cm 10pt"><SPAN lang=EN-US style="mso-ansi-language: EN-US"><FONT face=Calibri>Finally, you may be surprised the holes you find in your own thinking when forced to write down and explain to someone just coming in “how we do things around here”, I know I was. I can tell you that in the cases where I did that exercise, several stupid, costly mistakes were avoided. Fleshing out your thinking isn’t necessarily big design up front (BDUF), it’s just smart.<o:p></o:p></FONT></SPAN></P></p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2007/04/16/self-documenting-test-driven-alien-artifacts/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Agile Israel &amp; O/R Mapping</title>
		<link>http://www.udidahan.com/2005/02/06/agile-israel-or-mapping/</link>
		<comments>http://www.udidahan.com/2005/02/06/agile-israel-or-mapping/#comments</comments>
		<pubDate>Mon, 07 Feb 2005 03:51:34 +0000</pubDate>
		<dc:creator>thesoftwaresimplist</dc:creator>
				<category><![CDATA[Agile]]></category>

		<guid isPermaLink="false">http://wp_630.weblogs.us/archives/171</guid>
		<description><![CDATA[New Agile Israel site coming: www.AgileIsrael.com, still a work in progress.
Our first meeting went quite well, if you ask me. Roy, as usual, gives it proper treatment.
I think I&#8217;ll reiterate the bottom line of the talk I presented. If the system you&#8217;re working on has a non-trivial database element, then not using some kind of [...]]]></description>
			<content:encoded><![CDATA[<p>New Agile Israel site coming: <a href="http://www.AgileIsrael.com">www.AgileIsrael.com</a>, still a work in progress.</p>
<p>Our first meeting went quite well, if you ask me. Roy, as usual, gives it <a href="http://weblogs.asp.net/rosherove/archive/2005/02/01/364907.aspx">proper treatment</a>.</p>
<p>I think I&#8217;ll reiterate the bottom line of the talk I presented. If the system you&#8217;re working on has a non-trivial database element, then not using some kind of object-relational mapping tool will hinder your agility and the speed at which you can respond to change. Well, that&#8217;s my opinion.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.udidahan.com/2005/02/06/agile-israel-or-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

