<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://adamralph.com/feed.xml" rel="self" type="application/atom+xml" /><link href="https://adamralph.com/" rel="alternate" type="text/html" /><updated>2026-11-13T13:59:15+00:00</updated><id>https://adamralph.com/feed.xml</id><title type="html">Adam Ralph</title><subtitle>Software, tea, and snowboarding</subtitle><author><name>Adam Ralph</name></author><entry><title type="html">Would it help if I spoke to your management?</title><link href="https://adamralph.com/2019/10/22/would-it-help-if-i-spoke-to-your-management/" rel="alternate" type="text/html" title="Would it help if I spoke to your management?" /><published>2019-10-22T00:00:00+00:00</published><updated>2019-10-22T00:00:00+00:00</updated><id>https://adamralph.com/2019/10/22/would-it-help-if-i-spoke-to-your-management</id><content type="html" xml:base="https://adamralph.com/2019/10/22/would-it-help-if-i-spoke-to-your-management/"><![CDATA[<p>An important responsibility we have as software developers is to identify the root problem. We’re often faced with problems which, at first glance, appear technical. When a race condition appears, we start writing code to remove it. When we’re told two business operations must be consistent, we find ingenious new ways of implementing distributed transactions.<!--excerpt--></p>

<p>But when we ask <em>why?</em>, the immediate problem so often disappears.</p>

<p>Recently, I had an interesting conversation during my shift running the “chat with a developer” feature on the <a href="https://particular.net">Particular Software website</a>.</p>

<p><strong>Me:</strong></p>

<blockquote>
  <p>Hello, how may I help?</p>
</blockquote>

<p><strong>Visitor:</strong></p>

<blockquote>
  <p>Hey Adam</p>
  <p>Quick question</p>
  <p>ConfigureHowToFindSaga. Can this method be tested?</p>
  <p>If yes, how?</p>
</blockquote>

<p>An alarm bell started to ring. <code class="language-plaintext highlighter-rouge">ConfigureHowToFindSaga</code> is a <code class="language-plaintext highlighter-rouge">protected abstract</code> method in NServiceBus. I usually wouldn’t aim to test it in isolation. The test would repeat the production code, and wouldn’t prove anything.</p>

<p><strong>Visitor:</strong></p>

<blockquote>
  <p>I know it sounds silly, coz all handlers are tested, but we are looking for 100% test coverage for management. 😀</p>
</blockquote>

<p>The alarm bell was now deafening.</p>

<p><strong>Me:</strong></p>

<blockquote>
  <p>Hi {name omitted}, I guess this is not the answer you want to hear, but the goal of 100% test coverage is the problem here, and that is the problem I would aim to solve.</p>
  <p>Your test would just be a repeat of the production code.</p>
</blockquote>

<p><strong>Visitor:</strong></p>

<blockquote>
  <p>Exactly i understand that as a developer. 🙂</p>
</blockquote>

<p>At this point, I started to feel sorry for this person. They understand why a goal of 100% test coverage is usually a bad idea, but their hands are tied by management. I cut to the chase:</p>

<p><strong>Me:</strong></p>

<blockquote>
  <p>Would it help if I spoke to your management?</p>
</blockquote>

<p>When the chat started, I was in the middle of a pairing session with a colleague over a video call. When I wrote this line, he snorted with laughter. True, the comment was a little tongue-in-cheek, but I felt compelled to write it. My correspondent saw the funny side and declined the offer with a laughing emoji, but he said he would go back to management and challenge the rule.</p>

<p>The following weekend, I was out hiking and thinking about the conversation (yes, I have trouble switching off). It dawned on me that this wasn’t such a silly offer after all. I played out an imaginary conversation with management in my head, and realised how valuable the conversation could have been. After all, if <em>management</em> is causing the problem, why not fix <em>management</em>?</p>

<p>When I’m posed a problem through chat, a support request, or at a conference or user group, I try to emphasise my effort to find the root cause. I often manage to convert a low-level technical problem into a higher-level reconsideration. In turn, a better approach emerges which avoids the technical problem and brings further benefits.</p>

