<?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>skrud.net &#187; linguistics</title>
	<atom:link href="http://skrud.com/articles/tag/linguistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://skrud.com</link>
	<description>Trust Your Geekflex</description>
	<lastBuildDate>Mon, 24 Nov 2008 20:13:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Software Design is a Social Activity</title>
		<link>http://skrud.com/articles/2007/10/23/software-design-is-a-social-activity/</link>
		<comments>http://skrud.com/articles/2007/10/23/software-design-is-a-social-activity/#comments</comments>
		<pubDate>Tue, 23 Oct 2007 05:26:14 +0000</pubDate>
		<dc:creator>Skrud</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[2007]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[linguistics]]></category>
		<category><![CDATA[oopsla]]></category>
		<category><![CDATA[soen]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://www.skrud.net/articles/2007/10/23/software-design-is-a-social-activity/</guid>
		<description><![CDATA[Early Sunday morning at ooPSLA I had the pleasure of participating in DesignFest &#8216;07. The concept is simple: Get people to try attacking the same problem but in different ways, and have them compare notes at the end. We were a pretty small collection of people, ranging from programmers working in various industries (military, medicine, [...]]]></description>
			<content:encoded><![CDATA[<p>Early Sunday morning at <a href="http://www.oopsla.org">ooPSLA</a> I had the pleasure of participating in <a href="http://www.oopsla.org/oopsla2007/index.php?page=program/designfest/">DesignFest &#8216;07</a>. The concept is simple: Get people to try attacking the same problem but in different ways, and have them compare notes at the end. We were a pretty small collection of people, ranging from programmers working in various industries (military, medicine, academia), to consultants, professors, and students.</p>

<p>The problem we were given came from <a href="http://st-www.cs.uiuc.edu/~droberts/">Don Roberts</a>, whose wife is a veterinarian. We were tasked with coming up with a design that would allow a veterinary hospital to keep track of its patients and their owners and bill them appropriately. Sounds simple, until you realize that you can have race horses owned by multiple people, each with a different percentage stake&#8230; and, of course, many more complications. The group quickly divided into two. One group wanted to try a pure <a href="en.wikipedia.org/wiki/Test-driven_development">Test-Driven Development</a> (TDD) approach, while others wanted to go for a <a href="http://en.wikipedia.org/wiki/Software_prototyping">Prototype</a>. I was in the prototype camp.</p>

<p>The interesting thing about a prototype, is that while the actual <em>development</em> is quick (in theory), there&#8217;s still a good deal of work that needs to go into the design <em>before</em> you can start programming. A prototype is usually a set of minimal functional requirements that sort of work. In that sense, it&#8217;s not too different from &#8220;hacking&#8221;. (Yes, we got into a discussion about &#8220;prototyping vs. hacking&#8221; that derailed us for a few minutes). What happened was we ended up focusing all of our energy (and time) on coming up with a solid, complete Object-Oriented design for our solution.  The result of our design was little more than a class diagram on paper, but we were able to work through every use case thrown at us.</p>

<p>The TDD team found that they, too, needed some initial design work to be done before they could start writing the test cases that would yield code. I have trouble wrapping my head around a pure TDD approach. I understand how TDD can work if your requirements are <em>well-defined</em> and you <em>already have a design that you can code tests against</em>. The idea is that you write test cases for the design <em>before</em> you write the actual code. They will fail initially, and your goal as a programmer is to <em>make them pass</em>. In that sense, it is indeed Test-Driven <em>Development</em>. I&#8217;m not sure the concept can be extended to Test-Driven <em>Design</em>.  The TDD team had little more than one test case, but they had actual <em>code</em> for one of the use cases, which is more than what we had.</p>

<p>The ensuing discussion was extremely stimulating. It&#8217;s amazing what happens when you get a bunch of really smart software geeks in a room together.</p>

<p>The key realization that I took away from this experience was that <strong>software design is a <em>social</em> activity</strong>.  Even though we hadn&#8217;t met each other previously, our team had to <em>work together</em>. We had to help each other out and make sure we were <em>all</em> on the same page. We had to <em>communicate</em>. It was amazing that we didn&#8217;t have a lot of trouble doing it, though. We mostly seemed to agree and moved along at very reasonable pace. Maybe it&#8217;s just because we&#8217;ve all trained our brains on OOP for so long.</p>

<p>One question in the discussion stuck in my head the most, and I&#8217;m still thinking about it. Don asked &#8220;What is the <em>language</em> of design?&#8221;. Since software is collaborative and social, it follows that like any human language, we must take some concept from our minds and communicate it to someone else. If any non-programmer happened to be walking by our table, we would have sounded like the <a href="http://en.wikipedia.org/wiki/Darmok">Children of Tamar</a>. Our speech consisted of terms taken from object-oriented programming (&#8221;object&#8221;, &#8220;class&#8221;, &#8220;instance&#8221;), UML (&#8221;association&#8221;, &#8220;composition&#8221;, &#8220;aggregation&#8221;), and Design Patterns (&#8221;state pattern&#8221;, &#8220;template method&#8221;, &#8220;strategy&#8221;). And that was just the spoken part.</p>

<p>Software Design has a <em>grammar</em>. There is a way of communicating design that involves a vocabulary as well as a set of rules describing how to put sentences together. And I don&#8217;t mean <em>English</em>. Design is more like a mash-up that derives itself from UML and Design Patterns and English. Whatever it is, we need to ensure that those designs we have floating around in our heads can remain intact after we&#8217;ve thrown them into the ether. I think this is where a <em>formal</em> design language specification like UML falls short. It&#8217;s so restrictive that most UML tools require you to input far too much information before they&#8217;ll display a simple diagram. Thus defeating the purpose. UML diagrams need to be free-flowing and erasable. The language doesn&#8217;t have to be <em>perfect</em>, it has to be <em>understood</em>. More importantly, it doesn&#8217;t have to be understood by a computer &#8212; that&#8217;s what programmers are for. But programmers are people. So, design has to be understood by people. People are capable of parsing an imperfect sentence that might not be &#8220;grammatical&#8221; according to a formal specification, but can still be understood by those natural language processing mechanisms we call brains. It all comes back to software design being a social activity.</p>
]]></content:encoded>
			<wfw:commentRss>http://skrud.com/articles/2007/10/23/software-design-is-a-social-activity/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
