<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://interactiveasp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Software Psychology : Human Factors, Requirements, Coding As Design, Estimation</title><link>http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Human+Factors/Requirements/Coding+As+Design/Estimation/default.aspx</link><description>Tags: Human Factors, Requirements, Coding As Design, Estimation</description><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>Software is Not Coding, It’s A Cooperative Game of Communication by Bruce Nielson</title><link>http://interactiveasp.net/blogs/softwarepsychology/archive/2010/09/20/software-is-not-coding-it-s-a-cooperative-game-of-communication.aspx</link><pubDate>Mon, 20 Sep 2010 06:04:25 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:6680</guid><dc:creator>BruceNielson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://interactiveasp.net/blogs/softwarepsychology/rsscomments.aspx?PostID=6680</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://interactiveasp.net/blogs/softwarepsychology/commentapi.aspx?PostID=6680</wfw:comment><comments>http://interactiveasp.net/blogs/softwarepsychology/archive/2010/09/20/software-is-not-coding-it-s-a-cooperative-game-of-communication.aspx#comments</comments><description>&lt;p&gt;In my post on &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2010/01/02/code-is-design-by-bruce-nielson.aspx"&gt;“code is really design”&lt;/a&gt; post, I mentioned that I would further address the paradox that &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2009/11/25/tools-or-people.aspx"&gt;software is created in “thoughts units”&lt;/a&gt; but &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2009/12/11/sure-it-s-the-people-but-which-people.aspx"&gt;the most important people to the success or failure of a project are the sponsor and customer&lt;/a&gt;. In this post, I’ll explore that paradox further by discussing Alistair Cockburn’s idea of Software as a cooperative game. &lt;/p&gt;  &lt;p&gt;In &lt;em&gt;Agile Software Development&lt;/em&gt;, Cockburn says:&lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;Software development is therefore a cooperative game of invention and communication. There is nothing in the game but people’s ideas and the communication of those ideas to their colleagues and to the computer.&lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;In &lt;em&gt;Crystal Clear: A Human-Powered Methodology for Small Teams&lt;/em&gt;, he writes: &lt;/p&gt;  &lt;blockquote&gt;   &lt;p&gt;[Successful teams] view developing software as an evolving conversation – an economic-cooperative game, actually. In any one move they go forward and create reminders for each other. &lt;/p&gt; &lt;/blockquote&gt;  &lt;p&gt;But in what sense is software a game and how does this help us understand software development better?&lt;/p&gt;  &lt;p&gt;I’ve never been fully comfortable with Cockburn’s calling it a “game.” I’m not sure images of Monopoly and Halo (which is what comes to my mind, anyhow) is what he intended.&lt;/p&gt;  &lt;p&gt;It’s helpful to refer to other non-software examples that Cockburn uses. One of my favorite of his examples is making laws in a legislature. &lt;/p&gt;  &lt;p&gt;&lt;strong&gt;Can You Estimate How Long it Will Take to Pass a Law? &lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Imagine if the republicans asked the democrats, “How long will it take you guys to pass that new health care law of yours?”&lt;/p&gt;  &lt;p&gt;Now in theory, the democrats should be able to estimate this. It’s just a bunch of words on a pieces of paper, right? Someone has to sit down to write it, they have to talk to experts, they have to run a few numbers and come up with a budget, then they have to pass it through a committee, then bring it to the floor, and finally get a vote. So the question the republicans are asking seems reasonable on the surface. &lt;/p&gt;  &lt;p&gt;But in reality, part of what the democrats have to estimate is how long it will take them to convince enough republicans to pass a version of the bill. If this step were unnecessary, making an estimate would probably be easy. But if the democrats need to actually convince some key republicans to vote for the bill to get it passed, then part of their estimate will have to be an estimate for how long it takes to keep revising the bill until the republicans accept it – if ever. &lt;/p&gt;  &lt;p&gt;Once we realize that is the case, the republican’s question seems less legitimate. The Republicans have a significant say in determining when the bill is “done” and the democrats don’t actually control that part of the process. The democrats cannot, even in principle, make an estimate for how long it will take to pass the law. &lt;/p&gt;  &lt;p&gt;I see software much like this. We have customers and sponsors on the one hand and the development team (programmers, testers, designers, project managers) on the other hand. But instead of capturing ideas into specific laws to be interpreted by other humans, they are cooperating together to capture business rules into an automated programs that will be interpreted by computers. &lt;/p&gt;  &lt;p&gt;There is nothing else going on when we make software. There is no analogy here to building a house or a wall, or anything else physical. When my customers ask me “how long will it take to program the fitz-bart module?” I am literally incapable of answering them because part of my estimate would have to be how long &lt;em&gt;they will choose to iterate&lt;/em&gt; before they accept the software as matching their needs. There is literally no limit to how many times they might choose to keep tweaking the requirements and I’ve been in cases where they never become satisfied with it. &lt;/p&gt;  &lt;p&gt;If I didn’t have to worry about customers having to accept the software, estimates would be a lot easier. But with customer acceptance required, it’s impossible to estimate anything beyond the first iteration of the creation of the module.&lt;/p&gt;  &lt;p&gt;&lt;strong&gt;An Alternative – Cooperation&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Now consider an alternative example. Lets say that both the republicans and democrats both are anxious to pass a health care bill and they both have more or less synchronous goals. Now is it possible to estimate how long it will take to pass a health care law? &lt;/p&gt;  &lt;p&gt;Absolutely!&lt;/p&gt;  &lt;p&gt;Why? Because now both sides are working together to meet a target date. This means both sides are motivated to make the date and, more to the point, both will be willing to accept some compromises to meet that date. &lt;/p&gt;  &lt;p&gt;Software works the same way. If the customers/sponsors and the development team both want to make a certain release date or a specific budget target, there is almost always a way to come up with a workable (though usually manual, and thus less than ideal) solution to any software problem such that you can meet those goals. It just requires both sides to agree that they will make the target date or the target budget and to be willing to negotiate on scope until they match those goals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=6680" width="1" height="1"&gt;</description><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Human+Factors/default.aspx">Human Factors</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Software+Develoment+Psychology/default.aspx">Software Develoment Psychology</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Estimation/default.aspx">Estimation</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Requirements/default.aspx">Requirements</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Project+Management/default.aspx">Project Management</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Coding+As+Design/default.aspx">Coding As Design</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Design/default.aspx">Design</category></item><item><title>The Law of Lossy Requirements by Bruce Nielson</title><link>http://interactiveasp.net/blogs/softwarepsychology/archive/2010/01/21/the-law-of-lossy-requirements.aspx</link><pubDate>Thu, 21 Jan 2010 19:15:00 GMT</pubDate><guid isPermaLink="false">b80005ef-4071-4968-b08e-765d7d71b33e:6479</guid><dc:creator>BruceNielson</dc:creator><slash:comments>0</slash:comments><wfw:commentRss xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://interactiveasp.net/blogs/softwarepsychology/rsscomments.aspx?PostID=6479</wfw:commentRss><wfw:comment xmlns:wfw="http://wellformedweb.org/CommentAPI/">http://interactiveasp.net/blogs/softwarepsychology/commentapi.aspx?PostID=6479</wfw:comment><comments>http://interactiveasp.net/blogs/softwarepsychology/archive/2010/01/21/the-law-of-lossy-requirements.aspx#comments</comments><description>&lt;p&gt;&lt;strong&gt;Lossy Compression&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In computer science, compression is an indispensible tool. Anyone familiar with .zip files knows what I mean. Interestingly, there are two kids of compression, lossless and lossy. &lt;a href="http://en.wikipedia.org/wiki/Lossless_compression"&gt;Lossless compression&lt;/a&gt; is like .zip compression, you put a file of, say, 100kb in and the end result is a file of, say, 50k. But when you reverse the process, you get back your original 100kb file.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://en.wikipedia.org/wiki/Lossless_compression"&gt;Lossless compression&lt;/a&gt; relies on the fact that in real life information contains patterns. Just imagine taking this post and finding the most common used words in it. Then replace the most common word with a the tag &amp;ldquo;&amp;lt;1&amp;gt;&amp;rdquo; and the next most common with &amp;ldquo;&amp;lt;2&amp;gt;&amp;rdquo;, etc. The end result would generally be a smaller file, yet by replacing &amp;ldquo;&amp;lt;x&amp;gt;&amp;rdquo; with the original words you could recover the original file in its entirety. &lt;/p&gt;
&lt;p&gt;I used to wonder what possible use &lt;a href="http://en.wikipedia.org/wiki/Lossy_compression"&gt;lossy compression&lt;/a&gt; could ever be. Why in the world would I ever want to save off a compressed version of my files if I couldn&amp;rsquo;t get them back to their original state ever again?&lt;/p&gt;
&lt;p&gt;&lt;!--more--&gt;&lt;/p&gt;
&lt;p&gt;Of course for files, &lt;a href="http://en.wikipedia.org/wiki/Lossy_compression"&gt;lossy compression&lt;/a&gt; is useless but for computer graphics it&amp;rsquo;s quite useful. Because the human eye is not capable of picking up all the details in an image it&amp;rsquo;s possible to reduce the details in the image without the human eye being able to tell the difference. &lt;/p&gt;
&lt;p&gt;What&amp;rsquo;s even more interesting is that you can continue to increase that lossy compression on an image until the human eye &lt;span style="text-decoration: underline;"&gt;can&lt;/span&gt; tell the difference, yet &lt;span style="text-decoration: underline;"&gt;the brain will still be able to tell what the image is.&lt;/span&gt; It just looks a bit more blurry. &lt;/p&gt;
&lt;p&gt;In fact, you can continue to compress and compress using lossy compression to any size. At some point you end up with a single solid color, of course, which isn&amp;rsquo;t useful, but even if you take a very large image &amp;ndash; let&amp;rsquo;s say 1024 x 1024 pixels &amp;ndash; and shrink it via lossy compression down to the equivalent of a 16 x 16 image, the human brain fills in the details and still makes sense of the image.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requirements Are Lossy Compression&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2010/01/02/code-is-design-by-bruce-nielson.aspx"&gt;Code is Design&lt;/a&gt;, one of the most under appreciated points of software development is that requirements are equivalent to lossy compression of graphics, only in reverse. (See also &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2009/12/30/tell-me-what-to-do-not-how-to-do-it.aspx"&gt;Tell Me What To Do, Not How to Do It&lt;/a&gt; for an example of this.)&amp;nbsp; &lt;/p&gt;
&lt;p&gt;What we call &amp;ldquo;requirements documents&amp;rdquo; (or even &amp;ldquo;design documents&amp;rdquo;) are really a blurry picture of what is to be built. In other words, requirements and design documents &lt;strong&gt;by definition do not contain all the details&lt;/strong&gt;. &lt;/p&gt;
&lt;p&gt;Why do we do this? There are actually many reasons, but here are two key reasons:&lt;/p&gt;
&lt;p&gt;1. Until the software is actually built, it doesn&amp;rsquo;t exist. So there isn&amp;rsquo;t really a choice but to imagine it with broad brush strokes and then refine it into reality.&lt;/p&gt;
&lt;p&gt;2. &lt;a href="http://interactiveasp.net/blogs/softwarepsychology/archive/2010/01/14/comprehensibility-vs-precision.aspx" class="null"&gt;As was discussed in a previous post&lt;/a&gt;, human beings more easily understand abstractions rather than precision. If we didn&amp;rsquo;t have abstract and blurry views of the design, no one but the programmer would ever understand what is to be done. Actually, even the programmer would only understand it in chunks and not holistically. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Law of Lossy Requirements&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If you followed my argument so far, then &lt;strong&gt;&lt;span style="text-decoration: underline;"&gt;The Law of Lossy Requirements&lt;/span&gt;&lt;/strong&gt; will now make sense to you. This law states:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;All requirements documents are a lossy compression of the business rules. If you made it non-lossy, the cheapest way to document it would be in code. &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Therefore there are two corollaries to this law:&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Corollary 1:&lt;/span&gt; There will never be a point where you know all details of what software is to be created until the software is completed. &lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration: underline;"&gt;Corollary 2:&lt;/span&gt; There is no such thing as documenting everything in the software because to do so would require synchronizing essentially a second copy of the code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://interactiveasp.net/aggbug.aspx?PostID=6479" width="1" height="1"&gt;</description><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Human+Factors/default.aspx">Human Factors</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Software+Develoment+Psychology/default.aspx">Software Develoment Psychology</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Estimation/default.aspx">Estimation</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Requirements/default.aspx">Requirements</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Project+Management/default.aspx">Project Management</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Coding+As+Design/default.aspx">Coding As Design</category><category domain="http://interactiveasp.net/blogs/softwarepsychology/archive/tags/Design/default.aspx">Design</category></item></channel></rss>