<p>The next time I’m in a similar conversation, I may make the same offer again. Who knows? Maybe someone will take me up on it.</p>]]></content><author><name>Adam Ralph</name></author><category term="teamwork" /><summary type="html"><![CDATA[An important responsibility we have as software developers is to identify the root problem.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://adamralph.com/img/manager.jpg" /><media:content medium="image" url="https://adamralph.com/img/manager.jpg" xmlns:media="http://search.yahoo.com/mrss/" /></entry><entry><title type="html">PowerPoint and Word failing to open</title><link href="https://adamralph.com/2018/05/26/powerpoint-and-word-failing-to-open/" rel="alternate" type="text/html" title="PowerPoint and Word failing to open" /><published>2018-05-26T00:00:00+00:00</published><updated>2018-05-26T00:00:00+00:00</updated><id>https://adamralph.com/2018/05/26/powerpoint-and-word-failing-to-open</id><content type="html" xml:base="https://adamralph.com/2018/05/26/powerpoint-and-word-failing-to-open/"><![CDATA[<p>Yesterday, PowerPoint and Word suddenly started to refuse to open. I’d get the splash screens saying “Starting…” but then they would disappear and… nothing. (I’m using Windows 10 version 1803 and Office Professional Plus 2016.)</p>

<p>First I searched to see if anyone else was suffering a similar problem. The recent <a href="/2018/05/15/windows-10-version-1803-broke-my-git-ssh/">Windows 10 version 1803 update</a> was one of my prime suspects. I couldn’t find anything so I decided to take matters into my own hands.<!--excerpt--></p>

<p>I went to “Settings -&gt; Apps -&gt; Apps &amp; Features -&gt; Microsoft Office Professional Plus 2016 -&gt; Modify”. That gave me two options: “Quick repair” and “Online repair”. I tried both, and they made no difference. I then did a full uninstall and reinstall of Office. Again, no joy. The threat of a full machine rebuild started to loom over me. I went to bed and attempted to get some sleep.</p>

<p>After lying awake for several hours I sneaked into my office at a ridiculous hour. I managed to find <a href="https://support.microsoft.com/en-gb/help/921541/how-to-troubleshoot-problems-that-occur-when-you-start-or-use-word">an interesting Microsoft support article</a>. It describes the removal of some registry keys as a possible solution for startup problems with Word. I guess my search-fu is better at five in the morning.</p>

<p>Sure enough, when I removed the <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word</code> and <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\PowerPoint</code> keys, both the apps opened without problem!</p>

<p>Of course, I couldn’t stop there. Those registry keys have a lot of nested content, and I wanted to find out exactly what was causing the problem.</p>

<p>Before deleting the keys, I exported them to disk. To narrow down the problem, I re-imported them, deleted half the sub-keys, and tried to open the apps again. A typical “bisect”-style problem investigation. Many tedious rounds of this commenced. I identified problematic sub-keys, repeated the bisection inside them, and so forth. Eventually, I managed to identify exactly which values were problematic:</p>

<ul>
  <li>Word
    <ul>
      <li>Key: <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Word\Options</code>
        <ul>
          <li>Value: <code class="language-plaintext highlighter-rouge">AppWindowPos</code></li>
        </ul>
      </li>
    </ul>
  </li>
  <li>PowerPoint
    <ul>
      <li>Key: <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\PowerPoint\Options</code>
        <ul>
          <li>Value: <code class="language-plaintext highlighter-rouge">Left</code></li>
        </ul>
      </li>
      <li>Key: <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\PowerPoint\Resiliency\StartupItems</code>
        <ul>
          <li>Value: <code class="language-plaintext highlighter-rouge">ru4</code></li>
        </ul>
      </li>
    </ul>
  </li>
</ul>

<p>After removing only those values, the apps were able to start.</p>

<p>The weird thing is that both the <code class="language-plaintext highlighter-rouge">AppWindowPos</code> and <code class="language-plaintext highlighter-rouge">Left</code> values relate to the application window position. Even weirder is that the <code class="language-plaintext highlighter-rouge">ru4</code> and <code class="language-plaintext highlighter-rouge">Left</code> values for PowerPoint are related. Removing only one of those keys wasn’t enough. I had to remove both. Weirder still is that the entire <code class="language-plaintext highlighter-rouge">HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\PowerPoint\Resiliency</code> key (the parent of the key from which I removed a value) disappeared after I closed PowerPoint.</p>

<p>I have no idea why those keys were problematic. I’m just glad I solved the problem. If I hadn’t found that article, I may be rebuilding my machine right now instead of writing this blog post. I hope this might help someone else if they ever have a similar problem.</p>]]></content><author><name>Adam Ralph</name></author><category term="sysadmin" /><summary type="html"><![CDATA[Yesterday, PowerPoint and Word suddenly started to refuse to open. I’d get the splash screens saying “Starting…” but then they would disappear and… nothing. (I’m using Windows 10 version 1803 and Office Professional Plus 2016.) First I searched to see if anyone else was suffering a similar problem. The recent Windows 10 version 1803 update was one of my prime suspects. I couldn’t find anything so I decided to take matters into my own hands.]]></summary></entry><entry><title type="html">Packaging a package-specific Roslyn analyzer</title><link href="https://adamralph.com/2018/05/19/packaging-a-package-specific-roslyn-analyzer/" rel="alternate" type="text/html" title="Packaging a package-specific Roslyn analyzer" /><published>2018-05-19T00:00:00+00:00</published><updated>2018-05-19T00:00:00+00:00</updated><id>https://adamralph.com/2018/05/19/packaging-a-package-specific-roslyn-analyzer</id><content type="html" xml:base="https://adamralph.com/2018/05/19/packaging-a-package-specific-roslyn-analyzer/"><![CDATA[<p>Some <a href="https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/overview">Roslyn-based analyzers for .NET</a> are general in nature. They tend to focus on coding style, language use, or platform APIs. Others may be specific to a NuGet package. A package-specific analyzer provides messages and fixes tailored to use of that package. This is a great way for package authors to help improve your code or avoid nasty bugs in production. Many popular open source packages are now shipping with a complementary analyzer. Today, I’m going to take a look at how we can package these package-specific analyzers.<!--excerpt--></p>

<p>I’ve seen three methods in use:</p>

<h3 id="method-1-a-separate-package">Method 1: a separate package</h3>

<p>The main advantage of this approach is independent release. We can change the analyzer without changing the main package. Also, users are not forced to use the analyzer. They have to “opt in”.</p>

<p>The big disadvantage is that many (most?) users will not opt in. They may not know about the analyzer, or may choose not to use it. Low adoption can be a problem. There may be something that users often get wrong when using the main package. We design our APIs and docs to lead users in the right direction. But there are some problems only a code review (or an analyzer) can catch.</p>

<h3 id="method-2-a-separate-package-depended-on-by-the-main-package">Method 2: a separate package, depended on by the main package</h3>

<p>When users install the main package, they get the analyzer thrown in. That means 100% of users are using the analyzer! The downside is that there is no way to “opt out”.</p>

<p>There’s also a bigger problem with this method. The user’s project has a direct dependency on the main package, but only a “transitive dependency” on the analyzer package. The main package depends on the analyzer package with a version range. A typical version range may be “greater than or equal to”, e.g <code class="language-plaintext highlighter-rouge">&gt;= 1.0.0</code>. NuGet resolves transitive dependencies using the lowest version that satisfies the version range, i.e. <code class="language-plaintext highlighter-rouge">1.0.0</code>. Now let’s say we discover a bug in the analyzer and release <code class="language-plaintext highlighter-rouge">1.0.1</code>. Our users are not prompted to update to the new version because their project does not depend on the analyzer. The only way for users to get the new version of the analyzer is to actually install it. Now we are back to a similar situation to method 1. Users have to “opt in” to the new version of the analyzer. We could avoid that by releasing a new version of the main package which depends on the new version of the analyzer package. But that means we’ve lost the advantage of independent release.</p>

<h3 id="method-3-part-of-the-main-package">Method 3: part of the main package</h3>

<p>With this method, we include the analyzer assembly in the main package, in the <code class="language-plaintext highlighter-rouge">analyzers</code> folder. We have the benefit of method 2, in that 100% of users are using the analyzer. When we release new versions of the analyzer, we are releasing the main package, which prompts users to update. Again, we don’t have opt-out for the analyzer, nor do we have independent release.</p>

<h3 id="conclusion">Conclusion</h3>

<p>When choosing the best method to use, the most important factor may be the <em>importance</em> of the diagnostics provided by the analyzer. If the analyzer detects problems which affect production apps, I’d favour method 3. Otherwise, I’d go for method 1. I’m having difficulty seeing method 2 as a good choice in any scenario. It offers nothing over method 3, since independent release of the analyzer is ineffective. One argument against method 3 is that analyzer changes are not enough to warrant a release of the main package. I’d argue against this. If we’ve already chosen method 3, then a fix to the analyzer may be as important as, or even more important than, a fix to the referenced assemblies.</p>

<p>It’s possible that the big problem with method 2 could be solved by changing NuGet. We could <a href="https://github.com/NuGet/Home/issues/1192">allow a package to depend on the highest available version of another package</a>. NuGet could also prompt for updates to transitive dependencies.</p>

