<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Bryan Liff on Medium]]></title>
        <description><![CDATA[Stories by Bryan Liff on Medium]]></description>
        <link>https://medium.com/@bryan.liff?source=rss-5cee4341211b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G8i49XuBa54pvlczfErKog.jpeg</url>
            <title>Stories by Bryan Liff on Medium</title>
            <link>https://medium.com/@bryan.liff?source=rss-5cee4341211b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 11:18:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bryan.liff/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Story point estimations]]></title>
            <link>https://medium.com/@bryan.liff/story-point-estimations-1eb37588d94f?source=rss-5cee4341211b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1eb37588d94f</guid>
            <category><![CDATA[storypoint-estimation]]></category>
            <category><![CDATA[scrum]]></category>
            <dc:creator><![CDATA[Bryan Liff]]></dc:creator>
            <pubDate>Fri, 15 Jul 2022 16:52:13 GMT</pubDate>
            <atom:updated>2022-07-20T01:30:35.369Z</atom:updated>
            <content:encoded><![CDATA[<p>Although any seasoned Scrum Master will issue the immediate caveat that all story point estimations, and specifically burn down velocity, are dependent on both the context of a particular project and the team doing the work, a general rubric can be developed describing “what” specific story point values could or should represent.</p><p>Having said that, I have devised the following general definitions for what story points mean in terms of development effort. Semi colons (;) represent an “and / or” relationship between the related phrases in each definition.</p><p>0 — trivial (e.g. a text edit)</p><p>1 — not technically complex, simple to implement</p><p>2 — not technically complex, more laborious to implement</p><p>3 — Somewhat complex or labor intensive</p><p>5 — Somewhat complex with unknown factors or external dependencies; extended testing required</p><p>8 — Complex or intricate (touching various parts of the system); large external dependency(ies); various unknowns; multilevel testing</p><p>13 — Very complex or intricate (touching MOST or ALL of the system); copious external dependencies of varying scale; level of unknown factors barely conceivable; extensive testing.</p><p>20 — Epic (Herculean in scale)</p><p>40 — Vast Epic (The <em>Iliad</em> and <em>Odyssey</em> combined)</p><p>100 — All Greco-roman, Babylonian, Persian, and Hittite epics combined!</p><p>So although the last three descriptions (20, 40, 100) are obviously in jest, the overarching point is that anything over a 13 should be broken into smaller stories for manageability, or, at the very least, divided amongst multiple teams, which still, in our humble opinion, would not be an ideal choice.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1eb37588d94f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effective team BDD]]></title>
            <link>https://medium.com/@bryan.liff/effective-team-bdd-e4ea8954e264?source=rss-5cee4341211b------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4ea8954e264</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[test-driven-development]]></category>
            <category><![CDATA[agile-development]]></category>
            <dc:creator><![CDATA[Bryan Liff]]></dc:creator>
            <pubDate>Fri, 01 Jul 2022 13:47:08 GMT</pubDate>
            <atom:updated>2024-03-25T17:58:46.439Z</atom:updated>
            <content:encoded><![CDATA[<p>There have been thousands of articles on the benefits of Behavior Driven Development, and no one denies the many multiplier value of virtually any kind of testing (unit, integrations, end-to-end, <em>etc</em>). Some talk about good testing mechanics, others about suite optimizations and mocking / factory techniques, but almost none speak to the practice of BDD as a team effort and how it can most be effective.</p><p>So what does it mean to truly implement BDD as a <strong><em>team</em></strong>?</p><p>From my experience the quality of code, and the architecture surrounding it, is directly related to the quality of peer reviews. Fomenting a culture of software craftsmanship means being actively involved in the larger code base, and the easiest way to achieve that is practical, impactful exposure.</p><p>Obviously, one cannot be actively involved in every part of a system, rather only those on which you are currently working. But you can be passively involved, or at least aware, of other aspects of development through peer code reviews; but <em>you must have the time to dedicate to them</em>. This is probably the single most daunting part of establishing the effective BDD process — getting stakeholder buy-in and allotting adequate time in the dev cycle (<em>e.g.</em> each story point now takes roughly 2.5 days instead of 1.5). Quality code reviews are worth their weight in gold in catching mistakes (prevention), knowledge sharing (risk management), and promoting best practices &amp; standards (architectural stability).</p><p>Doing a single monolithic code review (<em>e.g.</em> GitHub PR) is overwhelming. To do it well, you must read the user story / spec, review functional code, go-over test coverage [ideally] and run tests locally [hopefully], all in one sitting. It’s an involved, drawn out process that defies its nimble intent.</p><p>So the truly agile solution is to break the process out into simpler, constituent parts. Instead of doing a single, leviathan code review, a multi-step, iterative process more accurately models the BDD paradigm itself, “write your test first, then make it pass”.</p><p>Trying to model a realistic flow, I broke down the process even further into three steps; decide what you are testing, decide how to best test it, and write the code that makes it all pass. I call these stages <em>Test outline</em>, <em>Test implementation</em>, and <em>Code implementation </em>respectively¹. Each step allows you to focus on a specific task at hand.</p><p>To illustrate, I’ll use Ruby and Rspec for their common sense comprehension, but it will not be employing GOF design patterns! As a [completely uncontrived] user story, we’ll use the following:</p><blockquote>As a User object,<br>I want to be able to manually send the UserReport mailer,<br>So the logic is encapsulated in the model.</blockquote><h3>Test outlines: validate <strong><em>what</em></strong></h3><p><em>Test outlines</em>, or natural language test descriptions, forces focus on <strong><em>what</em></strong> actually matters to test and where to integrate into the current testing structure. This is especially important compared to monolithic reviews, given that test coverage is typically an afterthought to begin with, and thus coherent placement never receives adequate attention. And that is the true shame, since proper context and hierarchy only add validity to test coverage through readability, as is the <em>raison d’etre</em> of BDD. If no one is reading it, no one is using it!</p><p>Are you forgetting something important? Are you testing something that isn’t worth it? Are you placing a given test properly? These are the types of questions in the <em>test outline</em> phase.</p><pre># spec/models/user_spec.rb<br><br>describe User do<br>  describe &#39;methods&#39; do<br>    describe &#39;instance&#39; do<br>      describe &#39;#send_mailer_user_report&#39; do<br>        it &#39;sends a UserReportMailer for itself&#39;<br>      end<br>    end<br>  end<br>end</pre><p>As you can see in the example above, there is no code (other than DSL). You can immediately and efficiently discern <em>what</em> the developer intends to test.</p><h3>Test implementation: validate how</h3><p>The <em>test implementation</em> stage focuses on the <strong><em>how</em></strong> tests are written. When taken in a step-wise manner with the last stage, and with diff tools [see below], it is easy to focus on the mechanics of each test’s effectiveness.</p><p>Does the test code, as written, actually evaluate what is needed? Does it incorporate system and company standards/libs? Is it idempotent? Can it be written more efficiently?</p><pre># spec/models/user_spec.rb<br><br>describe User do<br>  describe &#39;methods&#39; do<br>    describe &#39;instance&#39; do<br>      describe &#39;#send_mailer_user_report&#39; do<br>        it &#39;sends a UserReportMailer for itself&#39; do<br>          expect(any_instance_of(UserReportMailer)).to_receive(:send).once<br>          user = FactoryBot.build(:user)<br>          user.send_mailer_user_report<br>        end<br>      end<br>    end<br>  end<br>end</pre><h3>Code implementation: do the tests pass?</h3><p>This stage is the easiest for both developer and reviewer by far, since, if test coverage is ample, the code implementation typically has the least amount of actual code!</p><p>At this stage you are examining the production implementation in isolation. Assuming the previous two review steps are solid, your job as a reviewer is highly focused on robustness, poking holes, and “nitpicking”.</p><pre>class User &lt; ApplicationRecord<br>  #...<br>  def send_mailer_user_report<br>    UserReportMailer.new(self).send()<br>  end<br>  #...<br>end</pre><h3>Tools / Solutions</h3><p>Nowadays, many (if not most) companies use GitHub, and their form of code review is called a “pull request” (or PRs as most of us know them). If GitHub supported a multi-stage or a parent/child PR structure, I would be a very happy camper indeed, but alas, it does not.</p><p>So instead, one must use other tools for the job. For me, Crucible by Atlassian fills that role².</p><p>Each code review is titled something like: [INTERNAL_PROJECT_CODE] [REVIEW_STAGE]: [NATURAL_LANG_DESCRIPTION], <em>e.g.</em> “api-42 Spec outline: Manually send the UserReport”. If all updates per stage are in a single commit (usually named like above), then it is easy to see a diff of the changes between commits regardless of tools. Crucible allows numerous, explicit commits per review, so that isn’t an issue there.</p><h3>Additional measures</h3><p><strong><em>Team organizational support</em></strong><br>Beyond functional cadence, a team can be supported by its organization in the form of a dedicated role; one laser focused on the process and quality of software engineering itself. This engineer would not be assigned active development or story points, rather they help drive the process itself from an engineering perspective. As their primary role³, they are they first to attack code reviews and give immediate feedback, while other devs may be finishing their own tests/code. This role should be rotating, with every developer sharing an equal time in the slot, from Jr to Sr. I usually call this role “the whip” (based on it’s <a href="https://en.wikipedia.org/wiki/Whip_(politics)#:~:text=A%20whip%20is%20an%20official,are%20the%20party&#39;s%20%22enforcers%22.">usage in legislative politics</a>).</p><p>[1] Using Ruby/Rspec convention I will interchange the prefixes “test” and “spec” as in <em>Spec outline</em> and <em>Spec implementation, </em>referring to “testing specifications”</p><p>[2] I have zero affiliation with the company or product — I just find the tool highly effective for it’s purpose.</p><p>[3] Additional responsibilities can revolve around technical debt resolution in any aspect and additional test case hardening if nothing else!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4ea8954e264" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>