<?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>f3yourmind &#187; DDD</title>
	<atom:link href="http://aslamkhan.net/tag/ddd/feed/" rel="self" type="application/rss+xml" />
	<link>http://aslamkhan.net</link>
	<description>Ubuntu coding ... for your friends</description>
	<lastBuildDate>Mon, 24 Oct 2011 07:07:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>What&#8217;s the point in Scrum?</title>
		<link>http://aslamkhan.net/software-development/whats-the-point-in-scrum/</link>
		<comments>http://aslamkhan.net/software-development/whats-the-point-in-scrum/#comments</comments>
		<pubDate>Tue, 24 May 2011 23:17:52 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[balance]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[scrum]]></category>
		<category><![CDATA[TDD]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=519</guid>
		<description><![CDATA[Scrum people like to use points for estimating and measuring velocity.  I won&#8217;t go into detail about how points work and how to play those poker estimation games.  Just search around and you will find a ton of stuff.  So, back to this points stuff.  I have a divided relationship with the humble point.  I [...]]]></description>
			<content:encoded><![CDATA[<p>Scrum people like to use points for estimating and measuring velocity.  I won&#8217;t go into detail about how points work and how to play those poker estimation games.  Just search around and you will find a ton of stuff.  So, back to this points stuff.  I have a divided relationship with the humble point.  I like it when a team switches to using points for the first time, because it gives them a chance to think a little bit deeper about what they want to do.  I don&#8217;t like it when we start inventing rules around points (and you can lump guidelines and best practices into the rules pot too).  When the rules appear, the thinking disappears.</p>
<p>In every team trying Scrum, there is bound to be a rule about points.  I dare you to put up a hand and say you have none.  These rules are things like &#8220;We can&#8217;t take anything over 13 points into a sprint&#8221;, &#8220;Our epics are 100 points&#8221;, &#8220;The login screen is our baseline of 3 points&#8221;, &#8220;Anything over 40 points must be broken down&#8221;.  So, I double dare you <img src='http://aslamkhan.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div id="attachment_522" class="wp-caption alignright" style="width: 243px"><a href="http://aslamkhan.net/wp-content/uploads/2011/05/less_ignorance.png"><img class="size-medium wp-image-522 " title="Less ignorance" src="http://aslamkhan.net/wp-content/uploads/2011/05/less_ignorance-300x164.png" alt="" width="233" height="127" /></a></dt>
</dl>
</div>
<p><strong>I have different view of the humble point.</strong> A point may seem like a one dimensional thing, but it has a some facets built into it.  One facet is the &#8220;amount of effort to build something&#8221;.  Another facet is &#8220;amount of ignorance&#8221; and this has an inverse &#8211; &#8220;amount of <em>shared</em> knowledge&#8221;.  Sometimes I find it useful to make a judgement based on what I don&#8217;t know as opposed to what I do know.  Regardless of whether I choose to view the cup as half full or half empty, I cannot estimate effort to build something based upon what I don&#8217;t know.  So, effort tends to track the amount of knowledge, not ignorance.  As knowledge increases, my ignorance decreases and each point starts representing more and more of pure effort.</p>
<p><a href="http://aslamkhan.net/wp-content/uploads/2011/05/more_ignorance.png"><img class="alignleft size-medium wp-image-523" title="more_ignorance" src="http://aslamkhan.net/wp-content/uploads/2011/05/more_ignorance-300x164.png" alt="" width="233" height="127" /></a>However, if I am in a state of complete ignorance, then it is completely impossible for me to make any judgement on effort to build.  I&#8217;d be simply speculating.  What I can do, though, is create a time box to explore the unknown so that I can start moving out of my state of ignorance.  This is also an estimate and I am not making an excuse for non-delivery either.  I need to understand some things and also show my understanding in some code.  Yes, the code that I produce may not have a visible user interface or some other convenient demo-friendly stuff, but I need to carefully plan my sprint review to express my understanding.</p>
<p><strong>It&#8217;s all about gaining a SHARED understanding.</strong> This understanding is body of knowledge that I have learned which I need to confirm with others.  This act of confirmation can happen in several ways.  I can have a conversation and explain what I understand, I can draw a blocks and lines picture, or show a spreadsheet, and so on.  Regardless of the method of communication, I still use the opportunity of discovery to express my understanding in code as tests.  Another powerful way of expressing my understanding is to write out a story and a few scenarios.  Using BDD style grammar can be a great way of concisely expressing some things, that can be easily shared.  Yes, you heard me correctly &#8211; as a developer, I write the stories and scenarios.  When I am given a story and scenario by someone and asked to estimate, then I am attempting to estimate based on  another person&#8217;s expression of <em>their</em> <em>understanding</em> and my <em>assumed understanding</em>.</p>
<p>In a recent discussion with Jimmy Nilsson, he said that he prefered to call scenarios &#8220;examples&#8221;.  That really resonated with me.  I also do a lot of discovery by example, and then gradually introduce more a more into the examples, as I get more and more confident of my knowledge.</p>
<p><strong>How do I know how much I don&#8217;t know? </strong> That&#8217;s a tough question.  What I do comes straight out of my TDD habits.  I create a list of questions &#8211; my test list.  For some questions, I will know the answer easily, some not all, and some are debatable.  The more that I can answer, the better I can estimate effort.  I can then turn the questions that I can answer into statements of fact.  The more facts I have, the less ignorant I am.</p>
<p>Recently, I worked with a team that wanted to get TDD going, and the most significant change that I introduced was in backlog grooming and sprint planning.  During these two ceremonies, we (as a team) threw questions madly at a requirement, regardless of whether we knew the answer or not.  We then worked through the questions (as a team) to establish how much we could answer.  The trend that emerged was that the original estimates where either half of the new estimate or double of the new estimate.  When they where halved, it was generally because we were able to negotiate some of the unknowns (the ignorant areas) to a future sprint with the product owner.  In some cases, the product owner was equally ignorant, and was reacting to the &#8220;business wants the feature&#8221; pressure.  When they were doubled, it was so much more was discovered than originally assumed.  At the end of the session, we always asked the meta-question &#8220;If we answer all these questions sufficiently, will we be done?&#8221;.  I call this style of working &#8220;test first backlog grooming&#8221; or &#8220;test first sprint planning&#8221;.</p>
<p><strong>Often I discover more things I don&#8217;t know. </strong> Annoyingly, this happens in the middle of a sprint, but if it did not happen in that phase of work, then perhaps I was not digging deep enough.  When this happens, I just keep on adding them to my list of questions.  These new questions are raised at any time with others on the team, the customer or with whoever can help me understand a bit more.  Sometimes, it&#8217;s put on the table for negotiation to be dealt with at another time.  Nevertheless, standups still seem to be a good time to put new questions on the table, for discussion later.</p>
<p>There are several ripple effects of thinking about points in this manner &#8211; this notion of ignorance and shared knowledge gauges.</p>
<p><strong>The first is about the possible shape of your sprint backlog.</strong> If you have deep understanding, then it is likely that you will be able to decompose complex problems into simple solutions, that take less effort.  The effect is that low point stories are in greater number in a sprint.</p>
<div class="mceTemp mceIEcenter">
<dl id="attachment_526" class="wp-caption aligncenter" style="width: 310px;">
<dt class="wp-caption-dt"><a href="http://aslamkhan.net/wp-content/uploads/2011/05/sprint-shape-better.png"><img class="size-medium wp-image-526" title="sprint-shape-better" src="http://aslamkhan.net/wp-content/uploads/2011/05/sprint-shape-better-300x159.png" alt="" width="300" height="159" /></a><p class="wp-caption-text">Sprint backlog shape with high shared understanding</p></div>
<p>If you are highly ignorant, then the estimation points reflect that and  there are more medium to high point stories in the sprint.</p>
<div id="attachment_525" class="wp-caption aligncenter" style="width: 310px"><a href="http://aslamkhan.net/wp-content/uploads/2011/05/sprint-shape-bad.png"><img class="size-medium wp-image-525" title="sprint-shape-bad" src="http://aslamkhan.net/wp-content/uploads/2011/05/sprint-shape-bad-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">Sprint backlog shape with high ignorance</p></div>
<p><strong>The second is about what you value in a story.</strong> You will find less value in the ontology of epics, themes and stories.  It is no longer about size of effort but degree of understanding or ignorance.  Instead, the shape of the product backlog is something that is constantly shifting from high uncertainty (big point numbers) to high certainty (low point numbers).  That&#8217;s what test first backlog grooming gives you.</p>
<div id="attachment_524" class="wp-caption aligncenter" style="width: 310px"><a href="http://aslamkhan.net/wp-content/uploads/2011/05/backlog-shape.png"><img class="size-medium wp-image-524" title="backlog-shape" src="http://aslamkhan.net/wp-content/uploads/2011/05/backlog-shape-300x172.png" alt="" width="300" height="172" /></a><p class="wp-caption-text">Shape of product backlog - higher knowledge items have smaller points.</p></div>
<p style="text-align: left;"><strong>The third is about continuous flow that is the nature of discovery</strong>.  When you work steadily at reducing your degree of ignorance, then you are steadily answering questions through answers expressed in code, and steadily discovering new questions that need answering.  This process of discovery is one of taking an example based on what you know in this moment and modeling it.  Then expanding that example with one or two more additional twists, and modeling that, and so it goes.</p>
<p style="text-align: left;"><strong>It also touches product ownership and software development.</strong> When you work in this way, then explicit estimation of effort becomes  less significant.  Moments that have been earmarked as important  points in the life of the product become more significant.  Call them milestones.   These milestones are strategically and tactically defined, and become a dominant part of product ownership.  Software development becomes the act of having long running conversations with the customer.  Those milestones give context for the content of those conversations.  Ultimately, those conversations are then expressed as a set of organised thoughts in code.  If your code is not organised well, then perhaps you also don&#8217;t understand the problem or solution or both.</p>
<p style="text-align: left;"><strong>This is a long story for a short message. </strong> A high priority is to resolve the tension that exists in an estimation in the form of knowlege/ignorance fighting against effort.  When you release that tension through shared understanding, then you can deal with the tension that exists in the act of creating those significant milestones.  In my opinion, that&#8217;s the real wicked problem.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Fwhats-the-point-in-scrum%2F&amp;title=What%26%238217%3Bs%20the%20point%20in%20Scrum%3F" id="wpa2a_2"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/whats-the-point-in-scrum/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reflections on the JCSE Agile and Architecture Talk</title>
		<link>http://aslamkhan.net/events/reflections-on-the-jcse-agile-and-architecture-talk/</link>
		<comments>http://aslamkhan.net/events/reflections-on-the-jcse-agile-and-architecture-talk/#comments</comments>
		<pubDate>Fri, 23 Jul 2010 10:25:31 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[intentions]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=362</guid>
		<description><![CDATA[It was really good to be part of a very topical subject at the JCSE Architecture Forum last night.  While these discussion are so valuable, the things that surface can only be glossed over, largely because of time constraints.  I end up feeling a very satisfied and energised but a part of me feels a [...]]]></description>
			<content:encoded><![CDATA[<p>It was really good to be part of a very topical subject at the <a href="http://jcse.org.za/events/2010-07-22-architecture-forum">JCSE Architecture Forum</a> last night.  While these discussion are so valuable, the things that surface can only be glossed over, largely because of time constraints.  I end up feeling a very satisfied and energised but a part of me feels a bit hollow.</p>
<p>So here are some of the things that surfaced at the Forum, and my narrow, unworldly opinion on each (i.e. I&#8217;m just trying to fill that hollow feeling).</p>
<p><strong>When we talk about architecture, we need to define what we mean by architecture?</strong></p>
<p>In my talk it was a very simple view of architecture which, thinking back, I should have disclosed very early.  I am now applying from <a href="http://www.threeriversinstitute.org/blog/?page_id=379">Kent Beck</a> who talks about mutually beneficial relationships.   So I think of architecture as the mutually beneficial relationship between two or more things.  So what is a thing?  It could be  lines code in a method, methods in a class, classes in namespace, namespaces in code base, binaries in an application server, application servers in a cluster, &#8230; see where I am going?  Architecture is about creating beneficial relationships, and the 5 things I discussed are based on this view.  If you don&#8217;t know anything about the things, then you cannot create beneficial relationships.  From an agile perspective, the beneficial relationship that you create should only be beneficial based on your knowledge right now.  Tomorrow your knowledge changes, so the relationship may not be as beneficial as yesterday.  Time to change.</p>
<p><strong>Building infrastructural architecture independently of functional requirements&#8230;</strong></p>
<p>I am not convinced of the benefit of this approach.  In my limited experience, every business need defines the constraints or needs of the infrastructural architecture.  I find it hard to find the point of departure, yet there is a school of thought that suggests that function is orthogonal to the architecture.  Perhaps I just don&#8217;t understand this.  However from an agile perspective, I want to release early and there are many constraints on infrastructure from the business (for example, administrative processes like procurement of hardware).  I like to understand what these are early on, reach agreement on what we can release at the earliest and design accordingly.  Perhaps the first release is on lightweight infrastructure and that means we &#8220;limit&#8221; scalability.  So, I don&#8217;t design for beyond what I know is real.</p>
<p><strong>Model Driven Architecture &#8230;</strong></p>
<p>My view is more philosophical and abstract.  What is a <em>model</em>?  For me, a model is something intangible.  It is a way we understand something.  But we represent our models in many ways.  Through words in written or spoken conversation, in unstructured pictures, in structured notation like UML, even code is a representation of a model.</p>
<p>What do we mean by <em>driven</em>? I view it as a something that takes an input that produces an output.  In this case, we take an input, the model, and produce an output, an architecture.  So, I take an understanding of problem and use that to derive an architecture.  So, that&#8217;s nothing new here.  However, I don&#8217;t like to confuse driving out an architecture from a representation of the model.  That&#8217;s different.  Now we are going beyond thought processes  into mechanical processes.  Then the challenge is about how to apply the feedback to the representation of the model &#8211; and that is what will make you agile.  Too much for my small brain.</p>
<p><strong>Plumbing &#8230;</strong></p>
<p>Yup, we do too much hand crafted plumbing!  It&#8217;s something that we have been working on for a long, long time.  I think convention over configuration, dependency inversion, meta-programming are all attempts at addressing this problem.  Some early success that I have experienced is on taking a polyglot approach. I am not talking about mixing general purpose languages on one runtime only.  I am also including domain specific languages. I&#8217;ve had some early success where using DSL to describe functional intentions and then generating a large portion of the plumbing.  Where I&#8217;ve suffered is when I mix concepts from different domains.  There is the domain of plumbing and the domain of the business.  Whenever I&#8217;ve mixed the two, it pains later rather than sooner.  Right now, the only way I&#8217;ve had some success is with aspect orientation and meta-programming.</p>
<p><strong>@StatelessSessionBean &#8230;</strong></p>
<p><a href="http://www.psybergate.co.za/opencms/opencms/psybergate-pages/home1.html">Chris Naidoo</a> is right.  That thing called J2EE and subsequent versions is just horribly broken.  It&#8217;s broken encapsulation and a whole lot more.  The fact that we now must use an annotation and not implement an interface is immaterial.  Both result in the same pain &#8211; mixed concepts (see plumbing above).  Annotations should be specific to the business such as <em>@RecalculateCostsOnRerouteOfCargo</em> can be used as an interception point for injecting a rule on a class or method.</p>
<p>I would go even further and say that the POJO JavaBean specification is also broken.  Why on earth <em>must</em> I have a no-argument constructor and accessors and mutators.</p>
<p><strong>Last thoughts &#8230;</strong></p>
<p>I may have missed some of the other discussions but these are the ones that I woke up with this morning. In general, my observation is that we need to be very concrete very early if we want to be agile, even in architecture.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fevents%2Freflections-on-the-jcse-agile-and-architecture-talk%2F&amp;title=Reflections%20on%20the%20JCSE%20Agile%20and%20Architecture%20Talk" id="wpa2a_4"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/reflections-on-the-jcse-agile-and-architecture-talk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Modeling out Loud</title>
		<link>http://aslamkhan.net/events/modeling-out-loud/</link>
		<comments>http://aslamkhan.net/events/modeling-out-loud/#comments</comments>
		<pubDate>Tue, 13 Jul 2010 20:45:51 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[BDD]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[scrum]]></category>
		<category><![CDATA[Ubiquitous Language]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=354</guid>
		<description><![CDATA[I will be running a 6 hour long session at the Scrum Gathering in Cape Town in September titled Modeling Out Loud.  I&#8217;m now convinced that the Scrum tribe are weird.  They call these sessions Deep Dives.  Presumably, you need to carry enough oxygen to survive the session. I think I&#8217;m going out on limb [...]]]></description>
			<content:encoded><![CDATA[<p>I will be running a 6 hour long session at the <a href="http://www.scrum.org.za/gathering/deep-dives">Scrum Gathering</a> in Cape Town in September titled <em>Modeling Out Loud</em>.  I&#8217;m now convinced that the Scrum tribe are weird.  They call these sessions Deep Dives.  Presumably, you need to carry enough oxygen to survive the session.</p>
<p>I think I&#8217;m going out on limb here because I will be challenging the value of Product Owners writing stories.  I&#8217;m also suggesting that when Product Owners write stories riddled with behavior then developers are disconnected from domain experts and you regress into a waterfall mode of execution fronted by a Scrum Board.  So be prepared to experiment with me and turn up your self-reflection to maximum level because we will challenge many assumptions.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fevents%2Fmodeling-out-loud%2F&amp;title=Modeling%20out%20Loud" id="wpa2a_6"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/modeling-out-loud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDD Reference Card</title>
		<link>http://aslamkhan.net/software-development/ddd-reference-card/</link>
		<comments>http://aslamkhan.net/software-development/ddd-reference-card/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:45:27 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[DDD]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=292</guid>
		<description><![CDATA[I know it&#8217;s absolutely insane to try to reduce Eric Evans&#8217; amazing book into just a few pages, but stupidity won.  I think it&#8217;s still useful as a &#8220;next to the coffee mug on your desk thing&#8221; if you&#8217;re just starting off with DDD.  So download the free Domain Driven Design Reference Card at http://refcardz.dzone.com. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://refcardz.dzone.com"><img class="alignleft" title="Domain Driven Design Reference Card" src="http://refcardz.dzone.com/sites/all/files/refcardz/thumbs/13745.png" alt="" width="103" height="133" /></a>I know it&#8217;s absolutely insane to try to reduce <a href="http://www.amazon.com/Domain-Driven-Design-Tackling-Complexity-Software/dp/0321125215/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1238687848&amp;sr=8-1">Eric Evans&#8217; amazing book</a> into just a few pages, but stupidity won.  I think it&#8217;s still useful as a &#8220;next to the coffee mug on your desk thing&#8221; if you&#8217;re just starting off with DDD.  So download the free Domain Driven Design Reference Card at <a href="http://refcardz.dzone.com">http://refcardz.dzone.com</a>. Small warning: it&#8217;s not useful unless you&#8217;ve read <a href="http://domaindrivendesign.org/books">Eric&#8217;s and/or Jimmy&#8217;s book</a> or have attended a <a href="http://opencourses.factor10.com">DDD course</a>.</p>
<p>I&#8217;ve tried to keep it true to the book.  I&#8217;ve aslo added a reference to a couple of additional patterns right at the end, after some quick chats with Eric and Jimmy.  Given the space constraints, I decided to leave out the CQRS work.  It feels better anyway, since this meant as a cheat sheet for people starting out.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Fddd-reference-card%2F&amp;title=DDD%20Reference%20Card" id="wpa2a_8"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/ddd-reference-card/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Readability is the real (re)usability</title>
		<link>http://aslamkhan.net/software-development/readability-is-the-real-reusability/</link>
		<comments>http://aslamkhan.net/software-development/readability-is-the-real-reusability/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:23:02 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[intentions]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=280</guid>
		<description><![CDATA[Last week on the factor10 DDD course in Cape Town, the question of reusability came up again.  It&#8217;s the same old object orientation promise of &#8220;Just do OO and you get phenomenal reuse for free&#8221;.  Today, I was refactoring some code with another developer at a client and I extracted some lines into a few [...]]]></description>
			<content:encoded><![CDATA[<p>Last week on the factor10 DDD course in Cape Town, the question of reusability came up again.  It&#8217;s the same old object orientation promise of <em>&#8220;Just do OO and you get phenomenal reuse for free&#8221;</em>.  Today, I was refactoring some code with another developer at a client and I extracted some lines into a few private methods just to clean up a really fat loop.  The initial reaction from the other developer was <em>&#8220;That&#8217;s an overkill because you won&#8217;t reuse that method&#8221;</em>.  My spontaneous reaction was <em>&#8220;Readability is the real reusability&#8221;</em>.</p>
<p>It&#8217;s true, the method won&#8217;t be reused.  It&#8217;s also true that most us were taught in some Programming 101 course that you should create a method, function, procedure only if you are going to call it more than once, otherwise just leave it all inline.  I value ubuntu coding, and so I have learned to unlearn that naive rule.  When I make my code more readable, I get more reuse out of it.  The reuse I value is not really about the number of repeated method calls or number of inherited classes.  I value the increased reusability that is achieved when more developers are able to read my code and walk away understanding my intention, clearly and unambiguously.</p>
<p>Let me put it another way.  Your code is a representation of your model.  Your model should be used to drive all collaborative discussions about the solution.  That&#8217;s where you get the real reuse in your model.  If people can&#8217;t understand your model, then your model can&#8217;t be re-used for further discussions.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Freadability-is-the-real-reusability%2F&amp;title=Readability%20is%20the%20real%20%28re%29usability" id="wpa2a_10"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/readability-is-the-real-reusability/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Are you coming to OOPSLA?</title>
		<link>http://aslamkhan.net/events/are-you-coming-to-oopsla/</link>
		<comments>http://aslamkhan.net/events/are-you-coming-to-oopsla/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 21:28:56 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[modularity]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=271</guid>
		<description><![CDATA[In a couple of weeks I will be at the OOPSLA conference in Orlando, USA.  I am absolute OOPSLA nOOb but am already excited about it.  I&#8217;ve heard lots of nice things from the OOPSLA &#8220;veterans&#8221; at factor10 and now I can&#8217;t really wait to get there. I will be giving a tutorial on using [...]]]></description>
			<content:encoded><![CDATA[<p>In a couple of weeks I will be at the <a href="http://www.oopsla.org">OOPSLA</a> conference in Orlando, USA.  I am absolute OOPSLA nOOb but am already excited about it.  I&#8217;ve heard lots of nice things from the OOPSLA &#8220;veterans&#8221; at factor10 and now I can&#8217;t really wait to get there.</p>
<p>I will be giving a <a href="http://www.oopsla.org/oopsla2009/program/tutorials/149-using-aop-with-ddd-to-create-rich-clean-domain-models">tutorial</a> on using AOP to solve some domain problems, not just removing the infrastructural noise from your domain models.  Also, I&#8217;ve been invited to be part of a <a href="http://www.comp.lancs.ac.uk/~greenwop/ACoM.09/panel.htm">panel</a> on my best-loved-hated subject &#8230; modularity.  I will also take part in the Cloud Computing Design <a href="http://www.oopsla.org/oopsla2009/program/workshops/134-best-practices-in-cloud-computing-designing-for-the-cloud">workshop</a>.</p>
<p>There&#8217;s also an amazing line up for the other tutorials and OOPSLA still has a &#8220;Pay for 3 and attend 4&#8243; promotion going on.  Take advantage of it.  If you already signed up for 3, then just sign up for the 4th.  If you&#8217;ve signed up for 2, then pay for the third and register for the 4th too.</p>
<p>So much happening in just a short week.  But, it will be lot&#8217;s of fun and worth the 24 hour travel time from Cape Town.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fevents%2Fare-you-coming-to-oopsla%2F&amp;title=Are%20you%20coming%20to%20OOPSLA%3F" id="wpa2a_12"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/are-you-coming-to-oopsla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trust Everything</title>
		<link>http://aslamkhan.net/general/trust-everything/</link>
		<comments>http://aslamkhan.net/general/trust-everything/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 22:39:42 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[AOP]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[aspects]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[trust]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=263</guid>
		<description><![CDATA[Trust has popped up in so many of my conversations recently.  It came up at home, at a new school that Lia will be starting next term, in the DDD course that I gave earlier in the month, in Peter Hundermark&#8217;s scrum master certification course.  And I got a one line email that said this. [...]]]></description>
			<content:encoded><![CDATA[<p>Trust has popped up in so many of my conversations recently.  It came up at home, at a new school that Lia will be starting next term, in the <a href="http://www.factor10.com/courses/DDDfasttrack/about_this_course.html">DDD course</a> that I gave earlier in the month, in <a href="http://www.scrumsense.com">Peter Hundermark&#8217;s</a> scrum master certification course.  And I got a one line email that said this.</p>
<blockquote><p>The entire world lives on trust. Every aspect in life moves with trust.</p></blockquote>
<p>The more I think about situations in life that will prove this statement false, the more it seems to hold true.  Even in design it holds true.  Your most fundamental architectural decisions are based on trust and the implementations of that architecture work because of trust.</p>
<p>It&#8217;s true for code too.  If you don&#8217;t trust the code on which you build or depend, then you might as well write everything yourself, and give up your place on your team.</p>
<p>I was thinking about the AOP with DDD tutorial that I will be giving at <a href="http://www.oopsla.org/oopsla2009/program/tutorials/149-using-aop-with-ddd-to-create-rich-clean-domain-models">OOPSLA</a> this year, and this trust thing came up.  Here again, aspects and the classes into which they get woven, need a trust relationship.  It may seem like a stretch to make that statement, but I think it holds true again.</p>
<p>So, how do you gain trust?  I am not sure, but I think you have give up something first.  Maybe you need to show your vulnerability first, then it becomes easier to let someone into your space.  Then, perhaps, they will let you in to their space too.  When ego walls are erected, then trust finds it hard to grow.  By ego, I don&#8217;t mean arrogance, I mean awareness of your self that you hide from others for fear.  Perhaps, it is only when you show your true interface, that the other will worry less about hidden agendas.</p>
<p>In code, trust lies in interfaces and types, not in implementations.  It&#8217;s really about trusting the implementation that makes types worthy.  When you trust the type and send it a message and it behaves as expected, then you trust it.  If you request something of an abstract type and the message was received by an instance of a subclass, then you expect the subclass to behave like the abstract type.  You don&#8217;t hope that it does behave consistently, you trust that it does!</p>
<p>Trust is tied in with ubuntu too.  You can&#8217;t be part of a community nor allow yourself to be defined and shaped by the people around you, if you can&#8217;t trust them.  I think ubuntu coding needs trust as one of it&#8217;s values.  It&#8217;s already a value in XP, and Scrum, and families.  It needs to be in teams, and organisations, and communities and nations too.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fgeneral%2Ftrust-everything%2F&amp;title=Trust%20Everything" id="wpa2a_14"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/general/trust-everything/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fast Track to Domain Driven Design</title>
		<link>http://aslamkhan.net/events/fast-track-to-domain-driven-design/</link>
		<comments>http://aslamkhan.net/events/fast-track-to-domain-driven-design/#comments</comments>
		<pubDate>Wed, 12 Aug 2009 18:56:40 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Conferences]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[architecture]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Patterns]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Ubiquitous Language]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=217</guid>
		<description><![CDATA[I finally got out of neutral and pulled together the first public offering our Domain Driven Design courses in Cape Town, South Africa.  Normally we give these courses on-site with people on the same development team but I thought it may be fun and inspiring to open it up to everyone for a change.  Now I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>I finally got out of neutral and pulled together the first public offering our <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/about_this_course.html">Domain Driven Design courses</a> in Cape Town, South Africa.  Normally we give these courses on-site with people on the same development team but I thought it may be fun and inspiring to open it up to everyone for a change.  Now I&#8217;m all excited again and really looking forward to a diverse mixture of people. Hopefully, I will see some old faces and lots of new people.</p>
<p>The one thing I can tell you is that the course is a very immersive experience.  I really hate lecturing but I enjoy probing conversations and that&#8217;s how I give the course. I don&#8217;t have answers to the practical work and concerns are addressed as we go along.  As a result, the day takes unexpected turns and routes.  But in the end I get you to the right destination.  Come along; you will leave exhausted, but inspired!</p>
<h2><strong>Take the Fast Track to Domain Driven Design</strong></h2>
<p><a href="http://www.factor10.com/courses/DDDfasttrack/capetown/about_this_course.html">about the course</a> /  <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/course_contents.html">course contents</a> / <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/should_you_attend.html">should you attend?</a> / <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/register.html">register for the course</a></p>
<p><a href="http://www.factor10.com">factor10</a> has expanded its services in South Africa to include our advanced and<br />
expert level courses aimed for the software professional.  On September 8-9, 2009,<br />
we will be offering a fast track to DDD for Architects at the BMW Pavilion in<br />
Cape Town.</p>
<p><img class="alignleft size-full wp-image-218" title="zz485d34cf" src="http://aslamkhan.net/wp-content/uploads/2009/08/zz485d34cf.jpg" alt="zz485d34cf" width="450" height="96" /></p>
<h2></h2>
<h2></h2>
<h2>Who should attend?</h2>
<p>This course is for software professionals that want to take the right steps towards<br />
advanced and expert levels in their careers.  <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/register.html">Register</a> for this course if you want to &#8230;</p>
<ul>
<li>learn more than just another syntax and set of tools</li>
<li>write software for large, long living systems</li>
<li>increase the quality and maintainability of your design</li>
<li>design high quality models and use code to represent those models effectively</li>
<li>develop applications with a good APIs</li>
<li>add a design edge to your skill set</li>
</ul>
<p><img class="alignleft size-full wp-image-219" title="zz3caeb696" src="http://aslamkhan.net/wp-content/uploads/2009/08/zz3caeb696.jpg" alt="zz3caeb696" width="455" height="137" /></p>
<h2></h2>
<h2></h2>
<h2></h2>
<h2></h2>
<h2>Why should you learn DDD?</h2>
<p>More and more developers and architects realise that learning every detail of a new<br />
API just isn&#8217;t the way to deliver the best business value. It’s such a tough balancing<br />
act; focus on the solving the business problem and focus on building working software<br />
with your frameworks.</p>
<p>One way of taking a big leap in the right direction is to learn and apply domain driven<br />
design. It is definitely not abstract and fluffy; it deals a lot with the code also. DDD<br />
leads us to focus on understanding and to communicate that understanding very well;<br />
in language, in design and in code. You will shift your focus away from designing for a<br />
technology, and you will learn to design for the business domain; to the core of the<br />
problems and solutions. Those are the most interesting parts and what your users<br />
and customers really care about.</p>
<p><a href="http://www.factor10.com/courses/DDDfasttrack/capetown/about_this_course.html">about the course</a> /  <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/course_contents.html">course contents</a> / <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/should_you_attend.html">should you attend?</a> / <a href="http://www.factor10.com/courses/DDDfasttrack/capetown/register.html">register for the course</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fevents%2Ffast-track-to-domain-driven-design%2F&amp;title=Fast%20Track%20to%20Domain%20Driven%20Design" id="wpa2a_16"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/events/fast-track-to-domain-driven-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Coding for your Friends</title>
		<link>http://aslamkhan.net/software-development/ubuntu-coding-for-your-friends/</link>
		<comments>http://aslamkhan.net/software-development/ubuntu-coding-for-your-friends/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 11:07:30 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[agile]]></category>
		<category><![CDATA[balance]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[intentions]]></category>
		<category><![CDATA[learning]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[zen]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=211</guid>
		<description><![CDATA[Last week I gave a domain driven design course and one slide I put up was titled &#8220;Coding for Friends&#8221; with a single message &#8220;Avoid conceptual corruption&#8221;. In other words &#8220;Code so I can understand you and you don&#8217;t screw up my mind&#8221;.  I did not realise the significance until I started working through the [...]]]></description>
			<content:encoded><![CDATA[<p>Last week I gave a domain driven design course and one slide I put up was titled &#8220;Coding for Friends&#8221; with a single message &#8220;Avoid conceptual corruption&#8221;. In other words &#8220;Code so I can understand you and you don&#8217;t screw up my mind&#8221;.  I did not realise the significance until I started working through the practical exercises with the groups and kept on referring back to this simple idea.</p>
<p>So often we write code in isolation and the code reflects our personal interpretation of the problem and a personalised solution too.  We easily forget that other people will execute this code, modify it, and, at the very least, read it.  Coding is a social exercise first, then a technical exercise.  We have a responsibility towards increasing the probability of success for the next person or team that will work this code.</p>
<p>We can write code in isolation that is of high quality, focusing on self and metaphysics of quality, etc.  That&#8217;s a zen view and it is about you.  I like to think (believe?) that Ubuntu is zen for a group, not for an individual.</p>
<p>In Zulu, the Ubuntu philosophy is summed up as</p>
<blockquote><p>Umuntu ngumuntu ngabantu</p></blockquote>
<p>which roughly translates to</p>
<blockquote><p>A person is a person through (other) persons</p></blockquote>
<p>And in geek-speak it is</p>
<blockquote><p>A developer is a developer through (other) developers</p></blockquote>
<p>I get better because you make me better through your good actions.  And the opposite also holds true: You get worse at what you do when I am bad at what I do.</p>
<p>How do we write ubuntu code?  It&#8217;s not hard.  It&#8217;s based on &#8220;old&#8221; principles and wise words of many people.  It&#8217;s old material but worth revisiting with ubuntu glasses on: when you think about what the effect is on other developers and what the reciprocal effect will be, back onto yourself.</p>
<p><strong>Reveal your intention, not your implementation.</strong> If you have designed a project management app with tasks and decided to implement it as a graph, call the class <em>Task</em> and give it a method called <em>resolveCyclicDependencies()</em>.  Don&#8217;t create a class <em>Node</em> with a method called <em>topologicalSort()</em>.</p>
<p><strong>Avoid side effects.</strong> Let a method do one thing, and one thing only.  It&#8217;s frightening how many developers don&#8217;t do this.  For example, if you add a line item to an invoice, don&#8217;t update the total.  Have something else that calculates the total.  Basically, be boring and predictable.  I long time ago a SQL guru looked at my code and said &#8220;The optimizer does not like fancy code&#8221;.  Same thing.</p>
<p><strong>Broken metaphors.</strong> Metaphors exist for conceptual understanding.  Once you get the conceptual break through, leave it.  It&#8217;s ok! Trying to build an economic model with a metaphoric model of fluid flows (or bears and bulls!) will just create havoc downstream.</p>
<p><strong>Where am I?</strong> Figure out where you are in the bigger picture.  Are you upstream or downstream?  Is someone going call my code to create that <em>Book</em> object? Am I going to call someone else&#8217;s code to get the <em>Customer</em> object?  In other words, know what you supply and what you consume.</p>
<p><strong>Fail fast.</strong> Assert! It&#8217;s allowed in production code too.  I would rather fail quickly and dramatically than delay the effect until it is obscure.  More importantly, when I read an assert then I know that the particular condition is critical.  It is an invariant that must be honored.</p>
<p><strong>Pairing.</strong> Programming in pairs is an active exercise, not a case of a second syntax checker.  I see many teams that pair mechanically and it does nothing for increasing code quality at all.  If you practice active pairing, you are closer to ubuntu coding.</p>
<p>There are other techniques which increase the collective responsibility of your design and code such as context maps in strategic design, values and attitudes such as responsibility and feedback.  I&#8217;ll deal with those on another day.</p>
<p>But for now, I think that</p>
<blockquote><p>Code is code through (other) code!</p></blockquote>
<p>Do you have any other ubuntu coding techniques? Attitudes?</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Fubuntu-coding-for-your-friends%2F&amp;title=Ubuntu%20Coding%20for%20your%20Friends" id="wpa2a_18"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/ubuntu-coding-for-your-friends/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Great Quotes for Domain Driven Design</title>
		<link>http://aslamkhan.net/software-development/great-quotes-for-domain-driven-design/</link>
		<comments>http://aslamkhan.net/software-development/great-quotes-for-domain-driven-design/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 09:39:03 +0000</pubDate>
		<dc:creator>Aslam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[DDD]]></category>
		<category><![CDATA[Simplicity]]></category>
		<category><![CDATA[Ubiquitous Language]]></category>

		<guid isPermaLink="false">http://aslamkhan.net/?p=201</guid>
		<description><![CDATA[I am revisiting the material for the factor10 Domain Driven Design course as part of a &#8220;freshen up&#8221; for the when I give it to a development team on July 1, 2009.  So I started hunting for some quotes to liven it up a bit. Here are some choice bites for ubiquitous language. &#8220;They have [...]]]></description>
			<content:encoded><![CDATA[<p>I am revisiting the material for the <a href="http://www.factor10.com">factor10</a> Domain Driven Design course as part of a &#8220;freshen up&#8221; for the when I give it to a development team on July 1, 2009.  So I started hunting for some quotes to liven it up a bit.</p>
<p>Here are some choice bites for ubiquitous language.</p>
<blockquote><p>&#8220;They have been at a great feast of languages and stolen the scraps&#8221; <em>&#8211; William Shakespear</em></p></blockquote>
<p>and</p>
<blockquote><p>&#8220;Thought is the blossom; language the bud; action the fruit behind it&#8221;<em> &#8212; Ralph Waldo Emerson</em></p></blockquote>
<p>And on the need for simplicity, I really liked this one.</p>
<blockquote><p>&#8220;There is never any justification for things being complex when they could be simple&#8221; <em>&#8211; Edward de Bono</em></p></blockquote>
<p><a href="http://www.integralwebsolutions.co.za/Blog.aspx">Robert Bravery</a> commented on an <a href="http://aslamkhan.net/software-development/kung-fu-coding-bruce-lee-style/">old blog post</a> of mine and I re-discovered this one</p>
<blockquote><p>&#8220;Don&#8217;t indulge in any unnecessary, sophisticated moves.  You&#8217;ll get clobbered if you do&#8221; <em>&#8211; Bruce Lee</em></p></blockquote>
<p>Lastly, and the one I&#8217;m definitely going to use to stress the importance of working directly with the domain expert.</p>
<blockquote><p>&#8220;Never hold discussions with the monkey when the organ grinder is in the room&#8221; <em>&#8211; Winston Churchill</em></p></blockquote>
<p>What a diverse group of people but such collective value.  Do you have any classic quotes?  Obscure quotes?</p>
<p><em></em></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Faslamkhan.net%2Fsoftware-development%2Fgreat-quotes-for-domain-driven-design%2F&amp;title=Great%20Quotes%20for%20Domain%20Driven%20Design" id="wpa2a_20"><img src="http://aslamkhan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://aslamkhan.net/software-development/great-quotes-for-domain-driven-design/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