<p>Do you disagree? Have you seen other methods of packaging package-specific analyzers? Please sound off in the comments!</p>]]></content><author><name>Adam Ralph</name></author><category term="NuGet" /><summary type="html"><![CDATA[Some Roslyn-based analyzers for .NET are general in nature. They tend to focus on coding style, language use, or platform APIs. Others may be specific to a NuGet package. A package-specific analyzer provides messages and fixes tailored to use of that package. This is a great way for package authors to help improve your code or avoid nasty bugs in production. Many popular open source packages are now shipping with a complementary analyzer. Today, I’m going to take a look at how we can package these package-specific analyzers.]]></summary></entry><entry><title type="html">Windows 10 version 1803 broke my git SSH</title><link href="https://adamralph.com/2018/05/15/windows-10-version-1803-broke-my-git-ssh/" rel="alternate" type="text/html" title="Windows 10 version 1803 broke my git SSH" /><published>2018-05-15T00:00:00+00:00</published><updated>2018-05-15T00:00:00+00:00</updated><id>https://adamralph.com/2018/05/15/windows-10-version-1803-broke-my-git-ssh</id><content type="html" xml:base="https://adamralph.com/2018/05/15/windows-10-version-1803-broke-my-git-ssh/"><![CDATA[<p>I’m presenting a workshop tomorrow here at <a href="https://web.archive.org/web/2018/https://microcph.dk/">MicroCPH</a>. Windows has a way of knowing the best times to apply major updates. Sure enough, Windows 10 version 1803 (April 2018 Update) appeared on my laptop yesterday. All seemed fine until I tried to do some work with git.<!--excerpt--></p>

<p>I use SSH rather than HTTPS to talk to git remotes. The SSH agent was up and running, with my SSH key added to it. Business as usual. The problems started when I ran <code class="language-plaintext highlighter-rouge">git remote update</code>. I was prompted for the password for my SSH key. Then I tried <code class="language-plaintext highlighter-rouge">git push</code>. Again I was prompted for my password. Git and the SSH agent were no longer friends.</p>

<p>It turns out that the <a href="https://blogs.msdn.microsoft.com/commandline/2018/03/07/windows10v1803/">OpenSSH client is enabled by default in the 1803 update</a> (it was added as an optional beta feature in 1709). When posh-git starts the SSH agent, it uses the binaries in <code class="language-plaintext highlighter-rouge">%windir%/system32/OpenSSH/</code> (added in 1803). Git wants to use the local SSH binaries in <code class="language-plaintext highlighter-rouge">%programfiles%/Git/usr/bin/</code> (bundled with git). It seems that these two sets of SSH binaries don’t play together.</p>

<p>The solution I chose was to configure git to use the Windows-bundled SSH binaries. I added the following entry to my global <code class="language-plaintext highlighter-rouge">.gitconfig</code>:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>[core]
  sshCommand = \"C:/Windows/System32/OpenSSH/ssh.exe\"
</code></pre></div></div>

<p>If you have the same problem, I hope this helps!</p>]]></content><author><name>Adam Ralph</name></author><category term="sysadmin" /><summary type="html"><![CDATA[I’m presenting a workshop tomorrow here at MicroCPH. Windows has a way of knowing the best times to apply major updates. Sure enough, Windows 10 version 1803 (April 2018 Update) appeared on my laptop yesterday. All seemed fine until I tried to do some work with git.]]></summary></entry><entry><title type="html">No Pull Request Is Too Small</title><link href="https://adamralph.com/2015/10/12/no-pull-request-is-too-small/" rel="alternate" type="text/html" title="No Pull Request Is Too Small" /><published>2015-10-12T00:00:00+00:00</published><updated>2015-10-12T00:00:00+00:00</updated><id>https://adamralph.com/2015/10/12/no-pull-request-is-too-small</id><content type="html" xml:base="https://adamralph.com/2015/10/12/no-pull-request-is-too-small/"><![CDATA[<p>This is a message I try and convey as often as possible to people starting out in open source contribution. To show how easy it is, I sometimes <a href="https://www.youtube.com/watch?v=1v091LSnThE&amp;t=36m4s">send a tiny pull request live on stage</a>. I don’t even have to leave the GitHub web UI.<!--excerpt--></p>

<p>And this is not something I do only for show. If you were to follow my activity on GitHub you’d see that <a href="https://github.com/damianh/LibLog/pull/86/files">I do this for real</a>. If I’m browsing some source code and I see a typo, why not fix it there and then? Project maintainers (myself included) appreciate these little fixes and polishes. Every little bit helps.</p>

<p>It was heartwarming for me to learn that I inspired <a href="https://twitter.com/Cyberlane">Justin Nel</a> and <a href="https://twitter.com/BleedingNEdge">Paweł Grudzień</a> when they watched me do this in my talks. They went on to send their own small improvements to <a href="https://github.com/NancyFx/Nancy.Demo.Samples/pull/3">NancyFX</a> and <a href="https://github.com/aspnet/dnx/pull/2936">DNX</a>.</p>

<p>Indeed, this is something <em>all</em> OSS contributors should bear in mind. Beginners, journeymen and masters alike.</p>

<p>The next time you’re browsing some code on GitHub, see if you can spot an opportunity to make a tiny improvement. Click the edit button, and <em>just do it</em>. You’ll improve the project, even if only a little. All the baby steps add up. Your name will enter the commit history and you’ll be a recognised contributor. If it’s your first ever pull request, you’ll have taken your first step in an exciting journey.</p>]]></content><author><name>Adam Ralph</name></author><category term="OSS" /><summary type="html"><![CDATA[This is a message I try and convey as often as possible to people starting out in open source contribution. To show how easy it is, I sometimes send a tiny pull request live on stage. I don’t even have to leave the GitHub web UI.]]></summary></entry><entry><title type="html">Blog = Weblog</title><link href="https://adamralph.com/2015/09/28/blog-equals-weblog/" rel="alternate" type="text/html" title="Blog = Weblog" /><published>2015-09-28T00:00:00+00:00</published><updated>2015-09-28T00:00:00+00:00</updated><id>https://adamralph.com/2015/09/28/blog-equals-weblog</id><content type="html" xml:base="https://adamralph.com/2015/09/28/blog-equals-weblog/"><![CDATA[<p>The word ‘blog’ is a truncation of the expression ‘weblog’. Google defines the word as follows:</p>

<blockquote>
  <p>a regularly updated website or web page, typically one run by an individual or small group, that is written in an informal or conversational style.</p>
</blockquote>

<p>The key expression here is <em>regularly updated</em>. The key facilitator is <em>written in an informal or conversational style</em>.<!--excerpt--></p>

<p>At some point, I believe that at least a few other blog authors and I forgot this. Instead of blogging, i.e. regularly logging our activities, observations, general thoughts, etc. on the web in an informal style, we started producing polished articles, written with a beginning, a middle and an end. We started to plan blog posts way in advance, to craft them over days, weeks or more, to keep a backlog of blog post ideas “for the future”. Whilst these approaches may work for some, evidence has shown that it has not worked for me. Whatever the reasons are, be they a lack of ability, time or motivation, the end result is that my blog is <em>not</em> regularly updated.</p>

<p>More than once, I’ve found myself asking:</p>

<blockquote>
  <p>When did my blog stop being a weblog?</p>
</blockquote>

<p>Indeed, was it ever a weblog? Why can it not just <em>be</em> a weblog? There’s no good answer. I’ve made it as easy as possible to write posts. My blog uses GitHub Pages and Jekyll and I can write posts directly in the GitHub UI using Markdown. It is my personal blog. I am not using it to sell services or convey a corporate message. It <em>should</em> be personal, even if it does have a general theme, such as software development. There’s no reason I can’t write posts in an informal or conversational style. There is no reason a post can’t be short. A few mistakes here and there? Who cares? Let the spelling and grammar police do they’re worst! (See what I did there?) :wink:</p>

<p>So this evening, as I stepped past my office door, I decided to pop in and try and reclaim my <strong>weblog</strong>. I went to GitHub, clicked on the create file icon and started writing some Markdown. This post is the result.</p>

<p>Perhaps this is just the stepping stone to the next era of tumbleweeds in my blog, but at least I’ll sleep with a sense of satisfaction tonight.</p>]]></content><author><name>Adam Ralph</name></author><category term="blogging" /><summary type="html"><![CDATA[The word ‘blog’ is a truncation of the expression ‘weblog’. Google defines the word as follows: a regularly updated website or web page, typically one run by an individual or small group, that is written in an informal or conversational style. The key expression here is regularly updated. The key facilitator is written in an informal or conversational style.]]></summary></entry><entry><title type="html">Announcing xBehave.net 2.0</title><link href="https://adamralph.com/2015/08/06/announcing-xbehave-net-2-0/" rel="alternate" type="text/html" title="Announcing xBehave.net 2.0" /><published>2015-08-06T00:00:00+00:00</published><updated>2015-08-06T00:00:00+00:00</updated><id>https://adamralph.com/2015/08/06/announcing-xbehave-net-2-0</id><content type="html" xml:base="https://adamralph.com/2015/08/06/announcing-xbehave-net-2-0/"><![CDATA[<p>I’m enormously happy to announce that <a href="https://github.com/xbehave/xbehave.net">xBehave.net 2.0</a> (based on <a href="https://xunit.net/">xUnit.net 2.0</a>) is now live and available on <a href="https://www.nuget.org/packages/Xbehave/2.0.0">NuGet</a>. Work on xBehave.net 2.0 began in April 2014, shortly after the first beta release of xUnit.net 2.0, and continued on and off for the next 16 months with the first xBehave.net 2.0 beta release in December.<!--excerpt--></p>

<p><img src="/img/xbehave-128.png" alt="xBehave.net logo" /></p>

<p>Just like xUnit.net 2.0, xBehave.net 2.0 is a complete rewrite from scratch, with only the public API type names and method signatures remaining relatively unchanged. However, only ‘half’ of the code base was in fact rewritten. xBehave.net has dogfooded itself for its own acceptance tests since pre-1.0, and those acceptance tests have remained largely as is and only added to, throughout the whole exercise. This meant that xBehave.net 2.0 was developed almost entirely in true TDD style. The suite of 1.x acceptance tests already existed. All that needed to be done was to create a project linked against xUnit.net 2.0 which made those tests green!</p>

<p>Linking against xUnit.net 2.0 is not the only change in xBehave.net 2.0. Several new features have been added (and, of course, accompanying acceptance tests), some changed and some taken away. For full details, see the <a href="https://github.com/xbehave/xbehave.net/wiki/Changes-in-version-2.0">Wiki</a>.</p>

<h3 id="thanks">Thanks</h3>

<p><a href="/2013/10/09/announcing-xbehave-net-1-0/">As I’ve said before</a>, by far the most important aspect of xBehave.net is <strong>you</strong>, the community. In particular, I’d like to call out the following people for their invaluable help in getting xBehave.net 2.0 out of the door:</p>

<h4 id="brad-wilson"><a href="https://github.com/bradwilson">Brad Wilson</a></h4>

<p>Brad gave me a wealth of advice and assistance over at the <a href="https://xunit.slack.com/messages/general/details/">xUnit.net chat room</a> and made a slew of changes to xUnit.net 2.0 during the beta phase which allowed xBehave.net 2.0 to come into existence. Not least, the split of the component packages into meta packages and *.extensibility.* packages. Thank you Brad for embracing the community during the development of xUnit.net 2.0 and for one of the most elegantly designed extensibility APIs this developer has ever had the pleasure to use!</p>

<h4 id="matt-ellis"><a href="https://github.com/citizenmatt">Matt Ellis</a></h4>

<p>During smoke testing with the <a href="https://www.jetbrains.com/resharper/">ReSharper</a> xUnit.net plug-in, I discovered some problems in the beta versions of both xBehave.net and the ReSharper plug-in. I was lucky enough to be able to collaborate closely with Matt in the xUnit.net chat room, resulting in a cross-pollination of improvements and fixes to both products.</p>

<h4 id="remco-mulder"><a href="https://github.com/remcomulder">Remco Mulder</a></h4>

<p>During smoke testing with a pre-release version of <a href="http://www.ncrunch.net/">NCrunch</a> linked against the xUnit.net 2.0 betas, I discovered some problems in both NCrunch and xBehave.net. Remco spent a large amount of time with me in the xUnit.net chat room reproducing and identifying these problems and, together, we fixed the problems on either side of the integration until we got to a point where xBehave.net was crunching along nicely with NCrunch.</p>

<h4 id="urs-enzler"><a href="https://github.com/ursenzler">Urs Enzler</a></h4>

<p>Urs gave me some enormously valuable feedback as a user of xBehave.net during the release candidate phase. Not least, he drove the split of the package into a meta package plus a core implementation package, to allow developers who do not want to take a dependency on xunit.assert to install the xBehave.Core package instead of xBehave, similarly to the xunit and xunit.core packages. Urs also presented the ideas which inspired the creation of the <a href="https://github.com/xbehave/xbehave.net/wiki/Continuing-on-failure">continuing on failure</a> and <a href="https://github.com/xbehave/xbehave.net/wiki/Step-filters">step filters</a> features. BTW, if you’re interested in generating Markdown output from your xBehave.net tests, check out his <a href="https://github.com/ursenzler/xBehaveMarkdownReport">xBehaveMarkdownReport </a> tool.</p>

<h3 id="future">Future</h3>

<p>The next planned version of xBehave.net is 2.1, which will be linked against xUnit.net 2.1 (currently in beta), and will add support for the ‘dotnet’ (vNext, DNX, .NET Core, etc.) NuGet TFM.</p>

<p>If you’d like to help out, just head over to the <a href="https://github.com/xbehave/xbehave.net/">GitHub repository</a> where you can get familiar with the code, send pull requests or raise issues for new features, bugs, questions, discussions etc.</p>

<p>You can also ping me on <a href="https://twitter.com/adamralph">Twitter</a> or in the xBehave.net <a href="https://jabbr.net/#/rooms/xbehavenet">chat room</a> on JabbR.</p>

<p><strong>Thanks again!</strong></p>]]></content><author><name>Adam Ralph</name></author><category term="testing" /><category term="xBehave.net" /><category term="releases" /><summary type="html"><![CDATA[I’m enormously happy to announce that xBehave.net 2.0 (based on xUnit.net 2.0) is now live and available on NuGet. Work on xBehave.net 2.0 began in April 2014, shortly after the first beta release of xUnit.net 2.0, and continued on and off for the next 16 months with the first xBehave.net 2.0 beta release in December.]]></summary></entry><entry><title type="html">How To Kill Your NuGet Package Through Casing</title><link href="https://adamralph.com/2015/03/04/nuget-gallery-casing-woes/" rel="alternate" type="text/html" title="How To Kill Your NuGet Package Through Casing" /><published>2015-03-04T00:00:00+00:00</published><updated>2015-03-04T00:00:00+00:00</updated><id>https://adamralph.com/2015/03/04/nuget-gallery-casing-woes</id><content type="html" xml:base="https://adamralph.com/2015/03/04/nuget-gallery-casing-woes/"><![CDATA[<p>When the initial placeholder for the <a href="https://www.nuget.org/packages/Bau.Xunit/">Bau.Xunit</a> package was uploaded, the ID was cased <code class="language-plaintext highlighter-rouge">Bau.XUnit</code>. Later, when the first real package was uploaded, the ID was cased <code class="language-plaintext highlighter-rouge">Bau.Xunit</code>. Since the NuGet gallery compares IDs without case sensitivity, these IDs were matched and hence the later package became a newer version of the older, but the original ID <code class="language-plaintext highlighter-rouge">Bau.XUnit</code> remained.<!--excerpt--></p>

<p>This caused problems in Linux, since the folder on disk was created using the gallery ID <code class="language-plaintext highlighter-rouge">Bau.XUnit</code>, but the .csproj reference was added using the ID in the package version that has been downloaded, <code class="language-plaintext highlighter-rouge">Bau.Xunit</code>. Now, because Linux has a case-sensitive file system, the reference did not point to the package on disk, and everything blew up when trying to compile the project. This is a bug in itself, but getting a NuGet client patch pushed out wasn’t something I fancied pursuing at the time. This led to some <a href="https://github.com/bau-build/bau/blob/780bb643bd8ec16aab1daa7cc3f1add31084ef3f/bau.sh#L22-L26">horrible build hacks</a>. So, I decided it was time to fix things once and for all, in the NuGet gallery…</p>

<p>The natural thing to do was to fix the ID in the gallery, since <code class="language-plaintext highlighter-rouge">Bau.Xunit</code> is the desired casing. The NuGet support staff were very helpful and, at my request, removed all the versions of the package from the gallery. I then re-uploaded all the correctly ID’d versions of the package and, hey presto, the casing was fixed and the ID of the package was <code class="language-plaintext highlighter-rouge">Bau.Xunit</code>. This is proven since the URL for the package, in search results, etc. was now “https://www.nuget.org/packages/Bau.Xunit/” instead of “https://www.nuget.org/packages/Bau.XUnit/”. All good.</p>

<p>That is, until I tried to consume the package using the NuGet client. I received an error telling me:</p>

<blockquote>
  <p>Unable to find version ‘0.1.0-beta07’ of package ‘Bau.Xunit’.</p>
</blockquote>

<p>So I dug further and spun up Fiddler to see what was going on behind the scenes. I found the following:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>REQUEST:
--------------------------------
GET https://www.nuget.org/api/v2/Packages(Id='Bau.Xunit',Version='0.1.0.0-beta07') HTTP/1.1
DataServiceVersion: 1.0;NetFx
MaxDataServiceVersion: 2.0;NetFx
User-Agent: NuGet/2.8.50506.491 (Microsoft Windows NT 6.2.9200.0)
Accept: application/atom+xml,application/xml
Accept-Charset: UTF-8
Host: www.nuget.org
Accept-Encoding: gzip, deflate
--------------------------------

RESPONSE:
--------------------------------
HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 4153
Content-Type: application/atom+xml;type=entry;charset=utf-8
Server: Microsoft-IIS/8.0
X-Content-Type-Options: nosniff
DataServiceVersion: 2.0;
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Strict-Transport-Security: maxage=31536000; includeSubDomains
Date: Wed, 04 Mar 2015 21:52:17 GMT

&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;entry xml:base="https://www.nuget.org/api/v2/" xmlns="http://www.w3.org/2005/Atom" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;&lt;id&gt;https://www.nuget.org/api/v2/Packages(Id='Bau.XUnit',Version='0.1.0-beta07')&lt;/id&gt;&lt;category term="NuGetGallery.V2FeedPackage" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" /&gt;&lt;link rel="edit" title="V2FeedPackage" href="Packages(Id='Bau.XUnit',Version='0.1.0-beta07')" /&gt;&lt;title type="text"&gt;Bau.XUnit&lt;/title&gt;&lt;summary type="text"&gt;&lt;/summary&gt;&lt;updated&gt;2014-12-01T21:51:40Z&lt;/updated&gt;&lt;author&gt;&lt;name&gt;Adam Ralph,  Bau contributors&lt;/name&gt;&lt;/author&gt;&lt;link rel="edit-media" title="V2FeedPackage" href="Packages(Id='Bau.XUnit',Version='0.1.0-beta07')/$value" /&gt;&lt;content type="application/zip" src="https://www.nuget.org/api/v2/package/Bau.XUnit/0.1.0-beta07" /&gt;&lt;m:properties&gt;&lt;d:Version&gt;0.1.0-beta07&lt;/d:Version&gt;&lt;d:NormalizedVersion&gt;0.1.0-beta07&lt;/d:NormalizedVersion&gt;&lt;d:Copyright&gt;Copyright (c) Bau contributors. (baubuildch@gmail.com)&lt;/d:Copyright&gt;&lt;d:Created m:type="Edm.DateTime"&gt;2014-12-01T21:51:40.407&lt;/d:Created&gt;&lt;d:Dependencies&gt;ScriptCs.Contracts:0.9.0:|Bau:0.1.0-beta07:&lt;/d:Dependencies&gt;&lt;d:Description&gt;A Bau task plugin for running xUnit.net tests.

Require&amp;lt;Bau&amp;gt;().Xunit().Do(xunit =&amp;gt; xunit.UseExe("xunit.console.clr4.exe").RunAssemblies("Tests.dll")).Run();&lt;/d:Description&gt;&lt;d:DownloadCount m:type="Edm.Int32"&gt;339&lt;/d:DownloadCount&gt;&lt;d:GalleryDetailsUrl&gt;https://www.nuget.org/packages/Bau.XUnit/0.1.0-beta07&lt;/d:GalleryDetailsUrl&gt;&lt;d:IconUrl&gt;https://raw.githubusercontent.com/bau-build/bau/dev/assets/bau.128.png&lt;/d:IconUrl&gt;&lt;d:IsLatestVersion m:type="Edm.Boolean"&gt;false&lt;/d:IsLatestVersion&gt;&lt;d:IsAbsoluteLatestVersion m:type="Edm.Boolean"&gt;true&lt;/d:IsAbsoluteLatestVersion&gt;&lt;d:IsPrerelease m:type="Edm.Boolean"&gt;false&lt;/d:IsPrerelease&gt;&lt;d:Language&gt;&lt;/d:Language&gt;&lt;d:Published m:type="Edm.DateTime"&gt;2014-12-01T21:51:40.407&lt;/d:Published&gt;&lt;d:PackageHash&gt;8xLVSlIHbAgJ/BxwAhELOKYZZCKEnwP3IHRWHnvQyuen8gB0vONMdEuuuUoxfwhir6mK5dSPtst3baua3oARqA==&lt;/d:PackageHash&gt;&lt;d:PackageHashAlgorithm&gt;SHA512&lt;/d:PackageHashAlgorithm&gt;&lt;d:PackageSize m:type="Edm.Int64"&gt;41098&lt;/d:PackageSize&gt;&lt;d:ProjectUrl&gt;https://github.com/bau-build/bau/tree/dev/src/Bau.Xunit&lt;/d:ProjectUrl&gt;&lt;d:ReportAbuseUrl&gt;https://www.nuget.org/package/ReportAbuse/Bau.XUnit/0.1.0-beta07&lt;/d:ReportAbuseUrl&gt;&lt;d:ReleaseNotes&gt;&lt;/d:ReleaseNotes&gt;&lt;d:RequireLicenseAcceptance m:type="Edm.Boolean"&gt;false&lt;/d:RequireLicenseAcceptance&gt;&lt;d:Tags&gt;xunit xbehave test tests tdd bdd C# build script task target runner rake grunt gulp fake nake jake psake sake&lt;/d:Tags&gt;&lt;d:Title&gt;Bau.Xunit&lt;/d:Title&gt;&lt;d:VersionDownloadCount m:type="Edm.Int32"&gt;0&lt;/d:VersionDownloadCount&gt;&lt;d:MinClientVersion&gt;&lt;/d:MinClientVersion&gt;&lt;d:LastEdited m:type="Edm.DateTime" m:null="true" /&gt;&lt;d:LicenseUrl&gt;https://github.com/bau-build/bau/blob/dev/license.txt&lt;/d:LicenseUrl&gt;&lt;d:LicenseNames&gt;&lt;/d:LicenseNames&gt;&lt;d:LicenseReportUrl&gt;&lt;/d:LicenseReportUrl&gt;&lt;/m:properties&gt;&lt;/entry&gt;&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"&gt;&lt;m:code&gt;500&lt;/m:code&gt;&lt;m:message xml:lang="en-US"&gt;An error occurred while trying to write an error payload.&lt;/m:message&gt;&lt;m:innererror&gt;&lt;m:message&gt;Cannot transition from state 'Completed' to state 'Error'. Nothing further can be written once the writer has completed.&lt;/m:message&gt;&lt;m:type&gt;Microsoft.Data.OData.ODataException&lt;/m:type&gt;&lt;m:stacktrace&gt;   at Microsoft.Data.OData.ODataWriterCore.Microsoft.Data.OData.IODataOutputInStreamErrorListener.OnInStreamError()&amp;#xD;
   at Microsoft.Data.OData.Atom.ODataAtomOutputContext.WriteInStreamErrorImplementation(ODataError error, Boolean includeDebugInformation)&amp;#xD;
   at Microsoft.Data.OData.Atom.ODataAtomOutputContext.WriteInStreamError(ODataError error, Boolean includeDebugInformation)&amp;#xD;
   at System.Data.Services.ErrorHandler.WriteErrorWithFallbackForXml(ODataMessageWriter messageWriter, Encoding encoding, Stream responseStream, HandleExceptionArgs args, ODataError error, MessageWriterBuilder messageWriterBuilder)&lt;/m:stacktrace&gt;&lt;/m:innererror&gt;&lt;/m:error&gt;
--------------------------------
</code></pre></div></div>

<p>Clearly something was going horribly wrong when trying to request this package from the API.</p>

<p>Note that in the response, the package is referred to as <code class="language-plaintext highlighter-rouge">Bau.XUnit</code> which means that there are still traces of the old, incorrectly cased package ID somewhere in the API.</p>

<p>So it seems like some parts of the system are referring to the package as <code class="language-plaintext highlighter-rouge">Bau.Xunit</code> (correct) and others are still referring to it as <code class="language-plaintext highlighter-rouge">Bau.XUnit</code> (incorrect). I suspect this is the root of the problem.</p>

<p>I’ve asked NuGet support to look into the problem since, as it stands, the Bau.Xunit package is completely out of action. :scream:</p>

<hr />
<h3 id="update">Update</h3>

<p><em>05 Mar 2015</em></p>

<p>I’ve <a href="https://github.com/NuGet/NuGetGallery/issues/2379">raised a bug</a> on the NuGet Gallery GitHub repo to try and get some more eyes on this. Ultimately this ought to be fixed, but in the meantime I’m hoping some keen-eyed developers can spot a workaround that could be done by the support team.</p>

<hr />
<h3 id="update-1">Update</h3>

<p><em>05 Mar 2015</em></p>

<p>Until the issue has been resolved, I’ve uploaded a temporary stand-in package named <a href="https://www.nuget.org/packages/Bau.Xunit.Temp">Bau.Xunit.Temp</a>. You can switch your project to using this package whilst the saga continues.</p>]]></content><author><name>Adam Ralph</name></author><category term="NuGet" /><category term="OSS" /><summary type="html"><![CDATA[When the initial placeholder for the Bau.Xunit package was uploaded, the ID was cased Bau.XUnit. Later, when the first real package was uploaded, the ID was cased Bau.Xunit. Since the NuGet gallery compares IDs without case sensitivity, these IDs were matched and hence the later package became a newer version of the older, but the original ID Bau.XUnit remained.]]></summary></entry><entry><title type="html">Guard Clause Abuse</title><link href="https://adamralph.com/2014/12/21/guard-clause-abuse/" rel="alternate" type="text/html" title="Guard Clause Abuse" /><published>2014-12-21T00:00:00+00:00</published><updated>2014-12-21T00:00:00+00:00</updated><id>https://adamralph.com/2014/12/21/guard-clause-abuse</id><content type="html" xml:base="https://adamralph.com/2014/12/21/guard-clause-abuse/"><![CDATA[<p>Today sees the release of version 0.10 of the mighty <a href="https://www.nuget.org/packages?q=liteguard">LiteGuard</a> library.<!--excerpt--></p>

<p>After announcing the release on <a href="https://jabbr.net/#/rooms/general-chat">JabbR</a>, I found myself considering and commenting on the common abuse of guard clauses that I see so very often:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>public class Car
{
    private readonly string numberPlate:

    public Car(string numberPlate)
    {
        Guard.AgainstNull("numberPlate", numberPlate);
        
        this.numberPlate = numberPlate;
    }
    
    public string NumberPlate
    {
        get { return this.numberPlate; }
    }
}
</code></pre></div></div>

<p>(I’m using the British English term “number plate”, known as “license plate” in the US and some other countries.)</p>

<p>The above code should not be using a guard clause and should not raise an <code class="language-plaintext highlighter-rouge">ArgumentNullException</code>. It should throw some kind of model* exception, since it is encapsulating a rule which has been identified in the domain of the application. The code is not dereferencing <code class="language-plaintext highlighter-rouge">numberPlate</code> so it doesn’t need a guard clause:</p>

<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>public class Car
{
    private readonly string numberPlate:

    public Car(string numberPlate)
    {
        if (numberPlate == null)
        {
            throw new UsedCarDealershipException("The number plate is missing.");
        }
        
        this.numberPlate = numberPlate;
    }
    
    public string NumberPlate
    {
        get { return this.numberPlate; }
    }
}
</code></pre></div></div>

<p>* <em>Feel free to substitute the word ‘model’ for ‘business’, according to taste</em>. :wink:</p>]]></content><author><name>Adam Ralph</name></author><category term="SOA" /><category term="testing" /><summary type="html"><![CDATA[Today sees the release of version 0.10 of the mighty LiteGuard library.]]></summary></entry><entry><title type="html">No Tech Lead</title><link href="https://adamralph.com/2014/03/15/no-tech-lead/" rel="alternate" type="text/html" title="No Tech Lead" /><published>2014-03-15T00:00:00+00:00</published><updated>2014-03-15T00:00:00+00:00</updated><id>https://adamralph.com/2014/03/15/no-tech-lead</id><content type="html" xml:base="https://adamralph.com/2014/03/15/no-tech-lead/"><![CDATA[<p>I’ve had many discussions about the notion of a ‘tech lead’ in a team of developers. It’s something I feel passionate about as it affects both me personally and the entire software development industry.</p>

<p>Yesterday, I read the blog post <a href="https://medium.com/p/948b2b806d86">Good Tech Lead, Bad Tech Lead</a> by <a href="https://medium.com/@jliszka">Jason Liszka</a>. Jason’s post offers me an ideal reference to argue my views and has prompted me to write this post, for which I’m grateful. This post is at least partially formed as a reaction to Jason’s post, which I think is very good and highlights some very important points for a tech lead, <em>assuming a tech lead exists</em>.<!--excerpt--></p>

<p>I challenge the ‘tech lead’ model and propose that a ‘no tech lead’ model with a complete focus on teams as opposed to individuals is way more productive and a lot more rewarding not just for team members who would otherwise be followers, but for the team member who would otherwise be leading.</p>

<p>I was a tech lead for a number of years. During that time I believed that the model of a more qualified individual leading with less qualified developers following was a natural method of organisation and I felt qualified to be the tech lead. It was an informal position since I had no official ‘lead’ title nor subordinates in the org chart but it felt productive and I certainly used it when it came to compensation negotiation.</p>

<p>For the last few years, I’ve been involved in a far more productive and rewarding model of team organisation. In my current team, we have no tech lead. We have team members with substantially different levels of experience but we have not used this as a means to ‘grade’ team members and identify a tech lead. Instead, we’ve used the differences to improve the team as a whole by spreading knowledge by use of various practices, gradually smoothing out differences in skills and experience whilst recognising that individuals will always differ in certain ways and using those lasting differences in positive ways.</p>

<p>This has been far more rewarding for me since I now work in a team which has better levels of experience as a whole. I have far more trust in my team mates. When I am on leave, I have absolute confidence that the team can function equally well in my absence (with an according reduction in capacity due to a missing team member). I learn way more since two-way communication and learning is continuous throughout the entire team.</p>

<p>One of the motivations for the ‘tech lead’ model is career progression. Career progression may be important for an individual but it has nothing to do with maximising the productivity of a development team. Skewing the organisation of a development team to meet career progression aspirations of an individual can only be negative for a team.</p>

<p>Compensation justification can often be a major factor and indeed I used my tech lead position to drive my compensation upward in the past. In my view compensation should be something considered outside the <em>organisation</em> of a team. Individuals should be compensated according to the value they provide to the team and can also be affected by their relative level of experience and their individual desirability to other companies. Indeed a ‘no tech lead’ team will evolve to smooth out differences in individuals and should therefore smooth out differences in compensation.</p>

<p>One of the major obstacles is the traditional company hierarchy. Most companies are still formed as vertically oriented hierarchies and people have to be seen to be progressing up org charts in order to justify better compensation. Some companies, such as GitHub, have demonstrated that there is no need for this. However, in most companies, there is still a need for line managers but that is a separate discussion and the reasons are highly removed from anything technical. When this notion of hierarchy leaks down to the technical level, the practices of a team are skewed inappropriately and the effect is counter-productive.</p>

<p><a id="criticism"></a>I will now criticise each section of Jason’s post from my ‘no tech lead’ view.</p>

<h3 id="teamwork">Teamwork</h3>

<blockquote>
  <p>Good tech leads act as a member of the team, and consider themselves successful when the team is successful. They take their share of unsexy grungy work and clear roadblocks so their team can operate at 100%. They work to broaden the technical capabilities of their team, making sure knowledge of critical systems is not concentrated in one or two minds.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads take the high-profile tasks for themselves and are motivated by being able to take credit for doing the work. They optimize locally, keeping team members working on projects that benefit the team at the expense of the engineering organization at large.</p>
</blockquote>

<p>Everything listed in ‘good’ is what <em>every</em> member of the team should be doing.</p>

<p>Everything listed in ‘bad’ outlines some typical problems of <em>having</em> a tech lead.</p>

<h3 id="technical-vision">Technical vision</h3>

<blockquote>
  <p>Good tech leads have an overall vision for the technical direction of the product and make sure the team understands it. They delegate feature areas to other team members and let them own their decisions. They recognize that their team members are smart, trust them, and rely on them to handle significant pieces of the project.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads resist explaining or clarifying the technical direction and dictate decisions instead. They keep critical institutional knowledge in their heads, failing to multiply their effectiveness by creating and disseminating helpful documentation.</p>
</blockquote>

<p>If the team understand the technical vision then they share it. Why should one person be responsible for it rather than the whole team?</p>

<p>Why delegate? Why does one person know best? The team can self organise. Command and control does not work for software development.</p>

<p>The recognition that team members are smart, trusting them and relying on them is a relationship <em>all</em> team members should have with each other.</p>

<p>Everything listed in ‘bad’ outlines some typical problems of <em>having</em> a tech lead.</p>

<p>Technical direction and institutional knowledge are things that the team needs to share through appropriate activities, e.g. whiteboard sessions, backlog grooming. If these things are shared assets of the team then there is rarely a need to produce documentation describing them. Documentation which is regularly produced for this purpose is usually never read.</p>

<h3 id="discussion-and-debate">Discussion and debate</h3>

<blockquote>
  <p>Good tech leads listen and encourage debate. When the team is unable to resolve a debate, they describe a process or framework of thinking that would help them resolve it. They don’t enter discussions with foregone conclusions, and always allow themselves to be persuaded by great ideas.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads allow debates to go on for too long without resolution, hampering the productivity of the team. Others cut off debate prematurely, dismissing new discussions by saying the matter is “already settled.” Bad tech leads believe it is more important that they win the argument than that the team reaches the right decision.</p>
</blockquote>

<p>All members of the team need to be doing the things in ‘good’.</p>

<p>In my team we have heated debates and we always manage to settle them somehow. Sometimes, a team member takes the position of mediator and suggests a resolution to a particularly difficult conflict of views. This role emerges organically during the debate, and the person who takes it is usually the best person for that given debate. This is better than appointing one person to always mediate regardless and avoids the problems listed in ‘bad’.</p>

<p><img src="/img/no-tech-lead-abstract.svg" alt="" class="post-inline" width="360" /></p>

<h3 id="project-management">Project management</h3>

<blockquote>
  <p>Good tech leads are proactive. They make sure technical progress is on track. They work with team members to come up with estimates and to establish intermediate milestones. They anticipate areas of concern and make sure they are addressed before they become a problem. They identify technical roadblocks and help the team get around them. They identify areas of overlap where work can be shared, and conversely, find areas that are not getting enough attention and direct resources toward it.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads are reactive. They may delegate, but do not follow up to make sure progress is being made. They don’t set intermediate goals and hope that everything just comes together in the end. They wait until just before launch to do end-to-end tests of complex systems. They allow team members to waste time on interesting but unimportant work.</p>
</blockquote>

<p>The team should be addressing the things listed in ‘good’ together.</p>

<p>There should be a shared vision of where the project is heading and this should be reinforced with activities such as whiteboard sessions with domain experts and product owners, and story mapping.</p>

<p>The team should overcome technical roadblocks together.</p>

<p>The team should have continuous knowledge of what everyone is working on, making it easy to avoid duplicated effort.</p>

<p>Backlog prioritisation and grooming will highlight areas which are not getting enough attention and the team can self organise to address them.</p>

<h3 id="pragmatism">Pragmatism</h3>

<blockquote>
  <p>Good tech leads are pragmatic and find a balance between doing it right and getting it done. They cut corners when it’s expedient but never out of laziness. They encourage their team to find temporary shortcuts or workarounds to problems that are blocking overall progress, and to build minimum viable infrastructure for launch. To good tech leads, details matter. Code quality, code reviews, and testing are just as important as shipping on time.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads take shortcuts that save time in the short term but cost more in the long term, and let technical debt pile up. They cannot distinguish between situations that call for expediency and those that call for perfection.</p>
</blockquote>

<p>The team should be collectively pragmatic.</p>

<p>The team should identify and agree pragmatic paths to progress during backlog grooming and whilst work is being done through continuous communication, reinforced with code reviews.</p>

<p>Code quality, code reviews and testing are baked into the ‘definition of done’ agreed by the team.</p>

<p>Management of technical debt and the balance between expediency and perfection are team exercises.</p>

<h3 id="communication">Communication</h3>

<blockquote>
  <p>Good tech leads know that their role is much more than writing code, that effective communication is a vital part of their job, and that time spent making their team more efficient is time well spent. They acknowledge that some communication overhead is necessary when working on a team, and they sacrifice some personal productivity for overall team productivity.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads believe that they are most productive when they are writing code, and think communication is a distraction. They do not optimize for overall team productivity, but rather for what works best for themselves. They get frustrated when they have to take time to lead.</p>
</blockquote>

<p>Communication is not an overhead. It is the lifeblood of a team.</p>

<p>A team which does not have enough communication is dysfunctional. The things listed in ‘good’ and ‘bad’ apply to a team, not an individual.</p>

<h3 id="relationship-with-product">Relationship with Product</h3>

<blockquote>
  <p>Good tech leads are in a conversation with product managers and designers about how the product should work. They are not afraid to push back on decisions they disagree with, but keep the product goals in mind and know when to accommodate them. They find creative workarounds to technical constraints by suggesting alternative product formulations that are less technically demanding, and help PMs and designers understand technical challenges so that they make informed trade-offs themselves.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads throw product decisions “over the wall” and do not take ownership of the product. They push back due to technical constraints but do not offer alternatives or explanations.</p>
</blockquote>

<p>I would simply replace the term ‘tech lead’ with ‘team’ in this entire section.</p>

<p>The team, and not an individual, should have a good relationship with the product manager and domain experts.</p>

<p>During backlog grooming, when a story is identified as requiring more in-depth conversation with the product owner or a domain expert, the team can self organise and assign the task to the most effective subset of the team for the given story.</p>

<h3 id="resiliency">Resiliency</h3>

<blockquote>
  <p>Good tech leads are resilient to changes to the product specification and react calmly to surprises. They anticipate where changes might take place and design their code to handle them.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads are upset when the specification changes, or prematurely generalize their design in areas where changes are unlikely to occur.</p>
</blockquote>

<p>The team should be displaying all the qualities listed.</p>

<p>Software architecture is not an up-front exercise but is an evolution. The team should own the architecture collectively and evolve it together during backlog grooming, whiteboard sessions, spikes and continuous communication.</p>

<h3 id="personality">Personality</h3>

<blockquote>
  <p>Good tech leads are easy-going but assertive. Bad tech leads are confrontational and aggressive. Good tech leads emerge naturally and earn respect through technical competence and experience. Bad tech leads think their title confers respect and authority. Good tech leads are always looking for ways to improve.</p>
</blockquote>

<blockquote>
  <p>Bad tech leads get defensive when given feedback. Good tech leads are humble and boost the confidence of everyone else on the team. Bad tech leads are arrogant and take pleasure in making their teammates feel inferior.</p>
</blockquote>

<p>The ‘good’ and ‘bad’ personality traits apply to all team members.</p>

<p>Every team has members with (sometimes wildly) varying skills and levels of experience and these should be embraced as the team self organises rather than elevating an individual to a special status.</p>

<p>Team members earn respect <em>from one another</em> through technical competence and experience.</p>

<p>The team should always be searching for ways to share the knowledge of more experienced team members with those less experienced. Practices such as pair programming and gated commits spread knowledge through the team, avoid single person dependencies and accelerate the development of less experienced team members. This avoids inappropriate expectations of respect and authority, and feelings of arrogance.</p>]]></content><author><name>Adam Ralph</name></author><category term="teamwork" /><summary type="html"><![CDATA[I've had many discussions about the notion of a 'tech lead' in a team of developers. It's something I feel passionate about as it affects both me personally and the entire software development industry.]]></summary><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://adamralph.com/img/no-tech-lead.svg" /><media:content medium="image" url="https://adamralph.com/img/no-tech-lead.svg" xmlns:media="http://search.yahoo.com/mrss/" /></entry></feed>