<?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[Cape of Good Code - Medium]]></title>
        <description><![CDATA[Cape of Good Code was  founded in 2018 as the result of over 7 years of practical research in the realm of software quality analysis at Siemens Corporate Technology. We offer software quality &amp; risk analysis and software due diligence with our innovative DETANGLE® Analysis Suite. - Medium]]></description>
        <link>https://medium.com/cape-of-good-code?source=rss----e330fa033f65---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Cape of Good Code - Medium</title>
            <link>https://medium.com/cape-of-good-code?source=rss----e330fa033f65---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 12:19:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/cape-of-good-code" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A New Approach To Predict Burnout Risks for Software Developers]]></title>
            <link>https://medium.com/cape-of-good-code/a-new-approach-to-predict-burnout-risks-for-software-developers-d9a17b9d5060?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/d9a17b9d5060</guid>
            <category><![CDATA[work-life-balance]]></category>
            <category><![CDATA[burnout]]></category>
            <category><![CDATA[softare-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[psychology]]></category>
            <dc:creator><![CDATA[Egon Wuchner]]></dc:creator>
            <pubDate>Wed, 15 Sep 2021 09:16:33 GMT</pubDate>
            <atom:updated>2021-09-15T09:15:09.496Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_mTFj1fK7ppu8mng.jpg" /><figcaption><a href="https://www.pexels.com/photo/food-person-people-art-6837566/">Photo by Nataliya Vaitkevich from Pexels</a></figcaption></figure><h3>Summary</h3><h4>Why is burnout so common and what to do about it?</h4><ul><li>Burnout symptoms are often a result of suboptimal procedures and working conditions. They are signs of a serious and protracted illness.</li><li>Especially, burnout of software developers is more widespread than one might suspect. It hits companies via increased employee turnover, reduced team productivity and above-average sick leave just as hard as the affected employees.</li><li>Amongst many other reasons, “meaningless” work, frequently changing priorities, unrealistic goals, deadlines, and overwork are disproportionately often named as causes.</li><li>Early indicators for these most important burnout causes can be identified from the work on the software code with the DETANGLE Analysis Suite.</li><li>With these analysis results, project leaders/-management have information at hand to identify health-threatening working conditions of their developers at an early stage and can initiate countermeasures timely.</li><li>By regularly applying these analyses, additional information regarding the trend of the relevant key metrics will become available. Over time it becomes increasingly easy to narrow down the causes of a developer’s burnout and to avoid it before the individual and as a consequence, the organisation is seriously impacted.</li></ul><h3>Why are software developers so often exposed to burnout symptoms?</h3><p>Burnout is a serious and protracted illness. There is still no clear definition and diagnosis for it. Often, it is confused with depression.</p><p>A helpful description can be found, for example, at <a href="https://medium.com/@Nylas/burnout-prevention-for-software-developers-731ac425e73e">Burnout Prevention for Software Developers </a>[1]:</p><blockquote><em>Burnout is one of those things you don’t notice until you already have it. But people with symptoms of burnout are people </em><strong><em>who are generally always working, always on — they feel like they can never take a break or have downtime</em></strong><em>.</em></blockquote><blockquote><em>- Abby Kearns, Cloud Foundry</em></blockquote><p>The<strong> consequences of burnout are severe for the individual developer, the team and the company</strong>. The following list of some symptoms are consistently cited <a href="https://betterprogramming.pub/how-not-to-burnout-a-guide-for-software-developers-1c89851a2347">How Not to Burnout: Guide for Software Developers </a>[2] :</p><ul><li>“Becoming cynical or overly critical at work”</li><li>“Lack of energy and concentration with no evident cause”</li><li>“Constant fatigue”</li><li>“Procrastinating on tasks that you used to do enthusiastically”</li><li>“Feelings of dread, apathy, and being out of control”</li><li>“Lowered productivity”</li><li>“Minor to major anxiety”</li><li>“Outbursts of anger”</li></ul><p>One could argue that burnout happens in every profession. But software engineering is particularly predestined for it. And there is a reason for that.</p><blockquote>Software engineering has no limits. Work is not defined by a set number of hours per day, but by optimistic and sometimes arbitrary management deadlines. As one senior tech CEO told me, “I knew there was no chance of meeting my deadline, but I just wanted to get the engineering team to work faster.” In addition, understaffing of project teams is common because recruiting developers is difficult — and expensive.’[3]</blockquote><p>The publication <a href="https://www.nemil.com/on-software-engineering/beware-burnout.html">Beware Burnout</a> [3] lists the following software development-specific reasons for an increased probability to get a burnout:</p><ol><li><strong>“Unclear or rapidly changing direction” (A),</strong></li><li><strong>“Bus factor is low” (B),</strong></li><li><strong>“Programming is isolating” (D),</strong></li><li><strong>“Draining work of maintenance” (C),</strong></li><li>“Impatient or ungrateful users” (in the case of open source development)</li><li>“Coding for others”</li></ol><p>Other publications such as <a href="https://towardsdatascience.com/7-reasons-why-programmers-burn-out-44a40bf8948d">7 Reasons why programmers burn out</a> [4] and <a href="https://aprilwensel.medium.com/only-you-can-prevent-tech-burnout-be3f0504c627">Only You Can Prevent Tech Burnout</a> [5] list quite similar and further reasons. The various reasons the different authors find causal for increased susceptibility for burnout can be consolidated into four clusters:</p><h4>(A) Lack of focus</h4><ul><li>Too many varying tasks. The developer e.g. works on the development of many new features but just a few will be completed.</li><li>Or the developer constantly switches between maintenance/bug fixing and feature development often without finishing previous tasks.</li></ul><h4>(B) High workload and/or unbalanced distribution of tasks</h4><ul><li>High workload for some top developers, as only they have the skill to handle complex parts of the software.</li><li>A single developer has to coordinate the work of many (new) developers.</li><li>Unrealistic deadlines coupled with notorious understaffing.</li></ul><h4>(C) Significant share of “non-value” work</h4><ul><li>A high share of maintenance work and a low share of the development of new features/innovations becomes frustrating in the long run.</li></ul><h4>(D) Bad collaboration within and between development teams</h4><ul><li>Lack of onboarding/training of new colleagues.</li><li>Experienced developers who do not delegate or share their knowledge.</li><li>Lack of communication about work progress and best practices within the team or between teams.</li></ul><p>Of course, it also depends on very individual circumstances whether the employee suffers from burnout. But since it is a very serious and long-lasting disease, it is even more important to measure the known causes and their impact on the individual developer as early as possible and to implement prevention concepts. In the following sections, we show that many causes of burnout can be extracted by investigating the work on the software code with our DETANGLE® analysis software.</p><h3>Early indicators of burnout are measurable with DETANGLE®</h3><p>The first step in burnout prevention is to identify indicators that are known or reasonably suspected to be associated with an increased susceptibility for burnout (see the four clusters above). For the category clusters A, B and C, we record the following parameters per developer over time with DETANGLE®:</p><ol><li>What is the developer’s share of workload of system maintenance vs. feature development?</li><li>How many features/user stories does a developer work on simultaneously and what is their effort distribution?</li><li>How many different source code directories is the developer working on simultaneously?</li><li>How many different programming languages is the developer working with?</li><li>Does a developer pose a project risk over a longer period of time due to his relevant and special knowledge, and is she/he aware of it (bus factor)?</li></ol><p>The analysis of these data gives clear insights about working circumstances that are known to cause an overproportional amount of employees burdened with burnout syndrome. For example, the higher the individual’s maintenance effort, the lower the proportion of real value-adding work that usually is seen as a satisfying activity ©. The higher the number of features/user stories and the higher the number of source code directories or programming languages, the lower the developer’s focus (A), whereas the Bus Factor also indirectly reflects his workload (B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/828/0*Wzu4km6mX04Tx2PQ.png" /><figcaption>Figure 1: Bus Factor Trend over time</figcaption></figure><p>Figure 1 shows the Bus Factor, i.e. the number of key developers for the Django open-source project. It can be seen that their number has increased from 4 to 7 developers from 2019 to 2020, and about 12% of the developers are considered mission-critical and contribute to the Bus Factor. The loss of one of these developers is always a project risk. Since these key developers also usually have the highest workload and responsibility, they are particularly at risk for burnout. Thus, the Bus Factor is also an early indicator of the number of employees at risk for burnout. If a developer is recorded as a Bus Factor for a longer time, project management should try to rebalance his load and reduce his/her high level of continuous high importance for the project(s).</p><p>We have already addressed the causes of category D from the previous section (problem of poor cooperation) in several blogs. Under <a href="https://capeofgoodcode.com/2021/05/17/software-due-diligence-focus-on-contributors-and-their-cooperation/">Software Due Diligence — Developers and their Cooperation in Focus </a>[6] and <a href="https://capeofgoodcode.com/2021/03/11/rethinking-collective-code-ownership-knowledge-distribution-risks-demonstrated-with-the-german-corona-warn-app/">(Collective) Code Ownership rethought </a>[7] we have explained that it is not the star soloists, but the team players that matter in order to limit the stress level in the team while still improving productivity and quality.</p><h3>Conclusion</h3><p>Developing software is an intellectually challenging process of many brilliant minds. <strong>Software companies are therefore “people” companies. The risk of burnout is real and present</strong> given the challenges and pressure in software development projects. We strongly recommend identifying burnout indicators early on or even better continuously to minimize the risk of employees dropping out for months due to overwork or dissatisfaction.</p><p>Cape of Good Code has developed an analytical, software-based approach to identify indicators that describe the risk of burnout of an individual caused by working circumstances in software engineering.</p><p>By using DETANGLE® regularly, <strong>project leaders can gain insight about the work-induced stress level within their team</strong>. Each indicator gives specific hints of where the stress could come from. This allows project managers to <strong>reach out to that employee and discuss individual countermeasures</strong>. By speaking with the employee one can definitively clarify how stressful he/she perceives the work circumstances and whether he/she can further handle that stress level.</p><h3>Frequently Asked Questions</h3><h4>Which requirements must be met so that a software can be automatically examined by the Software Analysis Suite?</h4><p>During the development of the software, a so-called code repository should have been used, in which individual steps in the development of the source code are stored by the development team. Git as a code repository is used meanwhile to a large extent for it. In addition, information from the bug/issue tracker and its connections to the code repository is used and evaluated. If state of the art development procedures are followed in the use of these tools, immediate configuration and execution of the analysis is possible.</p><p>In other cases, a “pre-project” is required to analyze the inconsistent, non-standard development approach and to clean up the data in order to subsequently perform the software analyses. The results of such a pre-project are technical process improvement proposals for the efficient use of these tools in terms of a standardized development process. It also serves to build up a project memory for the benefit of all stakeholders such as project managers/leaders, product owners and developers and supports software engineering in future projects.</p><h4>Can the software analyses be performed fully remote?</h4><p>This is possible and has become the standard in times of travel restrictions. The IT of the company owning/running the software should provide a VPN connection that allows Cape of Good Code to install its DETANGLE® analysis software on a relevant computer (or virtual machine) of the company. The code to be analyzed remains exclusively within the company’s infrastructure at all times. Required personal interviews can also be conducted via online meetings.</p><h4>Can a software code be too large for an automated analysis with DETANGLE?</h4><p>A few million lines of code are not a problem to examine in one pass. For &gt;10 million lines of code, it would have to be checked whether the code can be divided into meaningful examination clusters. This is especially beneficial for the accurate interpretation of the analysis results.</p><h3>Links</h3><p>[1] <a href="https://medium.com/@Nylas/burnout-prevention-for-software-developers-731ac425e73e">Burnout Prevention for Software Developers</a><br>[2] <a href="https://betterprogramming.pub/how-not-to-burnout-a-guide-for-software-developers-1c89851a2347">How Not to Burnout: Guide for Software Developers</a><br>[3] <a href="https://www.nemil.com/on-software-engineering/beware-burnout.html">Beware Burnout</a><br>[4] <a href="https://towardsdatascience.com/7-reasons-why-programmers-burn-out-44a40bf8948d">7 Reasons why programmers burn out</a><br>[5] <a href="https://aprilwensel.medium.com/only-you-can-prevent-tech-burnout-be3f0504c627">Only You Can Prevent Tech Burnout</a><br>[6] <a href="https://capeofgoodcode.com/2021/05/17/software-due-diligence-focus-on-contributors-and-their-cooperation/">Software Due Diligence — Developers and their Cooperation in Focus</a><br>[7] <a href="https://hackernoon.com/the-diffusion-of-responsibility-phenomenon-analyzed-unravel-the-truth-hj2s3340">The Diffusion of Responsibility Phenomenon Analyzed: Unravel the Truth</a></p><p><em>Originally published at </em><a href="https://capeofgoodcode.com/2021/09/10/burnout-syndrome-why-it-hits-software-developers-so-often/">https://capeofgoodcode.com/2021/09/10/burnout-syndrome-why-it-hits-software-developers-so-often/</a><em>on September 10, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9a17b9d5060" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/a-new-approach-to-predict-burnout-risks-for-software-developers-d9a17b9d5060">A New Approach To Predict Burnout Risks for Software Developers</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A ‘Striking’ Way To Explain Technical Debt — Even to Your Kids & Managers]]></title>
            <link>https://medium.com/cape-of-good-code/a-striking-way-to-explain-technical-debt-even-to-your-kids-managers-66ad2921205d?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/66ad2921205d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Wed, 07 Jul 2021 06:53:42 GMT</pubDate>
            <atom:updated>2021-07-07T06:53:06.250Z</atom:updated>
            <content:encoded><![CDATA[<h3>A ‘Striking’ Way To Explain Technical Debt — Even to Your Kids &amp; Managers</h3><h4>White Stripes on the Tail Put Machine Guns of a Fighter Plane Out of Action — A Technical Debt Story</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UEOG-SbF3sG_L_tY.jpeg" /><figcaption><a href="http://www.freepik.com/">Designed by Freepik</a></figcaption></figure><p>The term “technical debt” is a very useful metaphor. It helps to illustrate certain problematic peculiarities in software development. Regardless of the apparent clarity of the term, I always have the feeling that people who have never been directly involved in software development cannot fully understand the real magnitude of the problem of technical debt. For those responsible for software projects, however, this would be very desirable.</p><p>In the following I will try to present this important topic in a simple and comprehensible way. I hope it helps to understand how too much technical debt can destroy the future of software.</p><h3>Let’s start with a kind of “official” definition</h3><blockquote><em>Technical Debt are the intentional and unintentional violations of good architectural and coding practices. This debt will create increasing effort and cost to maintain, extend or innovate the software.</em></blockquote><p>Put less technically, but just as applicable:</p><blockquote><em>All the mess you leave behind when you think you are done.</em></blockquote><p>The variety of solutions in the development of software exceeds anything known from the everyday world of things. And so, as a non-developer, one may underestimate the almost infinite spectrum of conceivable “intentional and unintentional violations” to which software development can tempt you. Due to time and budget pressure or incompetence, software is always full of imperfections. And although it does what it is supposed to do, these imperfections add up in the lifecycle and without countermeasures it becomes a burden for further development, which at some point gets insurmountable, either technically or economically.</p><p>A further definition would not help and so I would like to try with a story. I cannot say whether it actually happened that way. But it is so plausible and comprehensible for IT professionals in the software industry that it seems very realistic.</p><p>The following text is a free translation of this <a href="https://docviewer.yandex.ru/view/0/?page=1&amp;*=bWnFVLBQk%2FrBE5Gj9gkOkW3UnhB7InVybCI6InlhLWRpc2stcHVibGljOi8vU3Qrcy8wdkFtbndQWVFCNHVaL2w4THJGVW9wb1NGWlh3NEM5azdJNmxhYz0iLCJ0aXRsZSI6ImR6dWlrYWt1LnR4dCIsIm5vaWZyYW1lIjpmYWxzZSwidWlkIjoiMCIsInRzIjoxNjE4MzUyNTgwOTAzLCJ5dSI6Ijg5NDEzODM4NTE1Nzc0MDQ4NjIifQ%3D%3D">original Russian source</a>, which reflects a comment-based exchange between various stakeholders (from development, quality assurance and project management) in a software project.</p><p>Let’s go!</p><h3>White Stripes on the Tail Put Machine Guns of a Fighter Plane Out of Action — A Technical Debt Story</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pf3NN5M3zk0vlIEm.jpeg" /></figure><p>Imagine you are a project manager building a historic fighter plane in a video game. After the first test flights, however, your customers notice an inaccuracy compared to the original: two white stripes are missing on the tail.</p><p>You transfer the matter to your QA manager, who in turn passes it on to a QA engineer. The latter delegates the task to the art director, so that it finally ends up with a texture designer.</p><p>The texture designer transfers the final creation of the stripes to a 2D designer. However, he replies that the team is completely overloaded and that the stripes cannot be created sooner than in two months. The texture designer then turns to the less overworked 3D design team. He reports that the exact required textures cannot be created in such a timely manner and asks for the stripes to be modeled based on already available best-fit textures.</p><p><em>[With this violation of architectural best practices — i.e. a misappropriation — the new technical debt begins here.]</em></p><p>Nine days later, the 3D designer notifies the lead developer that the white stripes are ready. The final step, he says, is merely to attach the stripes to the aircraft. The lead developer assigns a junior developer to do it. A month later, he announces completion.</p><h4><strong>The stripes block the own on-board weapons</strong></h4><p>After only two more days, the QA engineer reports a defect in the on-board machine guns: no one can be shot down anymore.</p><p>It takes a month and a half before the senior developer can nail down the problem: The stripes cover the MGs and in turn are made of a material that has bullet collision detection in it. The machine gun bullets can’t penetrate the stripes.The lead developer does not understand how the stripes could cover the machine guns when they are attached to the rear of the fuselage. The senior developer explains that the real MGs are actually in the rear part and the MGs in the wings are just fakes, only for appearance. It would be due to the history of the project, he doesn’t remember the exact reasons. In any case, the entire ballistics depended on this design. A revision would take too much time.</p><p><em>[This is where new technical debt meets old. One can imagine that a complete documentation would have made this new problem recognizable earlier and might have steered the development in the right direction].</em></p><p>After three weeks, the lead developer approaches the 3D designer with a request to remove the collision-causing components from the white stripes. He replies that this is not possible because the collision features are inherent properties of the textures and no other textures are currently available. The whitest texture he could find, he said, was from a spot on another aircraft, which happened to have 4cm of armor.</p><p><em>[Bingo, you can imagine that one should have turned back from here, but they didn’t.]</em></p><h4><strong>Let’s increase the shooting power</strong></h4><p>The lead developer is stunned by the hardwiring of the collision in the textures and asks the senior developer if it is not possible to map this through a separate setting. The latter doesn’t know how this should work, since material fatigue, for a realistic implementation of bullet penetration, is also coded in the alpha channels of the textures.</p><p>The back and forth lasts two more months until the player community manager gets in touch and upgrades the priority of the issue to HIGH: the players would have noticed once again that the stripes are missing and would lose interest in such an amateurish game. The project is on the verge of failure.</p><p>The lead developer reacts quickly and asks for the stripes to be moved so that they no longer cover the MGs. However, the historical consultant does not agree with this at all: all details are measured to the millimeter based on historical photos, and he would not support a change under any circumstances.</p><p>The lead developer resigns and asks the senior for some solution to finally make it work. The situation is hopeless, he says. The senior decides to increase the MGs’ firepower from 2 to 231. This would use up 229 units to shoot through the stripes, leaving the remaining 2 for the bullets’ usual trajectory.</p><p><em>[This is a typical situational (mis)decision that will soon blow up in the software developers’ faces].</em></p><h4><strong>Let’s destroy everything and everyone</strong></h4><p>The senior developer closes the issue after two months and announces that everything should be fine now. However, the QA lead vehemently counters this after another month. He angrily reports that the firing power of another aircraft model is now increased to such an extent that it effortlessly destroys everything and everyone, which is absolutely unacceptable.</p><p>The problem is immediately clear to the game designer. The other model uses the same MGs, but scaled tenfold. The shape of the MGs of both models is similar and so it was decided at the time to save on additional modeling. The firepower also scales automatically, but with a factor of 1000, proportional to the diameter of the barrel, which ultimately results in a gigantic firing force.</p><p>The senior then indicates that the entire architecture of the game engine would have to be changed to allow dynamic collision adjustment of textures, which would take half a year of work. The lead developer knows that such decisions can only be made at the highest level and hands it over to the project manager.</p><h4><strong>The “Solution”</strong></h4><p>The project manager then says that he has decided that it is easier to remove the critic who had complained about the inaccuracies regarding the white stripes from the community. The matter with the stripes was settled, and everyone should go about their normal tasks. He would now consider how to justify the exclusion.</p><p><em>[In this case, the only correct decision. So much technical debt was built up here in a short time due to time and budget pressure that further development of the game could hardly have been afforded.]</em></p><h3>What do we learn from this?</h3><p>Technical debt destroys development work that has been done. And often far more than the corresponding improvement measures or debt-free solutions would have required. In this case, the team is back to square one after 12 months without a solution to the actual problem. The two sensible alternatives — to wait 2 months or to carry out an extensive improvement within 6 months — were rejected.</p><p>However, wrong decisions usually reveal themselves only in retrospect and are often difficult to predict despite the expertise of the specialists.</p><h4><strong>Finally, a summary of the important characteristics of the technical debt built up in this example</strong></h4><ol><li>Technical debt arises from misappropriation of concepts.</li><li>The tricky thing is: Whether you actually misappropriated or used something as intended is often not apparent at first glance and only becomes apparent afterwards.</li><li>Due to the almost infinite number of possible solutions, software development is particularly susceptible to bending a solution path once it has been taken in one way or another until the end.</li><li>Time pressure and unplanned tasks are an important factor in the accumulation of technical debt.</li><li>Decisions based on existing technical debt are like a house of cards. Conscious and unconscious misappropriations build on each other, overlap, and are interconnected. For a while, the house remains standing, but each additional card can break it down.</li><li>Uncorrected Technical Debt leads to escalating maintenance and development costs.</li><li>Above a certain level, technical debt also becomes a problem for customers because features are delayed, buggy, or new ones can’t be implemented at all.</li></ol><p><strong>Most importantly</strong>, technical debt cannot be avoided a priori. But it can be kept under control by following best practices in development processes and regular assessments and adjustments of the architecture.</p><p><strong>This article first appeared on the Cape of Good Code blog at: </strong><a href="https://capeofgoodcode.com/2021/06/30/the-most-striking-way-to-explain-technical-debt-even-to-your-kids-managers/">https://capeofgoodcode.com/2021/06/30/the-most-striking-way-to-explain-technical-debt-even-to-your-kids-managers/</a></p><h3>Resources</h3><ul><li>[1] dzuikaku.txt: <a href="http://yadi.sk/d/wcByE6pH6VTjP">http://yadi.sk/d/wcByE6pH6VTjP</a> (original source)</li></ul><p>You can find more on the subject of technical debt, in particular how it can be measured and quantified in the code beyond gut instinct, here:<a href="https://medium.com/cape-of-good-code/corona-warn-app-on-the-way-to-critical-technical-debt-4ee545f076d5"> Corona-Warn-App — On the Way To Critical Technical Debt?</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66ad2921205d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/a-striking-way-to-explain-technical-debt-even-to-your-kids-managers-66ad2921205d">A ‘Striking’ Way To Explain Technical Debt — Even to Your Kids &amp; Managers</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ich weiß schon, wo die Probleme in meinem Code liegen]]></title>
            <link>https://medium.com/cape-of-good-code/ich-wei%C3%9F-schon-wo-die-probleme-in-meinem-code-liegen-e9618591583d?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/e9618591583d</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Thu, 27 May 2021 08:56:08 GMT</pubDate>
            <atom:updated>2021-05-27T10:02:30.234Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*RD6VhtT1r4n-IiY-.png" /><figcaption>Dieser Artikel ist auch auf <a href="https://konstantin-sokolov.medium.com/i-already-know-where-the-problems-are-in-my-code-3c26d6455aa">Englisch</a> verfügbar.</figcaption></figure><h4>Falls Du in der Softwareentwicklungs-Branche unterwegs bist, dann hast Du diesen Satz bestimmt schon häufiger gehört. Von Kollegen, Lieferanten, Kunden oder Geschäftspartnern. Am häufigsten aber natürlich von Dir selbst. Du hast ihn laut ausgesprochen, bewusst mitgedacht oder implizit angenommen.</h4><p>Warum? Weil es das ist, was Du wahrhaftig glaubst. Alles andere wäre eine persönliche Katastrophe, nicht wahr? Und obwohl ich selbst zu 100% davon überzeugt bin, dass mir der Großteil der Probleme in meinem Code nicht bekannt ist, ertappe ich mich viel zu häufig bei dem gegensätzlichen Gedanken.</p><h3>Wir haben nie Recht</h3><p>Kürzlich las ich den sehr empfehlenswerten Artikel <a href="https://www.nzz.ch/folio/warum-sie-nie-recht-haben-ld.1612968">“Warum wir glauben, was wir glauben wollen”</a>. Reto U. Schneider fasst dort wissenschaftliche Erkenntnisse aus der Psychologie und Neurobiologie zusammen, die unser schwieriges Verhältnis zu unseren eigenen Meinungen darlegen. Kurz gefasst: unsere Gehirne sind stets bestrebt, um jeden Preis an bestehenden Meinungen festzuhalten — ganz unabhängig vom Verhältnis dieser Meinungen zur Realität.</p><blockquote>“Meinungen werden oft nicht aus Fakten, Analyse und Intelligenz geboren, sondern aus Inkompetenz, Selbstüberschätzung und Opportunismus.”<br> — Reto U. Schneider</blockquote><p><strong>Beim Lesen des Artikels konnte ich nicht aufhören, an die Software-Entwicklung zu denken</strong>. In erster Linie vermutlich, weil ich schon seit meinem 13. Lebensjahr programmiere und ohnehin viel zu häufig an das Zeug denke. Auf der anderen Seite aber auch deswegen, weil das Schreiben von Code sehr viel mit Meinungen zu tun hat.</p><p>Warum? Nun, <strong>ein Code-Stück ist letztendlich bloß unsere Meinung</strong> darüber, was die beste Lösung für die Umsetzung einer Anforderung ist. Für fast jede Problemstellung gibt es einfach zu viele mögliche Lösungsvarianten, als dass man sich objektiv auf nur eine richtige festlegen könnte. Und so produzieren wir als SW-Entwickler laufend Meinungen, die wir “per Definition” gegen alles und jeden verteidigen (so wollen es eben unsere Gehirne).</p><h4>Entstehen Meinungen also nur aus der Lösungsvielfalt?</h4><p>Mitnichten! Inkompetenz, Selbstüberschätzung und Opportunismus sind auch in der SW-Entwicklung Gang und Gäbe.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zyn6nLzREfOC9iPZ.jpeg" /></figure><p>Oder copy-pasten wir nicht etwa halbgares Zeug aus Stackoverflow zusammen, das die meisten Likes hat? Entscheiden nach Bauchgefühl, wo sich Testabdeckung lohnt und wo nicht? Und benutzen auch schon mal die neueste Technologie (nach 2–3 YouTube-Videos), die wir nicht ganz verstehen, nur weil es gerade “in” ist? <strong>Oder machen das alles immer nur die Anderen?</strong></p><p>Das Tückische an Meinungen ist, dass sie, entgegen verbreiteter Annahmen, beinahe immun gegen Fakten sind. Wir identifizieren uns so sehr mit unseren Meinungen, dass wir einen Meinungswechsel als einen Verrat an unserem jetzigen und früheren Selbst empfinden.</p><blockquote>“Wir haben nicht Meinungen, wir sind unsere Meinungen”<br> — Reto U. Schneider</blockquote><p>Diesen unangenehmen Gefühlszustand (auch Kognitive Dissonanz genannt) versucht das Gehirn, automatisiert zu vermeiden, in dem es sich die Welt so zurecht legt, wie es gerade passt. Diese Automatismen führen zu systematischen Fehlern (sogenannten kognitiven Verzerrungen) bei der Wahrnehmung der Realität, denen wir alle unterliegen. Einer der Bekanntesten ist der Bestätigungsfehler (Confirmation Bias) — die Neigung, Informationen gezielt so auszuwählen, dass sie unsere Meinungen bestätigen (auf Wikipedia sind über <a href="https://en.wikipedia.org/wiki/List_of_cognitive_biases">50 weitere kogntive Verzerrungen</a> gelistet).</p><h4>Ein Beispiel aus der Software-Entwicklung gefälligst?</h4><p>Hand aufs Herz: Wieviel Zeit muss vergehen, bis Du Dir völlig uneingeschränkt und ohne Scham eingestehen kannst, dass ein von Dir geschriebenes Codestück totaler Mist war? Bei mir sind es 1–2 Jahre. Davor werde ich davon überzeugt sein, dass es vernünftige Gründe dafür gab, es so zu machen und nicht anders. Versteht mich nicht falsch, es geht nicht um bewusstes Lügen. <strong>Wir können bloß nicht über den Tellerrand dessen Hinausblicken, was wir für wahr halten</strong> — es ist die einzig uns zugängliche Realität.</p><p>Ähnliches mag auch für andere Berufe gelten. In der SW-Entwicklung kommt man aber sehr häufig zunächst straffrei davon und kann sich viel zu leicht ein falsches Sicherheitsgefühl verschaffen. In dieser Deutlichkeit ist mir das erst gegen Ende meines Studiums klar geworden, als mir beim Löten einer Schaltung ein Transistor in die Luft gegangen ist. Es hat laut geknallt und das Allerschlimmste: ich musste in den Laden einen neuen kaufen.</p><p>Beim Entwickeln hingegen können wir so oft auf “compile” &amp; “run” klicken und Dinge zurecht biegen, bis sie irgendwie funktionieren — ist eben SOFT-Ware. Ohne echte Angst im Nacken sinkt die Motivation für mentale Anstrengung und davon macht das Gehirn Gebrauch, wann immer es kann: Nachdenken ist ein Kalorienfresser und Gehirne liebes es, Ressourcen zu schonen.</p><h4><strong>Eigentlich müssten SW-Entwickler schon längst verzweifelt sein</strong></h4><p>Angesichts der Menge an Fehlern, die sie machen und der Fehlentscheidungen, die sie treffen. Wer diesbezüglich noch Illusionen verspürt, solle bitte schön einen Blick in seinen Bug-Tracker werfen. Welche Branche sonst noch führt derart sorgfältig Listen über eigene Misserfolge? Und trotz alledem halten wir uns alle für unfehlbare Experten, die über sich selbst und andere bestens Bescheid wüssten.</p><blockquote>“Subjektives Überzeugtsein ist kein objektiver Maßstab für die Richtigkeit von Urteilen.”<br> — Daniel Kahneman.</blockquote><p>Diese einleuchtende Wahrheit ist tatsächlich eine unüberwindbare Hürde für uns: alles was wir tun, tun wir aus Überzeugtsein. Denn eines ist klar: wir schreiben sub-optimalen Code nicht vorsätzlich. Wir sind stets von seiner Richtigkeit überzeugt. Den Großteil der Zeit sind wir verdammt dazu, unseren Intuitionen zu vertrauen. Wir sind unsere Intuitionen. So funktioniert unsere Lebensbewältigung. Andernfalls würden wir vor ständigen Zweifeln verrückt.</p><h3>Sobald es um uns selbst geht, reden wir Bullshit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vHjJ2_uNiGsMO3aS.jpg" /></figure><p>Die Anzahl an Memes darüber, was alles in der SW-Entwicklung falsch läuft, ist aberwitzig. Und so könnte man geneigt sein zu glauben, dass die Branche sensibler gegenüber der eigenen Fehleranfälligkeit sein sollte. Aber Pustekuchen — scheinbar sind SW-Entwickler auch nur Menschen. Wir akzeptieren und bestätigen mit Bereitwilligkeit und rationaler Kühnheit die Probleme unserer Branche, unseres Unternehmens, unserer Kollegen und unserer engsten Freunde.</p><p>Sobald es aber um uns selbst geht, fangen wir an Bullshit zu reden.</p><p>Der Glaubenssatz im Titel ist das Urproblem an Fehlentwicklungen in der SW-Entwicklung. Ein weiterer, der uns in der einen oder anderen Form in Kunden-Projekten und -Gesprächen begegnet, ist der folgende:</p><blockquote>“Analyse-Tools bestätigen nur das, was ich ohnehin weiß, der Rest sind False-Positives”</blockquote><p>Nun, es ist absolut nachvollziehbar, so etwas über seinen eigenen Code zu glauben. Es ist die Folge einer weiteren kognitiven Verzerrung, die Daniel Kahneman als die <strong>WYSIATI (What You See is All There Is)</strong> — Regel bezeichnet:</p><blockquote>“Wir können einfach nicht anders, als mit den beschränkten Informationen, die wir besitzen, so zu verfahren, als wären sie alles, was man über das Thema wissen kann. Aus uns verfügbaren Informationen konstruieren wir die bestmögliche Geschichte, und wenn es eine gute Geschichte ist, glauben wir sie. Paradoxerweise ist es leichter, eine kohärente Geschichte zu entwerfen, wenn man wenig weiß […] Unsere beruhigenden Überzeugung, dass die Welt einen Sinn hat ruht auf einem sicheren Fundament: unserer beinahe unbegrenzten Fähigkeit, die eigene Unwissenheit zu ignorieren.”<br> — Daniel Kahneman.</blockquote><p>Wir kennen zum Großteil nur die problematischen Codestellen, die wir entweder selbst <em>bewusst </em>verursacht haben (als Technische Schulden) oder diejenigen, wo vermehrt Fehler auftreten, die in unseren Zuständigkeitsbereich fallen.</p><p>Das ist genau die beschränkte Information, die uns zur Verfügung steht. Falls Analyse-Tools genau dort Red Flags anzeigen, freuen wir uns über Bestätigung (Confirmation Bias), dem Rest begegnen wir mit Skepsis und Ablehnung (<a href="https://de.wikipedia.org/wiki/Motivated_Reasoning">Motivated Reasoning</a> — unsere Tendenz Widersprechendem besonders kritisch zu begegnet und Gründe dagegen zu finden).</p><h4>Tatsächlich ist eine solche Überzeugung immer falsch!</h4><p>Erstens, weil Fehler nur einer von vielen Indikatoren von Unzulänglichkeiten sind. Beispielsweise sind auch solche Codestellen hoch-problematisch, die zwar bisher keine Fehler verursachen, jedoch viel Entwicklungszeit beanspruchen, weil sie schwer verständlich sind (was unserer Aufmerksamkeit aber häufiger entgeht, weil sie nicht die Prägnanz eines aufgetretenen Fehlers haben).</p><p>Zweitens, weil wir nichts darüber wissen, worüber wir nichts wissen. Mit anderen Worten: Die Abwesenheit unseres Wissens über Probleme ist kein Indikator für die Abwesenheit der Probleme selbst. Entsprechende Erkenntnisse helfen uns aber kaum dabei, unsere Glaubenssätze zu ändern.</p><h4>Solche Selbstüberschätzungen nehmen manchmal abenteuerliche Ausmaße an</h4><p>Vor einiger Zeit kamen wir auf der TNW-Konferenz mit einem technischen Manager ins Gespräch. Er hörte sich unsere Ausführungen über daten-basierte Software-Analysen an, nickte und bezeichnete die Ansätze als interessant. Zumindest für die Zukunft. Denn zur Zeit hätte er noch einen ganz guten Überblick über seine Software. Dazu muss man wissen: der gute Mann hatte Projekte in über 60 Repositories zu verantworten.</p><h3>Erschwert das Verhältnis zwischen Entwicklern und Managern eine realistische Reflexion?</h3><p>Die Erkennung der eigenen Fehlbarkeit ist an sich schon ein sehr schwieriges Unterfangen. Könnte es aber sein, dass die Arbeitsweise in Softwareprojekten diese inhärente Problematik zusätzlich noch verschärft?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ca8Aa4XHIKVlrt6I.png" /></figure><p>Dass Manager einerseits das <em>First-Time-Right-Prinzip</em> in einem für Software unberechtigten Ausmaße voraussetzen und Entwickler somit gezwungen sind, aus Angst vor Benachteiligung, ihre Fehlentscheidungen zu verstecken? Und dass Entwickler andererseits (ebenfalls unberechtigterweise) den Managern stillschweigend jegliches realistische Verständnis für die Unbeständigkeit von architektonischen Entscheidungen absprechen und somit das Vortäuschen von Unfehlbarkeit als die einzig legitime Überlebensstrategie ansehen?</p><p>Unsere Projekterfahrungen sowie Gespräche mit Managern und Entwicklern legen nahe, dass leider beides wahr ist: Das Verhältnis ist tatsächlich in beide Richtungen sub-optimal und häufiger als notwendig von gegenseitigen Schuldzuschreibungen geprägt.</p><p>Dieses Thema ist aber zu umfangreich, um in nur einem Abschnitt abgehandelt zu werden und hat einen separaten Post verdient.</p><h3>Was hilft?</h3><p>Wenn man der Forschung Glauben schenkt, leider nicht allzuviel. Wir haben kaum Möglichkeiten unseren Biases zu entfliehen. Meistens verwenden wir unseren Verstand dazu, die Widersprüche zu unseren Überzeugungen wegzuerklären, anstatt aus ihnen zu lernen.</p><p>Nichtsdestotrotz glaube ich nicht, dass wir ganz chancenlos sind. Es gibt einige Stellschrauben, an denen wir drehen können.</p><h4>1. Wir sollten uns immer wieder bewusst darüber werden, wie unsere Gehirne funktionieren</h4><p>Das ist unsere einzige Chance, sie ab und zu auszutricksen, damit sie das machen, was wir wollen, und nicht umgekehrt. Dazu zwei Buchempfehlungen, die nichts mit Software zu tun haben:</p><ul><li><a href="https://www.amazon.de/Gewalt-Mitgef%C3%BChl-Biologie-menschlichen-Verhaltens/dp/3446256725">ROBERT SAPOLSKY. Gewalt und Mitgefühl: Die Biologie des menschlichen Verhaltens</a></li><li><a href="https://www.amazon.de/Schnelles-Denken-langsames-Daniel-Kahneman/dp/3886808866">DANIEL KAHNEMAN. Schnelles Denken, langsames Denken</a></li></ul><h4>2. Verabschiedet Euch von dem Gedanken, dass Software-Entwickler Künstler sind</h4><p>Dieser Mythos wird leider immer noch viel zu häufig aufgewärmt. Wir sind nicht mehr oder weniger Künstler als Fliesenleger und Versicherungsvertreter. Jede Tätigkeit kann mit einem Grad an Exzellenz ausgeführt werden, der an Kunst grenzt. SW-Entwicklung auch — sie ist diesbezüglich aber keine Ausnahme unter den anderen Berufen.</p><p>Nein, wir sind keine Künstler, <strong>wir haben uns “Software-Engineering” auf die Fahne geschrieben.</strong> Und als Ingenieure müssen wir lernen, weniger Willkür und mehr Disziplin an den Tag zu legen.</p><p>Das bedeutet auch: weniger Vertrauen ins Bauchgefühl und mehr Offenheit für daten-basierte Erkenntnisse, die unsere Meinungen auch widerlegen könnten.</p><p>Das ist der Beitrag, den wir versuchen mit <a href="http://www.capeofgoodcode.com/">Cape of Good Code</a> zu leisten. Und tatsächlich zeigt Daniel Kahneman in seinem Buch, dass einfachste Algorithmen häufig bessere Urteile liefern als Experten.</p><h4>3. Und das allerwichtigste ist: wir sollten nicht der Illusion erliegt, dass eine Erkenntnis erst dann etwas Wert ist, wenn sie zu 100% richtig ist.</h4><p>Kleine Verbesserungen machen einen großen Unterschied. Ein wenig mehr Recht zu haben, ist besser, als komplett im Dunklen zu tappen.</p><p>Robert Sapolsky schreibt dazu im letzten Kapitel seines 800-Seiters:</p><blockquote>“On any big, important issue it seems like 51 percent of the scientific studies conclude one thing, and 49 percent conclude the opposite. And so on. Eventually it can seem hopeless that you can actually fix something, can make things better. <strong>But we have no choice but to try.”</strong></blockquote><p>Und dem gibt es eigentlich nichts hinzuzufügen.</p><p><strong>Dieser Artikel erschien zuerst im Cape of Good Code Blog unter</strong>: <br><a href="https://capeofgoodcode.com/de/2021/05/26/ich-weiss-schon-wo-die-probleme-in-meinem-code-liegen/">https://capeofgoodcode.com/de/2021/05/26/ich-weiss-schon-wo-die-probleme-in-meinem-code-liegen/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9618591583d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/ich-wei%C3%9F-schon-wo-die-probleme-in-meinem-code-liegen-e9618591583d">Ich weiß schon, wo die Probleme in meinem Code liegen</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Already Know Where the Problems Are in My Code]]></title>
            <link>https://medium.com/cape-of-good-code/i-already-know-where-the-problems-are-in-my-code-3c26d6455aa?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/3c26d6455aa</guid>
            <category><![CDATA[psychology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Thu, 27 May 2021 08:55:49 GMT</pubDate>
            <atom:updated>2021-05-28T15:19:38.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*1NNucik0Vij_4Su_n4OMEA.png" /><figcaption>This article is also available in <a href="https://konstantin-sokolov.medium.com/ich-wei%C3%9F-schon-wo-die-probleme-in-meinem-code-liegen-e9618591583d">German</a>.</figcaption></figure><h4>If you’re in the software development industry, you’ve probably heard this phrase more than once. From colleagues, suppliers, customers or business partners. But most often, of course, from yourself. You have said it out aloud, consciously thought it or implicitly assumed it.</h4><p>Why? Because it is what you truly believe. Anything else would be a personal disaster, wouldn’t it? And while I am 100% convinced that I am unfamiliar with the majority of the problems in my code, I too often catch myself thinking the opposite.</p><h3>We Are Never Right</h3><p>Recently I read the highly recommendable article <a href="https://www.nzz.ch/folio/warum-sie-nie-recht-haben-ld.1612968">“Why we believe what we want to believe“</a>. There, Reto U. Schneider summarizes scientific findings from psychology and neurobiology that outline our difficult relationship with our own opinions. In short: our brains always strive to hold on to existing opinions at all costs — regardless of the relationship of those opinions to reality.</p><blockquote>“Opinions are often born not from facts, analysis and intelligence, but from incompetence, hubris and opportunism.”<br> — Reto U. Schneider</blockquote><p><strong>While reading the article, I couldn’t stop thinking about software development</strong>. In the first place probably because I’ve been programming since I was 13 and I think about that stuff way too often anyway. But on the other hand also because writing code has a lot to do with opinions.</p><p>Why? Well, a <strong>piece of code is ultimately just our opinion</strong> about what the best solution to implementing a requirement is. For almost any problem, there are simply too many possible solutions to objectively settle on just one correct one. And so we as software developers constantly produce opinions that we defend “by definition” against everything and everyone (that’s just the way our brains want it).</p><h4>So do opinions only arise from the variety of solutions?</h4><p>Not at all! Incompetence, hubris and opportunism are also commonplace in software development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VI4WcVWkov3Xhuc-.jpeg" /></figure><p>Or don’t we copy-paste half-baked stuff from Stackoverflow, which has the most likes? Decide by gut feeling where test coverage is worthwhile and where not? And sometimes use the latest technology (after 2–3 YouTube videos) that we don’t quite understand, just because it’s “in” at the moment? <strong>Or is it always just the others who do that?</strong></p><p>The insidious thing about opinions is that, contrary to popular belief, they are almost immune to facts. We identify so strongly with our opinions that we perceive a change of opinion as a betrayal of our present and former selves.</p><blockquote>“We don’t have opinions, we are our opinions”<br> — Reto U. Schneider</blockquote><p>The brain automatically tries to avoid this unpleasant emotional state (also called cognitive dissonance) by rearranging the world as it suits itself. These automatisms lead to systematic errors (so-called cognitive distortions) in the perception of reality, to which we are all subject. One of the best known is confirmation bias — the tendency to selectively choose information so that it confirms our opinions (Wikipedia lists more than <a href="https://en.wikipedia.org/wiki/List_of_cognitive_biases">50 further congntive biases</a>).</p><h4>An Example From Software Development Please?</h4><p>Hand on heart: how much time has to pass before you can admit to yourself completely unreservedly and without shame that a piece of code you wrote was total crap? For me it is 1–2 years. Before that, I will be convinced that there were valid reasons to do it that way and not otherwise. Don’t get me wrong, it’s not about deliberate lying. <strong>We just can’t think outside of the box of what we believe to be true</strong> — it’s the only reality accessible to us.</p><p>The same may apply to other professions as well. In software development, however, one very often gets away with it at first and can far too easily create a false sense of security. This only became clear to me towards the end of my studies, when a transistor blew up while I was soldering a circuit. It banged loudly and the worst of all: I had to go to the store and buy a new one.</p><p>When developing software, on the other hand, we can click “compile” &amp; “run” so many times and bend things until they somehow work — it’s just SOFT-ware. Without real fear in the neck, the motivation for mental effort decreases and the brain makes use of this whenever it can: thinking is a calorie eater and brains love to save resources.</p><h4>Actually, Developers Should Have Despaired Long Ago</h4><p>In view of the amount of mistakes and wrong decisions they make. Anyone still having illusions about this should take a look at their bug tracker. What other industry keeps lists of its own failures so carefully? And despite all this, we all consider ourselves infallible experts who know everything about themselves and others.</p><blockquote>“Subjective confidence in a judgment is not a reasoned evaluation of the probability that this judgment is correct.”<br> — Daniel Kahneman.</blockquote><p>This plausible truth is actually an insurmountable hurdle for us: everything we do, we do out of confidence. Because one thing is clear: we do not write sub-optimal code intentionally. We are always convinced of its correctness. Most of the time, we are doomed to trust our intuitions. We are our intuitions. That’s how our life coping works. Otherwise, we would go crazy with constant doubts.</p><h3>As Soon as It Comes to Ourselves, We Talk Bullshit</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*numEl8x7_9md5cEy.jpg" /></figure><p>The number of memes about what all goes wrong in software development is mind-boggling. And so one might be inclined to believe that the industry should be more sensitive to its own error-proneness. But fiddlesticks — apparently developers are only human. We accept and acknowledge with willingness and rational boldness the problems of our industry, our company, our colleagues and our closest friends.</p><p>However, as soon as it comes to ourselves, we start talking bullshit.</p><p>The belief set in the title is the fundamental problem of many misguided developments in software engineering. Another one that we also encounter in one form or another in customer projects and conversations is the following:</p><blockquote>“Analysis tools only confirm what I know anyway, the rest are false positives”</blockquote><p>Well, it is perfectly understandable to believe such a thing about your own code. It is the result of another cognitive bias that Daniel Kahneman calls the <strong>WYSIATI (What You See is All There Is)</strong> principle:</p><blockquote>“You cannot help dealing with the limited information you have as if it were all there is to know. You build the best possible story from the information available to you, and if it is a good story, you believe it. Paradoxically, it is easier to construct a coherent story when you know little […]. Our comforting conviction that the world makes sense rests on a secure foundation: our almost unlimited ability to ignore our ignorance.”<br> — Daniel Kahneman.</blockquote><p>For the most part, we only know the problematic code locations that we have either <em>deliberately</em> caused ourselves (as Technical Debt) or those where errors that fall under our purview occur more frequently. That is exactly the limited information that is available to us.</p><p>If analysis tools show red flags right there, we are happy about confirmation (Confirmation Bias). The rest we meet with skepticism and rejection (<a href="https://de.wikipedia.org/wiki/Motivated_Reasoning">Motivated Reasoning</a> — our tendency to meet contradictions particularly critically and to find reasons against them).</p><h4>In Fact, Such a Belief Is Always Wrong!</h4><p>First, because errors are only one of many indicators of inadequacy. For example, those code locations are also highly problematic that have not yet caused any errors, but require a lot of development time because they are difficult to understand (but which more often escape our attention because they do not have the conciseness of an error that has already occurred).</p><p>Second, because we know nothing about what we don’t know. In other words, the absence of our knowledge about problems is not an indicator of the absence of the problems themselves. Such knowledge, however, hardly helps us to change our beliefs.</p><h4>Such Self-Overestimations Sometimes Take On Adventurous Proportions</h4><p>Some time ago, we got into a conversation with a technical manager at the TNW conference. He listened to what we had to say about data-based software analytics, nodded, and described the approaches as interesting. At least for the future. Because at the moment he would still have quite a good overview of his software. You have to know: the good man was responsible for projects in more than 60 repositories.</p><h3>Does the Relationship Between Developers and Managers Make Realistic Reflection Difficult?</h3><p>Recognizing one’s own fallibility is in itself a very difficult undertaking. But could it be that the way of working in software projects additionally exacerbates this inherent problem?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zUS7t4rE7L12PzFG.png" /></figure><p>That managers on the one hand presuppose the F<em>irst-Time-Right-Principle</em> to an extent that is unjustified for software, and developers are thus forced to hide their wrong decisions for fear of being disadvantaged? And that developers, on the other hand (also unjustifiably) tacitly deny managers any realistic understanding of the volatility of architectural decisions, and thus see pretending infallibility as the only legitimate survival strategy?</p><p>Our project experience, as well as conversations with managers and developers, suggest that, unfortunately, both are true: the relationship is indeed suboptimal in both directions, and more often than necessary characterized by mutual recriminations.</p><p>However, this topic is too extensive to be covered in just one section and deserves a separate post.</p><h3>What Helps?</h3><p>If you believe in research, unfortunately not too much. We hardly have any opportunities to escape our biases. Most of the time, we use our minds to explain away the contradictions to our beliefs instead of learning from them.</p><p>Nonetheless, I don’t think we are completely without a chance. There are some adjusting screws we can tinker with.</p><h4>1. We Should Keep Becoming Aware Of How Our Brains Work</h4><p>That’s our only chance to trick them every now and then into doing what we want them to do, and not the other way around. Here are two book recommendations that have nothing to do with software:</p><ul><li><a href="https://www.amazon.com/Behave-Biology-Humans-Best-Worst-ebook/dp/B01IAUGC5S">ROBERT SAPOLSKY. Behave: The Biology of Humans at Our Best and Worst</a></li><li><a href="https://www.amazon.de/Thinking-Fast-International-Daniel-Kahneman/dp/0374533555">DANIEL KAHNEMAN. Thinking, Fast and Slow</a></li></ul><h4>2. Say Goodbye to the Idea That Developers Are Artists</h4><p>Unfortunately, this myth is still rehashed far too often. We are no more or less artists than tile setters and insurance agents. Any activity can be performed with a level of excellence that borders on art. Software development too — but it is no exception among other professions in this regard.</p><p>No, we are not artists, <strong>we are committed to “software engineering”</strong>. And as engineers, we have to learn to be less arbitrary and more disciplined.</p><p>This also means: less trust in gut feeling and more openness to data-based findings that could also disprove our opinions.</p><p>That’s the contribution we’re trying to make at <a href="http://www.capeofgoodcode.com/">Cape of Good Code</a>. And indeed, Daniel Kahneman shows in his book that the simplest algorithms often provide better judgments than experts.</p><h4>3. And Most Importantly, We Should Not Succumb to the Illusion That a Finding Is Only Worth Something if It Is 100% Correct</h4><p>Small improvements make a big difference. Being a little more right is better than groping completely in the dark.</p><p>Robert Sapolsky writes about this in the last chapter of his 800 pages:</p><blockquote>“On any big, important issue it seems like 51 percent of the scientific studies conclude one thing, and 49 percent conclude the opposite. And so on. Eventually it can seem hopeless that you can actually fix something, can make things better. <strong>But we have no choice but to try.”</strong></blockquote><p>And there is actually nothing to add to this.</p><h3>Resources</h3><ul><li><a href="https://www.nzz.ch/folio/warum-sie-nie-recht-haben-ld.1612968">RETO U. SCHNEIDER. Why we believe what we want to believe</a></li><li><a href="https://www.amazon.com/Behave-Biology-Humans-Best-Worst-ebook/dp/B01IAUGC5S">ROBERT SAPOLSKY. Behave: The Biology of Humans at Our Best and Worst</a></li><li><a href="https://www.amazon.de/Thinking-Fast-International-Daniel-Kahneman/dp/0374533555">DANIEL KAHNEMAN. Thinking, Fast and Slow</a></li><li><a href="https://en.wikipedia.org/wiki/List_of_cognitive_biases">Wikipedia. List of cognitive biases</a></li><li><a href="https://de.wikipedia.org/wiki/Motivated_Reasoning">Wikipedia. Motivated Reasoning</a></li></ul><p><strong>This article first appeared on the Cape of Good Code blog at:<br></strong><a href="https://capeofgoodcode.com/2021/05/27/i-already-know-where-the-problems-are-in-my-code/">https://capeofgoodcode.com/2021/05/27/i-already-know-where-the-problems-are-in-my-code/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c26d6455aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/i-already-know-where-the-problems-are-in-my-code-3c26d6455aa">I Already Know Where the Problems Are in My Code</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Due Diligence — Focus on Contributors and Their Cooperation]]></title>
            <link>https://medium.com/cape-of-good-code/software-due-diligence-focus-on-contributors-and-their-cooperation-784125dd9129?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/784125dd9129</guid>
            <category><![CDATA[due-diligence]]></category>
            <category><![CDATA[mergers-and-acquisitions]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Egon Wuchner]]></dc:creator>
            <pubDate>Fri, 21 May 2021 09:42:32 GMT</pubDate>
            <atom:updated>2021-05-21T09:45:07.931Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*BLmObSRDyAe9xb2L.jpg" /></figure><h3>Software Due Diligence — Focus on Contributors and Their Cooperation</h3><p>This article is also available in <a href="https://medium.com/cape-of-good-code/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus-1911cb2152da">German</a>.</p><h3>Summary</h3><ul><li>The success of a software company takeover depends to a large extent on the retention of key developers.</li><li>The DETANGLE® Software Analysis Suite identifies different groups of key developers.</li><li>The acquisition risk decreases if the investor can conceive measures at an early stage to retain these employees.</li><li>The tool also analyses the entire effort and knowledge distribution in the development team. The optimisation of knowledge distribution enables quality and efficiency improvements.</li><li>An optimised knowledge distribution also reduces the dependency on individual persons.</li></ul><h3>Introduction</h3><p>Software is a product that must be able to adapt quickly to rapidly changing market/user requirements with little effort. It is therefore clear that both, qualified developers and highly effective working methods, represent a considerable part of the company’s value. However, developers are also “walking assets”. They can decide at any time to be unavailable to the project at short notice. Such dependencies or, in this context, know-how deficiencies in individual teams should be identified and assessed as significant risks for an investor prior to the investment decision.</p><p>We have already addressed the topic of software quality in a due diligence in the last article: <a href="https://capeofgoodcode.com/2021/04/29/avoid-pitfalls-in-software-due-diligence/">Avoid pitfalls in a software due diligence</a>.</p><h3>Why is it important to analyse developers and development methods?</h3><p>Identifying key contributors and also the code areas that have been worked on exclusively by one developer are prerequisites for being able to assess the risk to successfully developing the software further.</p><p>Questions like the following should be asked and can also be answered with the necessary depth within the tight time frame of a due diligence:</p><ol><li>Who are the key developers and why?</li><li>Does the skill/knowledge distribution between the project contributors correspond to the requirements of the project/product?</li><li>Is the development load evenly distributed?</li></ol><p>An automated analysis of knowledge and cooperation patterns by DETANGLE® provides data-based answers to such questions.</p><h3>Does losing a top developer potentially bring down a project?</h3><p>At first glance, it only seems advantageous to have a few star developers in the team. Retrospectively, that may be true, but an investor buys and pays for the future. Software development is teamwork. If these stars represent islands of knowledge and develop and maintain important parts of the code alone, then these employees also represent a risk, because the further development of the software depends on them staying in the project.</p><blockquote>“more than 70% of projects suffer from a bus factor of 1.”<br><a href="https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html"> — THE BUS FACTOR — WHY YOUR ‘BEST’ DEVELOPER IS YOUR BIGGEST PROBLEM [1]</a></blockquote><p>This means that only one key developer has to leave the project to seriously jeopardise the further development of the software!</p><h3>How can we identify the relevant contributors?</h3><p>So who are the real key developers and how can they be objectively identified? Gut feeling is a poor guide. For example, quiet team members can be overlooked who are doing a top job without a fuss, in addition to sharing their knowledge and also making very few mistakes.</p><p>Basically, there are two basic types of relevant developers.</p><ol><li><strong>Soloists</strong>: These are developers who are islands of knowledge and prefer to work alone. They often show a high work output. However, these knowledge islands must not get out of hand and should not remain as such for too long.</li><li><strong>Team stars</strong>: They share their knowledge with other developers in addition to their “individual work”. These are also very productive, but bring the overall team performance forward and reduce the risk of becoming dependent on individual soloists.</li></ol><p>With DETANGLE® it is easy to identify both groups of key developers and their bus factor. We at Cape of Good Code have developed metrics and KPIs for this, which DETANGLE® derives directly from the history of the code in the code repository, and thus provide objective and comprehensible results. These analyses are only supplemented with a few short interviews to round off the picture. The risk of dependencies becomes thus transparent. This gives you the chance to work out concepts in time to keep these top performers in the company after the change of ownership. If this seems impossible, you need to check whether the risk does not represent a red flag for the transaction.</p><h3>How to measure the distribution of knowledge in the team?</h3><p>Another important aspect of the risk assessment is the distribution of knowledge and workload in current projects. To gain more insight, it is part of our software due diligence investigation to measure and visualise whether these knowledge islands are compensated by knowledge exchange and thus dissolved in the medium term.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*GgUkPlMsino_maO2OfHzsQ.png" /><figcaption>Distribution of knowledge and development effort</figcaption></figure><p>The figure shows as an example a visualisation of the measurement results from an open source project after a DETANGLE® analysis. It is clearly visible that there is a significant section of the code where only one key developer was involved (“knowledge island”). If this employee drops out, and if his work is also poorly documented, it is hard to continue the development with normal effort. There is also an area (“knowledge tangle”) where many team members create code, but no one is obviously in charge (see also our blog on “Cooperation and Knowledge Sharing for Remote Agile Development” at [2]). According to our measurements we expect many bugs in this part of the code. Finally, however, a good example (“knowledge sharing”) can be seen where one developer dominates but shares a significant part of the work with two other developers.</p><h3>Take Aways</h3><p>A software company is a knowledge organisation. Especially in smaller software companies, employees are therefore the most valuable but also the riskiest assets. We strongly recommend that this risk be professionally analysed in the due diligence process.</p><p>Cape of Good Code has developed an analytical, software-based approach to identify key employees, skill and know-how risks in a differentiated and comprehensive manner. This allows an investor to plan leadership and action priorities from Day 1 (acquisition day) in a timely manner and implement them immediately.</p><h3>Frequently Asked Questions (FAQs)</h3><ol><li><strong>How can you be sure that there is no uncontrolled data and IP leakage when examining the code?<br></strong>The DETANGLE® analysis software is installed, configured and executed on a machine of the company infrastructure. All analysis results remain on one computer. Remote access to this computer can be encrypted and secured via a VPN connection.</li><li><strong>How much effort does a Software Due Diligence imply?<br></strong>We distinguish between Red Flag Due Diligence, which takes a few days (3–7 days depending on the system size, complexity and scope of the report) and a Deep Dive Analysis, which takes at least 10 days.<br>Red Flag Due Diligence focuses on a few predefined topics and examines these topics for critical risks (red flags). It is usually carried out when there are still many investors in the running and it is not certain whether one will be invited to final purchase negotiations. The deep dive analysis goes much deeper and also provides indications of priorities after the takeover and, if necessary, initial estimates of the effort required to address problematic aspects. This level of detail makes sense if the software is a very important asset for the company and you are already negotiating exclusively with the seller.</li><li><strong>Which languages can be analysed with the DETANGLE Analysis Suite?<br></strong>With DETANGLE®, all common programming languages can be analysed without restrictions.</li></ol><p><strong>This article first appeared on the Cape of Good Code blog at:<br></strong><a href="https://capeofgoodcode.com/2021/05/17/software-due-diligence-focus-on-contributors-and-their-cooperation/">https://capeofgoodcode.com/2021/05/17/software-due-diligence-focus-on-contributors-and-their-cooperation/</a></p><h3>Links</h3><p>[1] Why5, “THE BUS FACTOR — WHY YOUR ‘BEST’ DEVELOPER IS YOUR BIGGEST PROBLEM”, <a href="https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html">https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html</a></p><p>[2] Cape of Good Code, “Cooperation and Knowledge Sharing for Remote Agile Development”, <a href="https://capeofgoodcode.com/de/2020/06/01/kooperation-und-knowledge-sharing-fuer-agile-remote-entwicklung/">https://capeofgoodcode.com/2020/06/01/cooperation-and-knowledge-sharing-for-remote-agile-development/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=784125dd9129" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/software-due-diligence-focus-on-contributors-and-their-cooperation-784125dd9129">Software Due Diligence — Focus on Contributors and Their Cooperation</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Due Diligence — Entwickler und ihre Zusammenarbeit im Fokus]]></title>
            <link>https://medium.com/cape-of-good-code/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus-1911cb2152da?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/1911cb2152da</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[due-diligence]]></category>
            <category><![CDATA[mergers-and-acquisitions]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Egon Wuchner]]></dc:creator>
            <pubDate>Fri, 21 May 2021 09:25:29 GMT</pubDate>
            <atom:updated>2021-05-21T09:44:09.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zNOAG5SCEs6JMJbK.jpg" /></figure><h3>Software Due Diligence — Entwickler und ihre Zusammenarbeit im Fokus</h3><p>Dieser Artikel ist auch auf <a href="https://medium.com/cape-of-good-code/software-due-diligence-focus-on-contributors-and-their-cooperation-784125dd9129">Englisch</a> verfügbar.</p><h3>Zusammenfassung</h3><ul><li>Der Erfolg einer Übernahme eines Softwareunternehmens hängt im hohem Maße vom Verbleib der wichtigsten Entwickler ab.</li><li>Die DETANGLE® Software Analyse Suite identifiziert dabei unterschiedliche Gruppen an Schlüsselentwicklern.</li><li>Das Akquisitionsrisiko sinkt, wenn der Investor frühzeitig Maßnahmen konzipieren kann, um diese Mitarbeiter zu binden.</li><li>Das Tool analysiert auch die gesamte Aufwands- und Wissensverteilung im Entwicklungsteam. Die Optimierung der Wissensverteilung ermöglicht Qualitäts- und Effizienzverbesserungen.</li><li>Eine optimierte Wissenverteilung vermindert auch die Abhängigkeit von einzelne Personen.</li></ul><h3>Einführung</h3><p>Software ist ein Produkt, das sich mit geringem Aufwand schnell an die sich rasch ändernden Markt-/Benutzeranforderungen anpassen können muss. Damit ist klar, dass sowohl qualifizierte Entwickler, als auch hoch entwickelte Arbeitsmethoden einen beträchtlichen Teil des Unternehmenswertes darstellen. Entwickler sind aber auch „walking assets“. Sie können jederzeit entscheiden, dem Projekt kurzfristig nicht mehr zur Verfügung zu stehen. Solche Abhängigkeiten oder in diesem Zusammenhang auch Knowhow-Defizite in einzelnen Teams sollten als erhebliche Risiken für einen Investor vor der Investitionsentscheidung festgestellt und beurteilt werden.</p><p>Das Thema der Software-Qualität in einer Due Diligence haben wir bereits im letzten Artikel beleuchtet: <a href="https://medium.com/cape-of-good-code/meiden-sie-fallstricke-in-einer-software-due-diligence-a77b2edd895c"><strong>Meiden Sie Fallstricke in einer Software Due Diligence</strong></a><strong>.</strong></p><h3>Warum ist es wichtig Entwickler und Entwicklungsmethoden zu analysieren?</h3><p>Die Identifikation von Schlüsselentwicklern und auch der Codebereiche, die ausschließlich von einem Entwickler bearbeitet wurden, sind Voraussetzungen, um das Risiko für eine erfolgreiche Weiterentwicklung der Software einschätzen zu können.</p><p>Fragen wie die folgenden sollten gestellt werden und können auch im engen Zeitrahmen einer Due Diligence mit der nötigen Tiefe beantwortet werden:</p><ol><li>Wer sind die wichtigsten Entwickler und warum?</li><li>Entspricht die Skill-/Wissensverteilung zwischen den Projektmitgliedern den Anforderungen des Projekts/Produkts?</li><li>Ist die Entwicklungslast gleichmäßig verteilt?</li></ol><p>Eine automatisierte Analyse der Wissens- und Kooperationsmuster durch DETANGLE® liefert daten-basierte Antworten auf solchen Fragen.</p><h3>Kann der Verlust eines Top Entwicklers ein Projekt zu Fall bringen?</h3><p>Auf den ersten Blick scheint es nur vorteilhaft zu sein einige Star-Entwickler im Team zu haben. Retrospektiv mag das stimmen, aber ein Investor kauft und zahlt für die Zukunft. Softwareentwicklung ist nunmal Teamwork. Wenn diese Stars Wissensinseln darstellen und alleine wichtige Code-Anteile entwickeln und warten, dann stellen diese Mitarbeiter auch ein Risiko dar, weil von deren Verbleib die Weiterentwicklung der Software abhängig ist.</p><blockquote>“mehr als 70% der Projekte leiden unter einem Bus Factor von 1.” -- <a href="https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html">THE BUS FACTOR — WHY YOUR ‘BEST’ DEVELOPER IS YOUR BIGGEST PROBLEM [1]</a></blockquote><p>Das heißt, dass nur ein Schlüsselentwickler das Projekt verlassen muss, um die Weiterentwicklung der Software ernsthaft zu gefährden!</p><h3>Wie kann ich die relevanten Entwickler identifizieren?</h3><p>Wer sind also die wirklichen Schlüsselentwickler und wie kann man sie objektiv identifizieren? Das Bauchgefühl ist ein schlechter Ratgeber. Zum Beispiel können stille Teammitglieder übersehen werden, die unaufgeregt eine Top-Arbeit leisten, dazu noch ihr Wissen teilen und auch nur sehr wenige Fehler machen.</p><p>Grundsätzlich gibt es zwei Grundtypen von relevanten Entwicklern.</p><ol><li><strong>Solisten</strong>: Das sind Entwickler, die Wissensinseln darstellen und am liebsten allein arbeiten. Sie weisen oft eine hohe Arbeitsleistung aus. Diese Wissensinseln dürfen aber nicht überhand nehmen und sollten nicht zu lange als solche bestehen bleiben.</li><li><strong>Teamstars</strong>: Sie teilen ihr Wissen mit anderen Entwicklern zusätzlich zu Ihrer “Einzelarbeit”. Diese sind ebenfalls sehr produktiv, bringen aber insgesamt die Teamleistung nach vorne und reduzieren das Risiko von einzelnen Solisten abhängig zu werden.</li></ol><p>Mit DETANGLE® ist es einfach beide Gruppen von Schlüsselentwicklern als auch deren Bus Factor zu identifizieren. Wir bei Cape of Good Code haben dafür Metriken und KPIs entwickelt, die bei der Analyse direkt aus der Historie des Codes im Code-Repository abgeleitet werden und damit objektive und nachvollziehbare Ergebnissen ermöglichen. Ergänzt werden diese Analysen nur noch mit einigen kurzen Interviews, um das Bild abzurunden. Das Risiko von Abhängigkeiten wird damit transparent. Damit ergeben sich Chancen, rechtzeitig Konzepte auszuarbeiten, um diese Leistungsträger nach dem Eigentümerwechsel im Unternehmen zu halten. Erscheint dies unmöglich, wäre zu prüfen, ob das Risiko nicht ein Redflag für die Transaktion darstellt.</p><h3>Wie kann die Wissensverteilung im Team gemessen werden?</h3><p>Ein weiterer wichtiger Aspekt bei der Risikobeurteilung im Bereich Software-Engineering ist die Verteilung des Wissens und der Arbeitslast in den aktuellen Projekten. Um mehr Einblick zu bekommen, ist es Teil unserer Software Due Diligence Untersuchung, zu messen und zu visualisieren, ob diese Wissensinseln durch Wissensaustausch kompensiert und damit mittelfristig aufgelöst werden.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IxaldiSd5VOycxEil16cAA.png" /></figure><p>Das Bild zeigt als Beispiel eine Visualisierung der Messergebnisse nach einer DETANGLE® Analyse aus einem Open-Source-Projekt. Es ist deutlich zu erkennen, dass ein signifikanter Code-Abschnitt existiert, bei dem nur ein Schlüsselentwickler beteiligt war (“Wissensinsel”). Fällt dieser Mitarbeiter aus und hat seine Arbeit ggfs. auch noch schlecht dokumentiert, läßt sich der entsprechende Code nicht mehr mit normalem Aufwand weiterentwickeln. Es ist auch ein Bereich (“Wissensknäuel”) erkennbar, wo viele Teammitglieder Code erstellen, aber keiner offensichtlich die Verantwortung hat (s. auch unseren Blog zu <a href="https://capeofgoodcode.com/de/2020/06/01/kooperation-und-knowledge-sharing-fuer-agile-remote-entwicklung/">“Kooperation und Knowledge Sharing für Agile Remote Entwicklung [2]”</a> ). Hier ist mit vielen Bugs zu rechnen. Schließlich zeigt sich aber auch ein gutes Beispiel („Wissensausgleich“), in dem zwar ein Entwickler dominiert, dieser sich aber einen bedeutenden Teil der Arbeit mit zwei anderen Entwicklern teilt.</p><h3>Fazit</h3><p>Ein Softwareunternehmen ist eine Wissens-Organisation. Insbesondere in kleineren Softwareunternehmen sind die Mitarbeiter somit die wertvollsten aber auch die riskantesten Assets. Wir empfehlen dringend, dieses Risiko in der Due Diligence professionell zu analysieren.</p><p>Cape of Good Code hat einen analytischen, softwaregestützten Ansatz entwickelt, um Schlüsselmitarbeiter sowie Skill- und Knowhow-Risiken differenziert und umfassend zu identifizieren. Damit kann ein Investor die Führungs- und Handlungsprioritäten ab Day 1 (Tag der Übernahme) zeitig planen und unmittelbar umsetzen.</p><h3>Frequently Asked Questions (FAQs)</h3><ol><li><strong>Wie können Sie sicher sein, dass bei der Untersuchung des Codes nicht unkontrolliert Daten und IP abfließen?<br></strong>Die DETANGLE® Analyse Software wird auf einem Rechner des Unternehmens/Kunden installiert, konfiguriert und ausgeführt. Dabei bleiben alle Analyseergebnisse auf einem Rechner. Ein Remote-Zugang zu diesem Rechner kann über eine VPN Verbindung verschlüsselt und gesichert stattfinden.</li><li><strong>Wie aufwändig ist eine Software Due Diligence?<br></strong>Wir unterscheiden zwischen eine Red Flag Due Diligence, die wenige Tage Aufwand benötigt 3–7 Tage (je nach Systemgröße, -Komplexität und Report-Umfang ) und der Deep Dive Analyse, die mindestens 10 Tage in Anspruch nimmt.Die Red Flag Due Diligence fokussiert auf wenige vorher festgelegte Themen und untersucht diese Themen auf kritische Risiken (Red Flags). Sie wird meistens durchgeführt, wenn noch viele Investoren im Rennen sind und nicht sicher ist, ob man zu finalen Kaufverhandlungen eingeladen wird. Die Deep Dive Analyse geht wesentlich tiefer und liefert auch Hinweise zu den Prioritäten nach Übernahme und ggfs auch erste Aufwandsabschätzungen um Probleme zu korrigieren. Diese Detailtiefe ist sinnvoll, wenn die Software einen sehr wesentlichen Wert für das Unternehmen darstellt und man schon exklusiv mit dem Verkäufer verhandelt.</li><li><strong>Welche Programmiersprachen können mit der DETANGLE</strong>®<strong> Analyse Suite untersucht werden?<br></strong>Mit DETANGLE® können alle gängigen Programmiersprachen uneingeschränkt untersucht werden.</li></ol><p><strong>Dieser Artikel erschien zuerst im Cape of Good Code Blog unter</strong>: <a href="https://capeofgoodcode.com/de/2021/05/17/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus/">https://capeofgoodcode.com/de/2021/05/17/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus/</a></p><h3>Links</h3><p>[1] Why5, „THE BUS FACTOR — WHY YOUR ‘BEST’ DEVELOPER IS YOUR BIGGEST PROBLEM“, <a href="https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html">https://www.5whys.com/articles/the-bus-factor-why-your-best-developer-is-your-biggest-probl.html</a></p><p>[2] Cape of Good Code, „Kooperation und Knowledge Sharing für Agile Remote Entwicklung“, <a href="https://capeofgoodcode.com/de/2020/06/01/kooperation-und-knowledge-sharing-fuer-agile-remote-entwicklung/">https://capeofgoodcode.com/de/2020/06/01/kooperation-und-knowledge-sharing-fuer-agile-remote-entwicklung/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1911cb2152da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus-1911cb2152da">Software Due Diligence — Entwickler und ihre Zusammenarbeit im Fokus</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meiden Sie Fallstricke in einer Software Due Diligence]]></title>
            <link>https://medium.com/cape-of-good-code/meiden-sie-fallstricke-in-einer-software-due-diligence-a77b2edd895c?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/a77b2edd895c</guid>
            <category><![CDATA[mergers-and-acquisitions]]></category>
            <category><![CDATA[due-diligence]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Thu, 20 May 2021 11:12:32 GMT</pubDate>
            <atom:updated>2021-05-20T18:59:33.173Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JfCON9DmgNv8vHnL.jpg" /></figure><p>Die Rolle von Software-Assets in M&amp;A-Transaktionen wird immer wichtiger für die Bewertung von Geschäftsrisiken und des kommerziellen oder strategischen Werts des Targets. Der enge Zeitrahmen macht es offensichtlich unumgänglich, einen tool-gestützten Ansatz für die Bewertung des Technologiestatus und der inhärenten Risiken anzuwenden. Es setzt sich zunehmend die Erkenntnis durch, dass die weit verbreiteten statischen Code-Analyse-Tools im Vergleich zur Analyse der Historie des Codes und seiner Änderungen nicht die notwendige Tiefe an Einsichten für den Investor liefern können.</p><p>In diesem Blog erläutern wir, warum die Identifizierung von relevantem Code und potenziell risikobehafteten Hotspots, die einer Verbesserung bedürfen, <strong>mehr als nur Codequalität und hohe Code-Änderungsraten berücksichtigen</strong> muss. Im Beitrag <a href="https://capeofgoodcode.com/de/2021/05/17/software-due-diligence-entwickler-und-ihre-zusammenarbeit-im-fokus/">Software Due Diligence — Entwickler und ihre Zusammenarbeit im Fokus</a> konzentrieren wir uns auf den menschlichen Faktor und gehen darauf ein, warum die Identifizierung der Key-Entwickler über Wissensinseln hinausgehen muss.</p><h3>Einführung</h3><p>Erst kürzlich haben einige Publikationen einen tool-basierten Ansatz vorgestellt und einige wertvolle Erkenntnisse geliefert:</p><ol><li>Code ist nur an relevanten Stellen verbesserungswürdig. Es ist weder möglich (aufgrund von Budget- und Kapazitätsbeschränkungen), noch notwendig, die „Qualität“ über die gesamte Codebasis zu verbessern.</li><li>Softwaresysteme sind oft zu kompliziert, um die Analyse nur auf den letzten Code-Snapshot zu stützen und daraus verlässliche Schlüsse abzuleiten.</li><li>Der menschliche Faktor der Software-Entwicklung, wie die Identifizierung von Key Entwicklern, muss Teil der tool-basierten Risikoanalyse und möglicher Konzepte zur Risikominderung sein. Es scheint großartig zu sein, ein paar Star Entwickler zu haben, aber wenn sie zu Wissensinseln werden, d.h. zu Mitwirkenden, die ausschließlich alleine Teile des Codes erstellen und pflegen, können sie leicht zu einem ernsthaften Risiko werden, anstatt ein Aktivposten zu sein.</li><li>Die Software Due Diligence muss auf Informationen basieren, die aus der Code-Basis selbst und den historischen Daten aus den verwendeten Entwicklungswerkzeugen wie einem Code-Repository abgeleitet werden, statt nur auf Funktionsprüfungen, Code-Reviews und ein paar Interviews.</li></ol><p>Allerdings birgt auch die Analyse historischer Daten des Codes einige Fallstricke und führt potenziell zu einfachen Fehlern, denen man sich beim Ziehen von Schlussfolgerungen bewusst sein muss.</p><p>Wir werden darlegen, wie wir bei Cape of Good Code diese Fallstricke vermeiden, indem wir unsere proprietäre DETANGLE®-Analyse-Suite als Teil unserer Software-Due-Diligence-Methodik einsetzen.</p><h3>Hotspots — Von KPIs zur Code- UND Architekturqualität</h3><p>Auf den ersten Blick sehen Code-Bereiche, die sich häufig ändern, wie gute Kandidaten aus, die mit Priorität analysiert werden sollten. Die Analyse der Änderungshistorie (manchmal auch „verhaltensbasierte Codeanalyse“ genannt) und die Untersuchung der Codequalität von sich häufig änderndem Code scheint also der richtige Ansatz anstelle der statischen Codeanalyse zu sein. Aber klingt das nicht wie ein Henne-Ei-Problem: <strong>verursacht schlechte Codequalität die hohen Änderungsraten oder führen alle Änderungen zu schlechter Codequalität? </strong>Es ist schwer, den Unterschied festzustellen. Außerdem stellt sich die Frage, ob viele Änderungen durch die Entwicklung neuer Funktionen oder durch Wartungsarbeiten wie Bugfixing entstehen?</p><p>Was ist also eine bessere Vorgehensweise? Die Messung des Wartungsaufwands von Code-Bereichen würde es ermöglichen, die potenziellen Auswirkungen schlechter Code-Qualität aufzudecken. Im Allgemeinen schlagen wir vor, geschäftsrelevante KPIs als Ausgangspunkt zu verwenden, um riskante Hotspots des Codes zu identifizieren und eine genauere Ursachenanalyse durchzuführen.</p><p>Ein wichtiger KPI ist die <strong>Maintenance Effort Ratio</strong>. Es zeigt den Anteil des Wartungsaufwands im Verhältnis zum gesamten Entwicklungsaufwand. Es misst den Wartungsaufwand, indem geänderte Codezeilen über das Code-Repository intelligent gewichtet und aggregiert und sie mit Fehlern in Verbindung bringt, die von Issue-Trackern erfasst wurden.</p><p>Die Maintenance Effort Ratio wird kritisch (und damit ein Risiko), wenn sie einen bestimmten Schwellenwert zwischen 20 und 40% überschreitet, da diese Entwicklungskapazität sicherlich nicht für die wertschöpfende Entwicklung neuer Features verwendet wird. Dies kann auf ausgewählte Code-Bereiche heruntergebrochen werden.</p><p>Für die weitere Untersuchung von Code-Qualitätsmetriken (wie die kognitive Komplexität, Code-Duplikationen und potenzielle Bugs) können statische Code-Analyse-Tools in unsere DETANGLE®-Plattform integriert werden, um auch diese Metriken zu nutzen. Als erste Schlussfolgerung können anschließend alle Bereiche mit schlechter Codequalität ABER geringem Wartungsaufwand ignoriert werden.</p><p>Hinzu kommt, dass in der Realität bei weitem nicht alle Wartungs-Hotspots mit schlechter Codequalität zusammenhängen. Hier ist eine weitere Analyse erforderlich. <strong>Unserer Erfahrung nach ist die Architekturqualität viel wichtiger als die Codequalität</strong>, wenn wir über qualitativ hochwertige Software mit einem langen nützlichen Lebenszyklus sprechen. Unsere DETANGLE® Architektur-Qualitätsmetriken der Feature-Kopplung und Kohäsion korrelieren häufig mit dem Auftreten von hohem Wartungsaufwand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/604/1*gzG7hTSN52sYmN8fi9sCDw.png" /><figcaption>Die Abbildung visualisiert die Feature-Kopplung der deutschen Corona-Warn-App über den Code. Die benannten Bögen stellen Features der Risikoberechnung dar, die mit Version 1.9 eingeführt wurden. Diese sind untereinander lokal gekoppelt, wie ihre Verbindungen zeigen. Außerdem zeigen diese Features auch eine hohe globale Kopplung zu allen nicht verwandten Features.</figcaption></figure><h3>Feature Effort Effectiveness</h3><p>Deshalb haben wir einen weiteren KPI eingeführt, der die Leichtigkeit des Hinzufügens neuer Funktionen erfasst. Wir nennen das KPI den <strong>Feature Effort Effectiveness Index</strong>. Die Architektur-Qualitätsmetriken der Feature-Kopplung und Kohäsion zeigen mit hoher Genauigkeit, dass eine schlechte Architektur zu einer geringeren Feature Effort Effectiveness führt, was bedeutet, dass das Hinzufügen neuer Features mehr Kapazität und mehr Budget absorbiert, als es sollte.</p><h3>Schlussfolgerung</h3><p>Die Software Due Diligence profitiert von einem tool-basierten Ansatz mit klar definierten KPIs. Er hilft, in relativ kurzer Zeit einen tiefen und plausiblen Einblick in die Risiken für die M&amp;A-Transaktion zu erhalten. Allerdings müssen diese Tools mit Fingerspitzengefühl und Erfahrung eingesetzt werden, um falsche oder unvollständige Schlussfolgerungen zu vermeiden.</p><p>So können beispielsweise Teile des Codes weniger wartungsintensiv sein, als es die Codequalität nur vermuten lässt. Im Gegensatz dazu ist die Architekturqualität eine zuverlässige Ursache für Hotspots in der Feature-Entwicklung. Die wichtigsten Fallstricke zu kennen und in der Lage zu sein, sie bei einer Due-Diligence-Untersuchung zu vermeiden, ist unerlässlich, um die richtigen Schlussfolgerungen aus einem tool-basierten Ansatz zu ziehen.</p><p><strong>Dieser Artikel erschien zuerst im Cape of Good Code Blog unter</strong>: <a href="https://capeofgoodcode.com/de/2021/04/29/meiden-sie-fallstricke-in-einer-software-due-diligence/">https://capeofgoodcode.com/de/2021/04/29/meiden-sie-fallstricke-in-einer-software-due-diligence/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a77b2edd895c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/meiden-sie-fallstricke-in-einer-software-due-diligence-a77b2edd895c">Meiden Sie Fallstricke in einer Software Due Diligence</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Issue Types Great Again]]></title>
            <link>https://medium.com/cape-of-good-code/make-issue-types-great-again-637f7a6f72a7?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/637f7a6f72a7</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[quality-assurance]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 08:32:08 GMT</pubDate>
            <atom:updated>2020-05-24T21:49:01.606Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Make Issue Types Great Again" src="https://cdn-images-1.medium.com/max/1024/1*AkxyEfvcZXE1UAr_o7I9aw.png" /></figure><h3>Introduction in a Nutshell</h3><p>Do you exactly know which issues types to use for your issue tracker and when to use which? Does everyone in your project know about your approach? Are issue types always used consistently in your project? Should you use Technical User Stories or not? Do you use issue types at all? Do you find it reasonable that different issue trackers have such different default issue types? Have you ever thought about issue types at all?</p><p>If your answer to one or more of the questions above is “no”, or “don’t know” or “I don’t care”, you are not alone, and this post might be of interest to you. It reveals the chaos behind the often mindless, uncertain and inconsistent usage of issue types in many software projects. It shows why a conscious and purposeful application of issue types can lead to better code comprehensibility as well as better quality monitoring and decision making in projects. It suggests a minimal set of reasonable issue types along with understandable rules for their usage. In particular, it reasons why a separate issue type is needed to deal with technical debt.</p><p>If you just believe in summaries or are short of time, but are eager to follow the recommendations here and want to see what happens, just feel free to switch to the section <strong>Minimal Set of Needed Issue Types</strong> and configure your issue tracker accordingly. However, if you are ready for the whole story, you’re welcome to start the journey right here.</p><p><em>Remark</em>: I am aware of the difference between “refactoring” and “re-engineering”. However, for the sake of simplicity, I will use the term “refactoring” as a generic term for both.</p><h3>Bad State of the Art — Anarchy of Issues</h3><p>In our consulting projects on software quality we often discover a similar situation: neither developers nor architects or responsible project managers have a clear picture of how much effort is spent on feature implementations, bug-fixing or refactorings in the project. As a consequence, it becomes almost impossible for them to reliably measure the effects of improvement activities and efficiently handle technical debt. There is often great uncertainty regarding the sense and benefits of refactorings executed in the past. When we ask, whether such improvements increased the feature throughput or reduced the number of bugs or any maintenance effort, the answers are often very vague. The information is mainly based just on gut feelings and memories of people who happened to be involved in the corresponding activities.</p><p>In some cases, project stakeholders are not even sure which entities in their issue trackers (or project management tools) represent product features. In other cases, developers are not sure about what to consider as a bug: just errors popping up at customers or also internal problems discovered by themselves or their peers. However, the truth is that in almost all projects, architectural improvements are not captured at all. In the best cases, they are discussed in meetings involving decision-makers and sparsely documented in wikis or other unstructured documents. More often such issues exist just in the heads of developers. The corresponding work is not captured in issue trackers and often is not explicitly visible in commits as if it’s something that is not part of the development process.</p><p>This lack of structured information about significant development activities makes it hard to make the right decisions about how to spend the project budget. And it ultimately degrades the overall software quality.</p><p>According to our observations, one of the reasons for this situation is the uncertainty regarding the correct and consistent usage of issue trackers and issue types. There are just no universally understandable and pragmatic rules.</p><p>This contribution is an attempt to identify and document such rules.</p><h4><strong>Standard Issue Types of Issue Trackers</strong></h4><p>If you look at the standard issue types of popular issue trackers (sketched in the table below), you will notice that there is a considerable variety of types for functional issues. These are issues representing changes related to product features, aka business functionality. Jira has even four of such feature-related types of different granularity (Epic, New Feature, User Story and Improvement). There is also some variation of types representing work related to errors. Usually, this type is just called “Bug”. YouTrack is a real exception by suggesting (seriously?!) three different issue types for errors: Bug, Cosmetic and Exception.</p><figure><img alt="Default issue types of some popular issue trackers" src="https://cdn-images-1.medium.com/max/1024/1*HlKcCG18Gt-qcxPcqV2b5A.png" /><figcaption>Default issue types of some popular issue trackers</figcaption></figure><p>What all popular issue trackers have in common, however, is that all of them lack issue types for technical/architectural work. As if it were something that doesn’t deserve visibility. Admittedly, Azure Boards with its “Architectural” “Value Area” field for User Stories is a well-meant (and not more!) exception — but more about that later (please refer to the section on <strong>Technical (User) Stories</strong>).</p><p>You will now say: Stop! No types for technical work? But that’s exactly what Tasks are for, aren’t they? Well, let’s see.</p><h4>Definitions of “Task”</h4><figure><img alt="Issue type “Task” is often misused in software projects for everything." src="https://cdn-images-1.medium.com/max/300/0*HqxP4fJ0v7_z1vRF.jpg" /></figure><p>This is how a Task is defined by Atlassian in Jira:</p><blockquote>A task represents work that needs to be done<br> — <a href="https://www.jirastrategy.com/questions/different-jira-issue-types">Rachel Wright. Different Jira Issue Types</a> [10]</blockquote><p>If you believe anything more meaningless is not possible (except for issue types representing work that doesn’t need to be done), I can go one further: This is the default description of a Task in the Jira Cloud UI:</p><blockquote>A task that needs do be done<br> — <a href="https://capeofgoodcode.com/wp-content/uploads/2020/05/JiraCloudTask.png">Jira UI Task description</a></blockquote><p>So basically Jira says “a Task is a task”. This is also known as a <a href="https://en.wikipedia.org/wiki/Tautology">tautology — a redundant statement</a> [22]. So the market leader for issue trackers does not tell us what tasks are actually for. Perhaps we can find a more useful definition somewhere else:</p><blockquote>Tasks can include development, testing, and other kinds of work<br> — <a href="https://youtrack-support.jetbrains.com/hc/en-us/articles/115001019644-How-We-Handle-External-Requests-in-YouTrack">Agile process work item types and workflow</a> [11]</blockquote><p>Well, thanks a lot. It’s very reassuring to know that a Task in a software <em>development</em> project may also contain <em>development</em> work. As if the other issue types are not for development. So Microsoft doesn’t have a clear definition for a task either — it’s again a swiss army knife.</p><p>Could it be that tool suppliers are not the right contact to look for such kind of definitions? After all, corresponding tools should be usable with any kind of development process, so that tool suppliers deliberately remain vague and leave it to the respective project to make sense of the issue types?</p><p>Let’s see what Scrum has to say about Tasks:</p><blockquote>The product backlog items may be broken down into tasks by the development team<br> — <a href="https://en.wikipedia.org/wiki/Scrum_(software_development)">Wikipedia. Scrum</a> [20]</blockquote><p>Interesting — Scrum doesn’t say anything about the type of work represented by a task. It regards tasks merely as a means for decomposing and organizing work around functional issues.</p><p>By the way: the <a href="https://www.scrumguides.org/docs/scrumguide/v1/Scrum-Guide-US.pdf">Scrum Guide by Ken Schwaber and Jeff Sutherland</a> [19] doesn’t mention the term “task” at all.</p><h4>Common Usage of Tasks</h4><p>How is it that tasks, despite a lack of clarity about their meaning, are generally associated with technical work? I assume it’s a combination of two aspects.</p><p>Firstly: No matter how you put it, every software project requires technical work to be done. And I mean <em>real</em> technical work, which is<em> not related to any functionality</em>. You guessed it: I’m talking about architectural improvements, re-engineerings, refactorings or cross-cutting infrastructural changes (such as switching to a new framework). And since there are no dedicated issue types for such kind of work, people just use Tasks.</p><p>Secondly: When breaking down User Stories or Features into smaller parts, Tasks may be created which <em>coincidentally</em> have no user visibility — such tasks are considered “technical” work as well.</p><p>Let me explain what I mean by <em>coincidentally</em> and why the tasks in the second case aren’t really technical. The way in which a functional issue is subdivided into Tasks depends on the habits, skills and personal taste of your team members — there are no definite rules, and that’s a good thing because it gives the team the freedom to organize its work in its way.</p><p>Let’s consider two possible Task decompositions of a Feature allowing the user to upload a photo to her profile with the possibility of selecting a region of the photo. The most fine-granular decomposition might require the following logical “pieces of work”:</p><ol><li>Add UI logic to select the image file and display the uploaded photo (i.e. “Upload” button + widget for displaying the image)</li><li>Add UI logic to select a region of the image</li><li>Add Web API for uploading/storing the image in the user’s profile</li><li>Extend backend data model so that photos can be associated with users</li></ol><p>Decomposition 1:</p><ul><li>Task 1.1: Frontend work consisting of the pieces 1 and 2</li><li>Task 1.2: Backend work consisting of the pieces 3 and 4</li></ul><p>Decomposition 2:</p><ul><li>Task 2.1: Upload functionality consisting of the pieces 1, 3 &amp; 4</li><li>Task 2.2: Functionality for selecting a region consisting of piece 2</li></ul><p>The classical frontend-backend-decomposition results in one task with and one task without user visibility, consequently Task 1.2 would be commonly considered “technical”. The <em>equally legitimate </em>second decomposition gets along completely without “technical” tasks because each task affects the UI (i.e. describes a new behavior). That’s weird, isn’t it? For the same feature, we get different amounts of technical work. Can this be true?</p><p>No, obviously it can’t be true. This kind of view on decomposition is not correct. But not because one of the decompositions is right and the other is wrong, it’s rather because there are no real technical tasks here involved at all. The backend work in Task 1.2, which is usually classified as “technical” doesn’t represent a distinct<em> technical concern</em> of the system. It rather represents just an <em>organisational concern</em>. Task 1.2 is just a result of work-sharing, which is independent of categories such as “functional” and “technical”. The entire work associated with the implementation of a specific functionality (Feature/User Story) should be considered functional. There is no value in differentiating like crazy between functional and technical on this lower level. In particular, because it causes confusion and blurs the boundaries between <em>real technical concerns</em> (deserving a distinct issue type) and supporting sub-tasks of parent functional issues that just <em>appear to be technical</em>. At the end of the day, each coding work in itself is technical, so saying that implementing a functional issue results in some “technical” tasks makes really no sense.</p><p>The uncertainty resulting from the lack of standard issue types for technical concerns in popular issue trackers as well as the fuzzy meaning and ambiguous usage of Tasks resulted in the emergence of a somewhat strange entity called <em>Technical User Story </em>(or just <em>Technical Story</em>).</p><h4>Technical (User) Stories</h4><p>Basically, Technical User Stories just represent a distinct issue type (of an issue tracker) to be used for technical work. And as such, in the first place, Technical User Stories are a <em>well-meant attempt</em> to give technical concerns in software projects <em>the visibility they deserve</em> (see for example <a href="https://rgalen.com/agile-training-news/2013/11/10/technical-user-stories-what-when-and-how">“TECHNICAL USER STORIES — WHAT, WHEN, AND HOW?” by Robert Galen</a> [9]).</p><p>Unfortunately, the attempt is not courageous enough: the term “Technical User Story” alone seems like a try to hide technical issues behind functional ones, thus denying them the significance they inherently have. It is quite astonishing: don’t people see the irony behind the term? How did one come up with something so contradictory?</p><p>I think the story goes something like this: User Stories have a brilliant reputation, they are loved by scrum masters, product owners, managers, agile coaches and even customers. User Stories are the heroes of value-driven software development — they alone shoulder the entire business value of software. And so, someone must have thought, what would be more obvious than hiding technical issues under the presentable veil of User Stories. Making them first-class citizens in product backlogs and sprints, just by prepending “User Story” with “technical”. Hopefully, no one will notice.</p><p>However, the trick is pretty obvious. Consequently, quite soon, people realized that Technical User Stories are fraught with certain smells. For example, because it’s extremely frustrating to express technical concerns by using the classic “As a …, I … so that …” template. Either one ends up with monstrosities like:</p><ul><li>“As SYSTEM A, I want … so that SYSTEM B …” (<a href="https://seilevel.com/requirements/user-stories-technical-stories-agile-development-productmanagement">look here</a> [8])</li><li>“As a DEVELOPER, I want to refactor, …”</li><li>“As a TESTER, …”</li></ul><p>or advocates of Technical User Stories argue that it’s OK not to use the classic user story formulation for technical user stories. And they are certainly right but why calling it a User Story then? Technical issues neither have end-users nor do they make up any stories — it’s that simple.</p><p>Moreover, the same advocates contribute to even greater confusion by lumping everything together (like <a href="https://rgalen.com/agile-training-news/2013/11/10/technical-user-stories-what-when-and-how">here</a> [9] and <a href="https://seilevel.com/requirements/user-stories-technical-stories-agile-development-productmanagement">here</a> [8]), when it comes to a definition of Technical User Stories. They suggest that Technical User Stories can be used for handling</p><ul><li><a href="https://de.slideshare.net/Kevlin/inside-requirements">operational requirements</a> [4] (such as performance) OR</li><li><a href="https://de.slideshare.net/Kevlin/inside-requirements">developmental requirements</a> [4] (such as technical debt and refactorings) OR EVEN</li><li>for expressing non-functional aspects which support functional User Stories (such as modifying infrastructure by adding DB tables etc.)</li></ul><p>That’s pretty confusing, and so people <em>legitimately</em> ask about the difference between Technical User Stories and Tasks and question the sense of Technical User Stories. Because of this undifferentiated approach, Technical User Stories ultimately cause more chaos and lack of understanding than they solve real problems.</p><p>Come on folks, we’re all adults. It’s not possible to improve the image of technical concerns in software projects and increase their acceptance by managers and product owners just by masking them as a special kind of User Stories. There are real compelling reasons for considering technical issues (related to technical debt, architectural improvements, refactorings, etc.) as first-class citizens of software projects. Before I get to this point, let me say a few words about the general chaos related to issue types as I see it.</p><h4>Where Does the Chaos Come From?</h4><p>Commonly, issue trackers in software projects are considered only as a kind of feature-rich To-Do list. They are used for keeping track of ongoing and planning of future tasks as well as for collaboration. And from this perspective, there is indeed little point in burdening oneself with different issue types. For the person who creates the tasks or who has to process the tasks, there is no significant difference between bugs and features or other kinds of work — there is just a list of prioritized tasks that need to be done. A bug is not automatically more important than a feature and vice versa, and for expressing “importance”, there are other means in issue trackers than issue types. The same also holds for decomposition and work-sharing — one doesn’t really need a separate issue type, such as Task or Sub-Task, in order to express parent-child relationships between issues as they are already explicitly expressed by the mere presence of the relationships themselves.</p><p>Consequently, people often feel overwhelmed by the number of standard issue types whose purposes and scopes they don’t fully understand. So instead of using issue types with confidence, they are struggling with questions such as</p><ul><li>Should this be a User Story or a Feature?</li><li>Does a Feature consist of multiple User Stories or vice versa?</li><li>When to use Epics?</li><li>What’s the difference between Task and Sub-Task?</li><li>What’s the difference between Task and Technical Story?</li><li>What are Improvements/Enhancements good for?</li><li>Do I need / am I allowed to capture technical concerns?</li><li>What will the project manager think of me?</li><li>Is the coffee break soon?</li></ul><p>And because there is often not a single person in the project who can answer such questions in a consistent way, people start to search the internet, only to find out that</p><ul><li>the only valid answer is, there is no universal answer</li><li>issue types are what you and your team make out of them</li><li>and the like…</li></ul><p>Does that sound familiar? If not, just have a glance on discussions such as <a href="https://community.atlassian.com/t5/Jira-Software-questions/Feature-vs-Task-vs-Story/qaq-p/418930">Feature vs Task vs Story</a> [13] and <a href="https://softwareengineering.stackexchange.com/questions/182158/relationship-between-user-story-feature-and-epic">Relationship between user story, feature, and epic? </a>[14].</p><p>The result of all this confusion is that people reduce the creation of issues to a minimum so as not to make any mistakes. Bugs are getting fixed on the fly as part of functional issues; feature implementations are polluted with cosmetic changes, refactorings disappear completely and so forth. And so, the project is losing valuable information and is getting obfuscated with difficult-to-comprehend code changes.</p><p>Tag-based issue trackers such as those available in GitLab and GitHub steer clear of the problem by not implementing the concept of issue types at all. And while it can indeed save some headache in choosing the correct issue type, such concepts usually don’t lead to more structured and disciplined approaches in projects which are necessary to leverage the full power of issue trackers.</p><h3>Doing it Better — Issue Types That Make Sense</h3><p>To get the most out of issue trackers, we must consider them more than just To-Do lists to be used only for project planning. They have at least two more roles.</p><h4>Issue Trackers as Coding Tools</h4><p>By now, it should have gotten through to the vast majority of developers and project managers how important the correct usage of version control systems is for the overall software quality. How important a clean and structured commit history is. That a single commit should represent only one logical and cohesive change (“atomic” commits). That a commit message should describe the <em>what and why</em> of a commit helping to re-establish the context of a change. That mixing unrelated changes significantly increases the cognitive effort (= <a href="https://www.osnews.com/story/19266/wtfsm/">WTFs per minute</a> [15]) required to <em>understand</em> previous changes and change code again. And that <em>reading and understanding</em> (not writing) code is what developers do most of the time:</p><blockquote>Indeed, the ratio of time spent reading vs writing is well over 10:1<br> — <a href="https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">Robert C. Martin. Clean Code</a> [1].</blockquote><p>And that reducing this reading effort is what counts most for code quality.</p><p>If you don’t know or don’t believe that, you most probably have more significant problems than issue types in your projects. The best would be to start with the basics, such as <a href="https://chris.beams.io/posts/git-commit/">How to Write a Git Commit Message</a> [16] or <a href="https://www.freshconsulting.com/atomic-commits/">DEVELOPER TIP: KEEP YOUR COMMITS “ATOMIC”</a> [17] and return back here later.</p><p>Why do I mention version control systems when we are talking about issue trackers? It is because the two play in the same team and are responsible for the comprehensibility of your code. Version control systems and issue trackers belong inseparably together, and they are literally connected as soon as you start to link commits with issues — being another best practice to follow in every project.</p><figure><img alt="Synergy of issue trackers and version control systems" src="https://cdn-images-1.medium.com/max/1024/0*6_3P9WDdl-Q1bt2C.png" /></figure><p>The synergy of version control systems and issue trackers — also called code traceability — leads to a holistic view in a project, where every code change can be traced back to its ultimate “why” — the issue. And every issue identifies a set of related code changes.</p><p>From this perspective, the same (single responsibility) principles apply to issues as to commits:</p><ul><li>an issue should represent only one logical and cohesive concern</li><li>mixing unrelated changes under the same issue significantly increases the cognitive effort required to understand the corresponding changes</li></ul><p>Nothing is more frustrating and time-robbing than trying to understand a piece of code that has been committed under a particular issue but logically does not belong there. The issue behind a code change represents its rationale — it is the ultimate high-level explanation of the change. As developers, we tend not to doubt such explanations. We try to make sense of the change in the context of this explanation. So if someone claims to do A, but in addition is doing B and C, he’s sabotaging the comprehensibility of everything he’s doing. Mixing unrelated changes under the same issue is like willfully inserting wrong comments into the code — there is hardly a more effective way to obfuscate the sense of code.</p><p>As developers, it is our responsibility always to be <em>aware of the reasons</em> behind code changes. We must be absolutely disciplined in this respect. Otherwise, we’re groping in the dark and wreaking havoc. In this context, <em>issue types are a powerful concept for keeping reasons for code changes apart</em>. They create a mental model in our minds that helps us to reason about the cohesiveness of code changes in the right way. If there is just no issue type for refactorings, the temptation is quite high to obfuscate feature implementations with unrelated code improvements. If there is no issue type for defects, bug fixes will be done on the fly much more often, and so on. And all these spontaneous changes will not only make it difficult to understand the implementation of the “main” issue, but their own reasons will also remain largely undocumented because they won’t be expressed in separate issues. If corresponding concepts are missing, people neither won’t feel that they’re doing anything wrong nor do they have any indications for how to do it right.</p><p>In a nutshell: Code changes have reasons. And these reasons are of different kinds. Not explicitly modelling these kinds as issue types <em>in the right way</em> will significantly increase the probability of chaotic code changes. The existence of issue types forces us to make conscious decisions about what we do. Such decisions are often not trivial, but they are necessary, and they pay off. Sorry, pal, but that’s the way it is.</p><h4>Issue Trackers as Basis for Quality Monitoring</h4><p>A lot has been written about the fact that software architectures don’t represent final solutions but rather solution approaches that need to be continuously adjusted as the project progresses and new requirements come up. Check out <a href="http://sddconf.com/brands/sdd/library/Architecture_with_Agility.pdf">“Architecture with Agility” by Kevlin Henney</a> [3] for a great contribution to this topic. Tom Gilb has boiled it down to the essence:</p><blockquote>Architecture is a hypothesis, that needs to be proven by implementation and measurement.<br> — Tom Gilb</blockquote><p>So basically this means that software architectures evolve within feedback loops — that’s nothing new. However, efficient feedback loops require knowledge to identify existing problems, assess the effects of past measures and to make decisions for the future. In many projects, such knowledge is based just on gut feelings to a great extent. This is a quite weak form of measurement. If we are honest, it’s not measurement at all. In this context, issue trackers can provide valuable data which can be used for measurements that matter.</p><p>The “behavior” of software architecture with respect to feature implementations is the ultimate benchmark for the quality of this architecture (just paraphrasing Tom Glib). I.e., the effort required to introduce new features into a system with a “good” architecture is approximately proportional just to the complexity of the features and not to the complexity of the whole system.</p><p>To put it in simple words: a good architecture allows for a high feature throughput without technical improvements and bugs gaining the upper hand. The only way to reliably identify such trends is to explicitly track the effort of these types of development work. If you don’t, you will lose important information that is necessary to address a whole range of significant questions, validate certain expectations and draw conclusions. You will not be able to recognize essential coherences, such as the following:</p><ul><li>Is the bug-fixing effort in a certain part of the system increasing continuously? If yes, probably it’s time to approach refactorings before it’s too late (=customer gets angry).</li><li>Did we spend a lot of effort on refactorings last year? if yes, we expect to have more effort on features and/or less effort for bugs this year (=lower maintenance effort).</li><li>We spent a lot of effort on refactorings last year/sprint/release, but things haven’t gotten any better (neither better feature throughput, nor lower maintenance effort). Probably, we have been refactoring the wrong things or in the wrong way. So we need a budget for refactoring again and hope to do it better this time (that’s just how feedback loops work: do, test, learn; do, test, learn etc.)</li><li>There are suddenly some bugs with extraordinary effort, but the team has no clue why. The gut feeling suggests, the architecture is fine and does not justify the effort. Is the customer trying to pass feature requests off as bugs?</li><li>Can I suddenly sleep much better because I have validated my gut feelings? Data is a wonderful way to do it.</li></ul><p>By now, there should be two questions left: How to track different types of development work and what is “effort”? The answer to the first is simple — you guessed it: issue types.</p><p>As to the effort: There is no room here to go into detail; however there are different approaches:</p><ul><li>If you do disciplined time logging in your projects, you can count the time spent on each issue as effort</li><li>If you associate commits with issues, you can use the numbers of added, modified and deleted source code lines for each issue as effort (requires <a href="https://capeofgoodcode.com/how-it-works/">tool support</a> or coding your own scripts)</li><li>If you can’t or don’t want to follow one of the above approaches, you can just count the number of the corresponding tickets. It’s not as expressive as the other approaches. But it’s definitely better than nothing.</li></ul><h4>A Few Words on Technical Debt — Why Refactorings Deserve a Separate Issue Type</h4><p>If you’ve read this far, it should be no secret that I strongly support the idea that refactorings should be made as explicit as possible. And that they deserve their own issue type because of this. I have already mentioned some arguments. At this point, I would like to add a few more and discuss counter-arguments I have come across on the Internet and in customer projects.</p><p>There are two dangerous and unfortunately widespread misconceptions that reinforce each other:</p><ul><li>Misconception 1: Refactorings should not be on the backlog because they don’t carry business value and are not important to customers</li><li>Misconception 2: Refactorings should be done as part of functional issues (e.g. user stories)</li></ul><p>The funny thing is that the advocates of these views usually do not question the importance of technical debt and refactorings in general. On the contrary: they strongly believe that technical debt in agile projects should be handled on a regular basis. Unfortunately, they draw a completely wrong conclusion from this belief. Namely, that developers should do refactorings<em> on the side</em> as part of a user story implementation, <em>virtually invisible</em>. This conclusion is wrong for several reasons:</p><p><strong>Reason 1:</strong></p><p>Most refactorings that have a real significance to the project cannot be handled with The Boy Scout Rule:</p><blockquote>If we all checked-in our code a little cleaner than when we checked it out, the code simply could not rot.<br> — <a href="https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">Robert C. Marin. Clean Code</a> [1].</blockquote><p>A lot of refactorings require wide-ranging changes that might affect a lot of concepts of the architecture. The changes might even imply some re-engineering of parts of the system. This is neither something a developer can and should decide on his own, nor is it something that can be handled with an imperceptible effort on the side. These kinds of changes just cannot be broken down into a series of minor Boy-Scout-Rule-like improvements and managed unnoticed, distributed over a certain number of user stories. <strong>These changes must be documented, decided, prioritized, implemented, reviewed and often also tested. That is: made visible to the greatest possible extent.</strong><br>(By the way: this is no criticism of the Boy Scout Rule.)</p><p><strong>Reason 2:</strong></p><p>Refactorings should never <em>belong </em>to a functional issue or be implemented just for a single product feature. It’s true that architectural problems often become apparent during a feature implementation. <strong>However, we should treat such insights as opportunities to learn and to understand the general shortcomings of our architecture. </strong>Consequently, the aim of a refactoring should not just be to facilitate the implementation of the current functionality but also the implementation of functionalities in the future. The current issue is just the trigger for the refactoring but not its ultimate rationale. Consequently, it’s just misleading to implement a refactoring as part of a user story.</p><p><strong>Reason 3:</strong></p><p>Technical Debt often occurs not inadvertently but is more often than not the result of<a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html"> prudent and deliberate</a> decisions: <a href="https://martinfowler.com/bliki/images/techDebtQuadrant.png">“We must ship now and deal with consequences”</a>. <strong>So if the origin of the debt is prudent and deliberate, why on earth would anyone want to hide its rectification behind a random user story?</strong> Thus, denying the reasonability of the initial decision to take the debt. It just doesn’t make sense.</p><p><strong>Reason 4:</strong></p><p>As already mentioned in the two previous sections: mixing functional and technical improvements leads to difficult to understand code and deprives the project of essential data which can be used to influence software quality.</p><p><strong>Now, what about business value?</strong></p><p>It is undeniable that quality assurance has a business value. As a customer, I am always aware that part of my money is used for quality assurance — no matter in what form. Refactorings are quality assurance, and software projects without refactorings are not imaginable. So what are all these philosophical discussions about?</p><p>What is the point of hiding refactorings from those who have to provide the budget for them (product owners, managers)? Just stop treating software projects as “feature factories”. Accept the fact that there are technical issues in a software project that don’t have anything to do with functionality. Let us stop pretending that technical debt is solely the result of bad coding. That it’s a personal mistake of a developer/the team, not having done it right the first time. It’s not fair, not true and not honest.</p><p>Who benefits if technical debt is understated and refactorings happen in secret? Let’s not celebrate the <a href="https://www.techfak.uni-bielefeld.de/~joern/jargon/SNAFUprinciple.HTML">SNAFU Principle</a> [18] in software projects:</p><blockquote>The effect of the SNAFU principle is a progressive disconnection of decision-makers from reality.</blockquote><figure><img alt="Technical debt is often not made visible in software projects" src="https://cdn-images-1.medium.com/max/1024/0*_Fai3cPaIKFiucdu.png" /><figcaption><a href="https://en.wikipedia.org/wiki/SNAFU">SNAFU</a> in a Feature Factory</figcaption></figure><p>By now, we have enough knowledge and also the appropriate terminology to deal with technical debt at eye level, as engineers and even as managers:</p><blockquote>A particular benefit of the debt metaphor is that it’s very handy for communicating to <strong>non-technical</strong> people.<br> — <a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">Martin Fowler. Technical Debt Quadrant</a> [5]</blockquote><p>So, if debt is the metaphor to make software development comprehensible to non-technical people, e.g. managers, customers, why should we hide the concept, not monitor its effort and its effectiveness by dealing with it in an explicit way as issues of an own issue type? Is there any convincing argument not to talk honestly as equal instead of superior and subordinate between customers, managers, product owners and engineers by using a mutually agreeable language?</p><p>I recently attended an <a href="https://www.oop-konferenz.de/oop2020/programm/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/1x1-technischer-schulden.html">interesting talk by Dr. Gernot Starke at the OOP Conference 2020</a> [6]. He even suggests having a separate issue type “TechDebt” which can be used to capture and document technical debt as soon as it arises. It is up to each individual to decide whether or not to implement this approach in his or her project. But such ideas reflect precisely the right mindset to handle technical debt: it should be explicit and visible to everybody.</p><h4>Minimal Set of Needed Issue Types</h4><p>At this point, the required issue types should no longer be a secret. I have already mentioned them in one way or another. Nevertheless, let me systematize what has been said.</p><p><strong>Issue Type for Features</strong></p><p>The sense of every software project is to provide features to end users. Even if you’re developing a framework to be used by other developers. A new API in your framework is a feature to its end-users.</p><p>So every project needs at least one issue type for features. If you’re in a Scrum-based project, the usually used issue type is <strong>User Story. </strong>If you’re not using Scrum and/or are not bound by special naming conventions, I would use the most obvious name for this issue type, namely: <strong>Feature</strong>.</p><p>Please don’t feel compelled to use more than one issue type for functional changes unless you see a clear added value in them that helps your project to solve problems. If in doubt, start with one issue type and add more later. <em>Don’t be afraid to remove default issue types</em> provided by your issue tracker if you cannot define clear rules when to use them. And please be consequent: remove the types immediately, don’t keep them for later, just in case you get the sense at some point. Most probably you won’t. But as long as they exist, they will confuse you and others and cause you to waste cognitive effort. Free yourself from this burden as soon as possible.</p><p>I would like to make it explicit once again:</p><ul><li>No, you don’t need Epics if you don’t see any sense in grouping Features. There are no super-smart reasons behind Epics. You won’t miss anything if you don’t use Epics.</li><li>No, you don’t need Improvements or Enhancements to express extensions of existing Features. An extension of an existing Feature is just a (smaller) Feature, so there is nothing wrong in creating an issue of type Feature for it.</li><li>And please, do not use Feature and User Story at the same time unless you can provide <em>crystal clear rules </em>for when to use what (I don’t know of any such rules).</li></ul><p><strong>What About Operational Requirements?</strong></p><p>Do we need a separate issue type to capture changes related to issues like improving the performance or the memory footprint, handling portability and security issues, supporting new platforms, protocols etc.? Not necessarily, unless for some reasons you need to explicitly track the effort related to the implementation of these kinds of work.</p><p>Logically, <em>operational requirements are features</em> of your product. Even though the <a href="https://www.geeksforgeeks.org/software-engineering-classification-of-software-requirements/?ref=rp">classical requirements engineering</a> [7] regards them as non-functional. But it doesn’t mean that one can not have functional and non-functional features. They are features because they have a perceptible<em> impact</em> on your software. If an operation can be executed faster than before, the customer will notice. If you port your software to a new platform, it’s an extraordinarily large feature because it makes the entire feature set of your software available for a bunch of new users. Implementing operational requirements is neither waste nor maintenance effort or just technical work. Operational requirements add value to your software and therefore are features.</p><p><strong>Issue Type for Defects</strong></p><p>That’s easy. You need a separate issue type to handle errors and unexpected behavior. And the best name for it is <strong>Bug</strong>. The number of bugs is an important quality metric of your system; fixing bugs is an important quality assurance measure. So you better keep an eye on the bugs. Pure bug trackers (such as Bugzilla) are the ancestors of today’s full-featured issue trackers. Bugs have always been essential, and this has not changed until today.</p><p>So there’s not much to say about that. Nevertheless, there is one crucial piece of advice in this context: <em>Be honest to yourself and do not fix bugs on the fly</em>.</p><p>When working on a feature or a refactoring, it can happen that we find a bug by chance not noticed before by anybody. For example, because it becomes apparent to us just by looking at the code. Or a test added for a new feature fails and by tracing the reason we come across the bug. Especially if the fix would be tiny, maybe even just a one-liner, the temptation is great, not to make a big fuss about the bug and just fix it silently as part of the current issue. Even if it saves time at first glance, it isn’t a good idea. As we know, mixing unrelated changes under an issue is a bad practice. In addition, by making the bug disappear undocumented, we deprive the project of valuable information (traceability and monitoring).</p><p>Please be disciplined and create a Bug issue for every bug you discover. The time overhead is minimal, but your coworkers and your future self will thank you for it. And by the way: a bugfix is almost never a one-liner — as every bug should be covered by a test.</p><p><strong>Issue Type for Refactorings and Re-Engineerings</strong></p><p>We need a separate issue type to capture architectural improvements, handling work related to the reduction of technical debt, performing system re-engineering and the like. For the sake of simplicity, you can call this issue type just <strong>Refactoring</strong>. Other names such as <strong>Architectural Improvement</strong> are fine as well. However, because of the inherent problems described in the first part, I do not recommend using Technical Story or Architecture Story.</p><p>The distinguishing characteristic of these types of development work is their purpose to make <em>code improvements aiming to reduce the cognitive effort for implementing new features, reduce the probability of bugs and misconceptions of code</em>. Here are some examples:</p><ul><li>increasing code comprehensibility<br>- simplifying code<br>- making code more self-explainable (including the renaming of identifiers and modules)<br>- rearranging code parts to increase cohesion or comply with the single responsibility principle<br>- adding or improving documentation</li><li>improving reusability, e.g. sourcing out commonly used logic into separate classes/functions/modules</li><li>crosscutting technical changes aiming to improve the architecture, e.g., switching to a new framework which facilitates the implementation of upcoming requirements</li><li>removing dead code</li><li>bulk cosmetic (formatting, style) changes</li><li>bulk fixing of smells/problems found by static code analyzers</li><li>and other architectural changes of any size</li></ul><p>By the way, the implementation effort is not a distinguishing characteristic for a refactoring. Refactorings can be big or small. If you’re working on a feature and you notice that there is some computation already used at two different places and the current feature requires it a third time, a wise decision would be to source out this computation into a separate function to avoid code duplication. Even if this computation is minimal, such as computing the volume of a sphere, it’s still a refactoring. And the best approach would be to stop your current work for a moment, create a Refactoring issue briefly describing the what and why, implement it by adding the new function and adjusting the two existing locations to use it. Afterwards, you can continue with the feature implementation, which can use the new function now. A possible alternative could be to add the new function as part of the feature implementation and create a Refactoring issue to adjust the two existing locations for later. However, under no circumstances should you make these unrelated adjustments under the current feature.</p><p><strong>Issue Type for Maintenance</strong></p><p>Besides refactorings, there are other types of technical work in software projects that deserve an own issue type. And let’s the cat out of the bag right now: I suggest using the name <strong>Task</strong> for them. Simply put, these are all other kinds of <a href="https://de.slideshare.net/Kevlin/inside-requirements">developmental requirements</a> [4] which are not refactorings. However, this definition is not very helpful, so let me be more precise. I think there are some categories of Tasks:</p><p><strong>Software Engineering Process &amp; Tooling</strong></p><ul><li>Configuring CI/CD pipelines (e.g. modifying Jenkinsfile)</li><li>Adjusting configuration and project files of your IDE, build tools, code checkers etc.</li><li>Implementing helper scripts for your development work</li></ul><p><strong>Infrastructure</strong></p><p>This category includes work such as upgrading to new library/framework/language versions or switching to other technologies. You might have noticed from the last section that a switch to a different technology could also be a refactoring. Whether it’s a Task or a Refactoring depends on the reason. It’s a refactoring if you aim to use new kinds of functionality of the new technology, which will help you to implement new features. In other cases it’s just a Task, e.g.:</p><ul><li>the current framework is buggy and is not well maintained, so you have no other choices than to switch</li><li>a new version of a library doesn’t work with an old one, so you have to upgrade</li><li>a security hole has been closed in a library you depend on, and you need the new version (depending on the concrete case a Bug could also be valid issue type)</li><li>regularly upgrading to new versions (e.g. to avoid significant integration effort later) is part of your development process</li></ul><p><strong>Avoidable Waste</strong></p><p>This is the most complicated category of Tasks because the distinction to refactorings can be fluid. It’s hard to give a rock-solid definition. However, let’s start with some examples.</p><p>Imagine you decided to establish (or change) code style guidelines in your project and to reformat the existing code. Either at once or step by step. It’s fine to express it as a Refactoring because most probably there are good reasons behind this decision, aiming to increase code readability. After the refactoring is done, you expect your developers to comply with the new guidelines and only produce code according to the new style. So all the future style violations that require fixes are not refactorings anymore, they should be handled under Tasks. It’s avoidable waste resulting either from lack of discipline, poor communication, bad tooling or carelessness. You better reduce this kind of effort to a minimum in your project. Same holds for fixing of typos.</p><p>Another category of avoidable waste are fixes related to unstable or otherwise problematic tests. Usually, proper tests should be committed together with the main issue implementation (feature, bug, even some refactorings could require tests). If these tests start to make problems (e.g. because they fail randomly), the additional effort can be regarded as waste.</p><p>In general, changes related to bad coding practices (such as using a deprecated function with security holes) that require fixes, can be regarded as avoidable waste as well.</p><p><strong>Everything else</strong></p><p>I apologize for this category. However, there are just some miscellaneous cases like adding/modifying copyright comments which should also be handled under Tasks.</p><p><strong>Edge Cases and Why to Make a Difference Between Refactorings and Maintenance</strong></p><p>Unfortunately, there are also some less obvious cases. For example, improving/adding documentation or adding new or improving existing tests.</p><p>Sometimes when trying to understand code, you might come across a construct with no or poor documentation, so you spend some time to understand it. In the end, you might feel inclined to express the new insights by adding documentation. So what to do? Given that documentation improves the comprehensibility of code and thus potentially reduces the cognitive effort to understand code, documentation improvements can be regarded as refactoring-like changes. On the other hand, one could argue that adding proper documentation should have been done right from the start, so improving it is rather maintenance effort.</p><p>To make the right decision, it always helps to remember why a distinction between refactorings and maintenance is necessary at all. The keyword is: monitoring (see section “Issue Trackers as Basis for Quality”). We’re interested in separately capturing refactoring work, in order to evaluate the effectiveness of our refactorings. After a certain amount of refactoring effort, we expect the feature throughput to increase and/or the bug effort to decrease. This is something that we don’t immediately expect from maintenance work. Nevertheless, we’re still interested in separately capturing the effort for maintenance because the goal should be to reduce as much as possible. If we’re spending too much time configuring our tools, fixing version conflicts between libraries or improving code style instead of implementing features, something is wrong in our project, and we should pivot.</p><p><strong>Handling Micro Improvements — Back to the Boy Scout Rule</strong></p><p>Creating a separate issue for every small problem (such as: fixing a typo or wrong indentation or removing an obsolete import) encountered during coding is not feasible. However, we don’t want to violate the overall rule not to mix unrelated changes. How can we address this challenge?</p><p>We at <a href="http://www.capeofgoodcode.com/">Cape of Good Code</a> use a concept which we call “Never-Ending Issues”. These are just regular issues in our tracker, but they are not intended ever to be closed. They are used to commit <em>small </em>refactoring-like and maintenance changes. So the most straightforward approach is to start with two never-ending issues: one Refactoring and one Task.</p><p>Never-ending Refactorings can be used to commit things like renames of identifiers to make them more expressive, for small documentation improvements or for occasionally removing unused code.</p><p>Never-ending Tasks can be used for small cosmetic changes and other types of small maintenance changes.</p><p>If you’re not comfortable with the “never-ending” concept, you can create such issues for small, occasional changes per sprint/release/month/year and close them afterwards.</p><p>However, the scope of such never-ending issues should be reserved just for small changes that don’t deserve an own issue. You should pay attention that never-ending issues are not misused in your project. They are an excellent compromise, but should not be used to throw rules overboard.</p><p><strong>Parent-Child-Relations and Decomposition</strong></p><p>So far, we have four issue types: Feature/User Story, Bug, Refactoring and Task. Are they sufficient to implement the concept of task-decomposition, i.e. breaking down bigger issues into smaller sub-tasks? Well, yes and no.</p><p>To be honest, I like Jira’s idea of <strong>Sub-Tasks</strong>. Having a separate issue type for decomposition avoids confusion and makes it clear that the corresponding issue is meant just for breakdown. In particular, <em>logically </em>Sub-Tasks don’t have an own issue type — they “inherit” their type from their parent. Don’t get me wrong: “type inheritance” isn’t something that is technically implemented in Jira. It should be rather our mental view on Sub-Tasks, meaning that the effort spent on a Sub-Task of a Bug should be counted as Bug-effort, the effort for a Sub-Task of a Feature is Feature-effort etc. It isn’t particularly useful to track the number of Sub-Tasks or the effort spent on Sub-Tasks as a separate metric.</p><p>However, could we get along also without Sub-Task? Theoretically yes. By using Tasks instead. That way, Tasks would have two different purposes. If a Task appears as a child of another issue, it has all the properties of a Sub-Task, in particular no own issues type. If it appears as a standalone issue, it should be treated as maintenance effort. In this scenario, we could end up with Tasks having other Tasks as children. You see, this solution has a lot of potential for confusion. And by the way, this is nothing that is supported per default by Jira because Tasks cannot be children of other issue types except of Epics. So I clearly advocate the solution with Sub-Tasks.</p><p><strong>Modelling Common Technical Infrastructure for Different Features</strong></p><p>Sometimes you know ahead that you’re going to implement multiple features which are going to share a common infrastructure, such as common database tables or a new communication protocol. So you create a separate issue to implement these technical aspects. Either to explicitly express that the infrastructure is used by both features and/or to structure the solution and/or because the corresponding implementation work will be taken over by a separate person. And while these are all legitimate reasons for a decomposition, we can quickly run into a problematic situation. The following example shows two common ways to express such a breakdown: with and without Epics.</p><figure><img alt="Bad ways to express technical infrastructure work related to multiple features." src="https://cdn-images-1.medium.com/max/1024/1*kimC0SjBNscPlOLHF1O_WA.png" /><figcaption>Bad ways to express technical infrastructure work related to multiple features.</figcaption></figure><p>Bad ways to express technical infrastructure work related to multiple features.</p><p>The problem results from the fact that technical infrastructure added to the code base to implement certain features should be counted as Feature-effort and not as something else. However, it’s not easily possible to express this with our current set of issue types and the above decomposition. If we use a Sub-Task for the infrastructure issue (which is not possible per default in Jira because Epics cannot have Sub-Tasks), we have no way to derive its logical type because it’s not connected to any Feature. Consequently, we would need an additional issue type, such as “Feature-Sub-Task” in order to model the above scenario.</p><p>Fortunately, there is a better solution which doesn’t unnecessarily complicate our issue types model.</p><figure><img alt="Correct ways to express technical infrastructure work related to multiple features." src="https://cdn-images-1.medium.com/max/768/1*0n4KDKEDztsPGpfGiXMtPA.png" /><figcaption>Correct ways to express technical infrastructure work related to multiple features.</figcaption></figure><p>Correct ways to express technical infrastructure work related to multiple features.</p><p>We can just make the technical infrastructure issue be a <em>Sub-Task of one of both features</em>. Optionally we can use a separate relation to express that the other feature also uses the infrastructure.</p><p>At first glance, it may seem like an arbitrary solution because the effort for the technical infrastructure will be attributed just to one of the features, even though it logically belongs to both. However, this is a fallacy. It is the usual case in every project that an arbitrary number of features reuses technical infrastructure added for one feature in the past. Nobody is supposed to identify the first issue under which the corresponding infrastructure was added to the code base just to create a corresponding relation. The above case is rather an exception because coincidentally we know of two features at the same time that rely on the same infrastructure. Explicitly modelling this fact through relations is a nice-to-have but certainly nothing we should give too much attention to. So, whenever you do task breakdown, keep in mind that type of effort to be attributed to child issues should be derivable from their parent issues.</p><p><strong>Organizational and Other Issues</strong></p><p>If you’re using the issue tracker to track all kinds of work in your software development project, then most probably you will have tasks which don’t immediately result in code changes. It could be organizational tasks, such as onboarding of new coworkers or other types of work, such as doing technology evaluations. Which issue types should you use for this work? Well, if you want to capture these tasks in the same issue tracker project as the development work, you can choose any types you wish to. They are not relevant for the considerations described here; they are not part of the model in question. The model cares only about issues which can be associated with code changes.</p><p>You could even use Tasks for such kind of work. With the following mental rule: Tasks with code changes are maintenance work, Tasks without are everything else.</p><h3>Summary and Takeaways</h3><p>The most practical takeaway is that every software development project needs at least four main issue types:</p><ol><li>Feature or User Story — for product features (functional or non-functional)</li><li>Bug — for errors and unintended behavior</li><li>Refactoring — for architectural improvements and the like</li><li>Task — for maintenance work</li><li>and optionally Sub-Task — for breaking down any of the other issue types</li></ol><p>It might be surprising that we ended up with two types for technical and only one for functional work. In many projects, it is rather the opposite: there are multiple types for functional work and only one or no types for technical work. Actually, it is logical because functional requirements are simple, accepted and well-understood, handling them doesn’t require deep insights:</p><blockquote>Functional requirements are typically binary in nature: you either meet a requirement or you don’t. There are no shades of grey, no extra-Boolean possibilities lurking between true and false. It either passed or it failed. That’s the nice thing about functional requirements. They are precise. There is no approximation.<br> — <a href="https://de.slideshare.net/Kevlin/inside-requirements">Kevlin Henney. Inside Requirements</a> [4].</blockquote><p>In this post, I have ventured into the less clear and precise things and tried to provide structural insights about technical issues by pointing out their significance in software projects. In particular, I have tried to reason why technical debt deserves maximal visibility.</p><p>When researching for this post, I came across an interesting paper: <a href="http://ceur-ws.org/Vol-1342/02-reprico.pdf">Requirements Communication in Issue Tracking Systems in Four Open-Source Projects</a> [2]. By analyzing natural language communication in issue trackers, the authors tried to categorize issue types logically represented there. These are the results:</p><blockquote>The following issue types were discovered: 1) <strong>Feature-Related</strong> — information, related to a new software feature or software requirements, 2) <strong>Bug-Related</strong> — software failures and problems, 3) <strong>Refactoring-Related</strong> — software changes that neither affect the functionalities nor the qualities of the software (besides maintainability), 4) <strong>SE Process-Related</strong> — discussions about the general SE process, e.g. if a developer notices that tests should be run more frequently in the project or if documentation should be relocated,..</blockquote><p>Our four suggested issue types are virtually congruent with the ones identified in the natural language. I think the findings are quite impressive: they show that these four issue types represent inherent concerns and types of development work. This is another confirmation that the suggested differentiation is fundamental.</p><p>But enough talk, let me finish with a list of clear rules.</p><h4>11 Rules to Survive in the Issue Types Jungle</h4><ol><li>Don’t use issue types whose meaning you don’t fully understand</li><li>Don’t keep default issue types in your issue tracker which you don’t use. Remove them immediately.</li><li>As few as possible, as many as necessary — this holds absolutely true for issue types (<a href="https://capeofgoodcode.com/2020/05/02/reasonable-issue-types/#summary-and-takeaways">4 main issue types</a>)</li><li>Don’t hide technical debt from anyone. Make it as visible as possible by a separate issue type.</li><li>Don’t use “Technical Stories”. They are just too ambivalent.</li><li>Don’t use the “As a …, I … so that …” template to express technical concerns</li><li>Don’t consider sub-tasks of features or user stories as technical issues. Breaking down a functional issue just produces smaller pieces whose purpose is still functional.</li><li>Don’t mix changes of unrelated issue types (such as quick refactorings as part of features etc.)</li><li>Don’t fix bugs on the fly</li><li>Use never-ending issues to handle small improvements</li><li>Make sure that everybody in the project shares the same understanding of the issue types. Explicitly document the purpose of each issue type in some project-wide guidelines.</li></ol><p>What do you think about this approach? Do you see any edge cases that don’t fit into this model? Let me know. I’m Looking forward to discussing them.</p><h3>References</h3><ol><li>Robert C. Martin (2008). <em>Clean Code. A Handbook of Agile Softeare Craftmanship</em>. PRENTICE HALL<br><a href="https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882">https://www.amazon.com/Clean-Code-Handbook-Software-Craftsmanship/dp/0132350882</a></li><li>Thorsten Merten et al. (2015). Requirements Communication in Issue Tracking Systems in Four Open-Source Projects,<br><a href="http://ceur-ws.org/Vol-1342/02-reprico.pdf">http://ceur-ws.org/Vol-1342/02-reprico.pdf</a></li><li>Kevlin Henney. Architecture with Agility.<br><a href="http://sddconf.com/brands/sdd/library/Architecture_with_Agility.pdf">http://sddconf.com/brands/sdd/library/Architecture_with_Agility.pdf</a></li><li>Kevlin Henney (2003). Inside Requirements.<br><a href="https://de.slideshare.net/Kevlin/inside-requirements">https://de.slideshare.net/Kevlin/inside-requirements</a></li><li>Martin Fowler (2009). TechnicalDebtQuadrant.<br><a href="https://martinfowler.com/bliki/TechnicalDebtQuadrant.html">https://martinfowler.com/bliki/TechnicalDebtQuadrant.htm</a></li><li>Dr. Gernot Starke (2020). 1×1 technischer Schulden.<br><a href="https://www.oop-konferenz.de/oop2020/programm/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/1x1-technischer-schulden.html">https://www.oop-konferenz.de/oop2020/programm/konferenzprogramm/sessiondetails/action/detail/session/nmi-2/title/1×1-technischer-schulden.html</a></li><li>IEEE standard 729. Classification of Software Requirements.<br><a href="https://www.geeksforgeeks.org/software-engineering-classification-of-software-requirements">https://www.geeksforgeeks.org/software-engineering-classification-of-software-requirements</a></li><li>Ajay Badri. User Stories and Technical Stories in Agile Development.<br><a href="https://seilevel.com/requirements/user-stories-technical-stories-agile-development-productmanagement">https://seilevel.com/requirements/user-stories-technical-stories-agile-development-productmanagement</a></li><li>Robert Galen (2013). Technical User Stories — What, When, and How?<br><a href="https://rgalen.com/agile-training-news/2013/11/10/technical-user-stories-what-when-and-how">https://rgalen.com/agile-training-news/2013/11/10/technical-user-stories-what-when-and-how</a></li><li>Rachel Wright (2019). Different Jira Issue Types.<br><a href="https://www.jirastrategy.com/questions/different-jira-issue-types">https://www.jirastrategy.com/questions/different-jira-issue-types</a></li><li>KathrynEE et al. (2018). Agile process work item types and workflow.<br><a href="https://docs.microsoft.com/en-us/azure/devops/boards/work-items/guidance/agile-process-workflow">https://docs.microsoft.com/en-us/azure/devops/boards/work-items/guidance/agile-process-workflow</a></li><li>Valerie Andrianova (2018). How We Handle External Requests in YouTrack<br><a href="https://youtrack-support.jetbrains.com/hc/en-us/articles/115001019644-How-We-Handle-External-Requests-in-YouTrack">https://youtrack-support.jetbrains.com/hc/en-us/articles/115001019644-How-We-Handle-External-Requests-in-YouTrack</a></li><li>Chris Taylor et al. (2014). Feature vs Task vs Story.<br><a href="https://community.atlassian.com/t5/Jira-Software-questions/Feature-vs-Task-vs-Story/qaq-p/418930">https://community.atlassian.com/t5/Jira-Software-questions/Feature-vs-Task-vs-Story/qaq-p/418930</a></li><li>nivlam et al. (2013). Relationship between user story, feature, and epic?<br><a href="https://softwareengineering.stackexchange.com/questions/182158/relationship-between-user-story-feature-and-epic">https://softwareengineering.stackexchange.com/questions/182158/relationship-between-user-story-feature-and-epic</a></li><li>Thom Holwerda (2008). WTFs/m.<br><a href="https://www.osnews.com/story/19266/wtfsm/">https://www.osnews.com/story/19266/wtfsm/</a></li><li>Chris Beams (2014). How to Write a Git Commit Message.<br><a href="https://chris.beams.io/posts/git-commit/">https://chris.beams.io/posts/git-commit/</a></li><li>Sean Patterson (2013). Developers Tip: Keep Your Commits “Atomic”.<br><a href="https://www.freshconsulting.com/atomic-commits/">https://www.freshconsulting.com/atomic-commits/</a></li><li>SNAFU principle.<br><a href="https://www.techfak.uni-bielefeld.de/~joern/jargon/SNAFUprinciple.HTML">https://www.techfak.uni-bielefeld.de/~joern/jargon/SNAFUprinciple.HTML</a></li><li>Ken Schwaber, Jeff Sutherland (2013). The Scrum Guide. The Definitive Guide to Scrum: The Rules of the Game.<br><a href="https://www.scrumguides.org/docs/scrumguide/v1/Scrum-Guide-US.pdf">https://www.scrumguides.org/docs/scrumguide/v1/Scrum-Guide-US.pdf</a></li><li><a href="https://en.wikipedia.org/wiki/Scrum_(software_development)">https://en.wikipedia.org/wiki/Scrum_(software_development)</a></li><li><a href="https://en.wikipedia.org/wiki/SNAFU">https://en.wikipedia.org/wiki/SNAFU</a></li><li><a href="https://en.wikipedia.org/wiki/Tautology">https://en.wikipedia.org/wiki/Tautology</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=637f7a6f72a7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/make-issue-types-great-again-637f7a6f72a7">Make Issue Types Great Again</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Corona-Warn-App — On the Way To Critical Technical Debt?]]></title>
            <link>https://medium.com/cape-of-good-code/corona-warn-app-on-the-way-to-critical-technical-debt-4ee545f076d5?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/4ee545f076d5</guid>
            <category><![CDATA[technical-debt]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[softwarequalityassurance]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 08:30:55 GMT</pubDate>
            <atom:updated>2021-03-12T11:31:48.746Z</atom:updated>
            <content:encoded><![CDATA[<h3>Corona-Warn-App — On the Way To Critical Technical Debt?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OA54xwF-kXlALoe9.png" /><figcaption>February 23, 2021 by <a href="https://capeofgoodcode.com/author/ewuc/">Egon Wuchner</a> and <a href="https://capeofgoodcode.com/author/ksok/">Konstantin Sokolov</a></figcaption></figure><p>We applied our <a href="https://capeofgoodcode.com/de/">DETANGLE analysis suite</a> to the Corona-Warn-App for <a href="https://github.com/corona-warn-app/cwa-app-ios">iOS</a> and <a href="https://github.com/corona-warn-app/cwa-app-android">Android</a> to assess the quality and other risks related to maintainability and extensibility. Up to version 1.11, we determined how features and defects are reflected in the code, measured <em>architecture quality</em>, estimated<em> technical debt</em> and analyzed <em>knowledge distribution risks</em>.</p><p>Although the current code quality metrics from SonarQube, the tool used for code analysis during the development of the Corona-Warn-App, repeatedly show a very good rating for both apps up to version 1.11, there are nevertheless striking findings that contradict this good picture in parts. In this post, we will look at the results for the <a href="https://github.com/corona-warn-app/cwa-app-ios">iOS-version</a> of the app.</p><p><em>More on the Corona-Warn-App in the second part of the blog: </em><a href="https://capeofgoodcode.com/2021/03/11/rethinking-collective-code-ownership-knowledge-distribution-risks-demonstrated-with-the-german-corona-warn-app/"><em>Rethinking (Collective) Code Ownership — Knowledge Distribution Risks Demonstrated With the German Corona-Warn-App</em></a></p><h3>Take-Aways</h3><h4>1. Less Development Effort for Features, More for Bug-Fixing</h4><p>When looking at the distribution of effort for features, bugs and other work, it is noticeable that in Q4/2020 and Jan/2021 the development effort for features fell below 60% of the total effort in 3 out of 4 months (incl. January 2021). Conversely, the maintenance effort in the form of bug-fixing increased to 20% of the total effort in 2 out of 4 months (incl. January 2021).</p><figure><img alt="Corona-Warn-App — July 2020 to January 2021; left: Share of bug-fixing effort in total effort; right: share of feature development effort in total effort" src="https://cdn-images-1.medium.com/max/392/1*Pl5mxhJOMQJoaCdwtuGuuQ.png" /><figcaption>Figure 1: July 2020 to January 2021; left: Share of bug-fixing effort in total effort; right: share of feature development effort in total effort</figcaption></figure><p>These are not yet extremely worrying effort distributions, but they could be <strong>early indicators</strong> of a strengthening trend of <strong>declining feature throughput.</strong></p><p>For an explanation of the measurement of development effort, see <a href="https://youtu.be/aD4OQScGILo?t=790">[2]</a>.</p><h4>2. Feature-Debt Exceeded Warning Level in Q4/2020</h4><p>Using DETANGLE’s architecture quality metrics, however, the extent of <em>feature-coupling</em> and <em>feature-cohesion</em> found in the code shows the time pressure under which the first versions of the apps had to be developed. In the releases over the summer months in the third quarter of 2020, a decrease in technical debt, as we measure it, was recognizable. But from version 1.7 and up to version 1.11, we believe a warning value of the measured <em>feature-debt-index</em> was reached again in the fourth quarter of 2020</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*SJ3Q_HsCC77AzgdUs5Pe3g.png" /><figcaption>Figure 2: Quarter 2, 2020 — Quarter 4,2020; left: <em>feature-debt-index (FDI)</em> over the last 3 quarters of 2020</figcaption></figure><p>For explanations of <em>feature-coupling</em>, <em>feature-cohesion</em> and the <em>feature-debt-index</em>, see <a href="https://youtu.be/aD4OQScGILo?t=510">[1]</a> and <a href="https://youtu.be/aD4OQScGILo?t=1073">[3].</a></p><h4>3. Architecture Quality of Three Feature Blocks Indicate Need for Action</h4><p>For example, there is an increasing need for action with regard to the architectural quality of the code modules, where the following features have been implemented:</p><ol><li>The <strong>multiple risk calculation per day with version 1.7 from Oct/2020</strong> using 30min time windows for the exposure detection of matches of encounters with the downloaded anonymous diagnosis keys of Covid sufferers.<br> The corresponding Github Issues/PRs can be found mainly by searching for the keywords “risk calculation” and “download packages”.</li><li>The , so that several individual encounters with low risk (green) can lead to increased risk (red).<strong>more accurate risk assessment with version 1.9 from Dec/2020</strong><br> These GitHub Issues/PRs can essentially be found under the keyword “risk calculation”.</li><li>The .<strong> improved processes for retrieving and reporting a test result</strong><br> Many of these GitHub Issues/PRs have the keyword “exposure submission” in the title.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*b04KmYqHquU4hZ7GEa0-yQ.png" /><figcaption>Figure 3: Coupling of the risk calculation features (<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">1472</a>,<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1457"> 1457</a>, <a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1518">1518</a>,<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1541"> 1541</a>, <a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1550">1550</a>) to other features (not numbered arcs) from Quarter 4, 2020</figcaption></figure><p>Figure 3 shows all GitHub Issues/PRs from the 4th quarter of 2020 as individual arcs on a circle. A link between two arcs represents the coupling between two features. The numbered arcs on the right represent the more accurate risk calculation features from V1.9. The connections clearly suggest that these features are not only interwoven with each other, but with many other implemented features from Q4. The more extensive the coupling among unrelated features, the more difficult it becomes to add new features to the code base without unintended side effects.</p><p>From our point of view, we expect other types of risk calculations, such as potentially for visits to restaurants that provide a QR code for scanning, to find their way into the app. However, this in turn is likely to lead to a sharp increase in maintenance work in the form of bugs due to the decreasing extensibility of these features from V1.9 or the addition of new features to this code without refactoring.</p><h4>4. Source Code Folders With High Feature-Debt</h4><p>We were able to assign the above-mentioned feature clusters to the respective code areas with an increased <em>feature-debt- index</em> in Fig. 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*a3TxEzThf6XsahfgN8a1PQ.png" /><figcaption>Figure 4: Source code folders; <em>feature-debt-index</em> on the x-axis; <em>committer-friction-index</em> on the y-axis (not relevant here)</figcaption></figure><p>These are essentially the following source code folders:</p><pre>src/xcode/ENA/ENA/Source/Services/Exposure Submission src/xcode/ENA/ENA/Source/Scenes/Exposure Submission src/xcode/ENA/ENA/Source/Scenes/Exposure Submission/View src/xcode/ENA/ENA/Source/Services/Exposure Transaction src/xcode/ENA/ENA/Source/Models/Exposure src/xcode/ENA/ENA/Source/Services/Risk/Provider src/xcode/ENA/ENA/Source/Services/Risk/Calculation</pre><p>Figure 4 shows the values of the <em>feature-debt-index</em> for folders on the x-axis (the y-values represent the <em>committer-friction-index (CFI)</em>, which will be discussed in one of the next blogs). The Lines of Code of the folders are displayed by the size of the bubbles. The <strong>Exposure Submission</strong> folders mentioned above fall under the largest red folders, while again the <strong>Risk</strong> folders represent the largest two yellow bubbles. These directories account for approximately 20% of the code base and have grown by 50% to 150% each in Q4/2020.</p><h4>5. Decreasing Source Code Documentation</h4><p>The source code documentation of the entire code base has fallen to a low value of 9% (of comments in source files compared to their non-empty lines of source code) in the last three months until the end of Jan 2021. In particular, some of the source code folders considered critical above show critical values of 9%. Thus, there is a combination of architectural weaknesses and lack of code comprehensibility due to low code documentation in these folders.</p><h4>6. Critical Source Code Folders Have Impact</h4><p>Consequences in the above-mentioned directories are already evident in:</p><p>1. A necessary but feasible reduction of the technical debt:</p><p>The current maintenance effort is already much higher than the technical debt, by which we mean the estimated effort to improve the quality of the architecture. It is therefore worthwhile to start refactoring here, especially since the improvement effort would correspond to about one man-week in terms of the average effort per month for the last quarter Q4/2020.</p><p>2. A currently high <em>feature-effort-effectiveness-index</em>:</p><p>The effort required to develop new features is already accompanied by an increased refactoring effort to implement them.</p><h4>7. Increased Feature Debt Also in test-Folders</h4><p>Some of the corresponding <strong>test</strong>-folders for the above source code directories also have critical <em>feature-debt-index</em> values. This means that they are just as interwoven with regard to the implemented features as the code to be tested, so that adding tests for new features is also likely to involve additional work in the sense of refactoring.</p><h4>8. Restricted Access to Project Issues</h4><p><strong>Due to the sole access to the GitHub projects and without access to the tickets of the non-public SAP JIRA Issue Tracker, we can only deliver valid results for the iOS app.</strong></p><p>The reasons are discussed in more detail below. To make matters worse, capturing bugs, features and their referring to them in commits during development was handled very differently within the iOS and Android app over the course of the project.</p><p>However, in order to make our findings on the Corona warning app development optimally usable for both apps, we would need read access to the tickets of the non-public SAP JIRA EXPOSUREAPP project beyond the public Github projects.</p><h3>Outlook — Risks of Knowledge Distribution</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*G3rzG_CtQcWjHdBn.png" /></figure><p>Due to the scope, we have not yet been able to address the following questions in this blog:</p><ul><li>What does the organisation or self-organisation of the development look like?</li><li>Are there stability anchors of developers who constantly work on the app or the system? Is the software knowledge about the apps well distributed?</li><li>Do the developers work well together so that the team develops effectively?</li><li>Or does the cooperation involve certain risks and lead to quality problems such as an increased density of errors?</li></ul><p>The <a href="https://capeofgoodcode.com/2021/03/11/rethinking-collective-code-ownership-knowledge-distribution-risks-demonstrated-with-the-german-corona-warn-app/">next parts of the blog</a> series will seek answers to these questions and look at the risks in the distribution of knowledge for the development of the Corona iOS app.</p><h4>Now the following aspects will be covered in this first part of the blog series:</h4><ul><li>how we proceeded with the analysis using access to the Github data but without access to the JIRA tickets</li><li>how we arrived at the above results</li><li>what recommendations we would make in detail to reduce technical debt and counter the erosion of feature extensibility</li></ul><h3>Another Analysis — Why?</h3><p>In software development, it is common practice to measure software quality using metrics of code quality. <a href="https://www.sonarqube.org/">SonarQube</a> has almost established itself as an “industry standard” among developers to detect potential bugs or code smells in the code, for example. The tool also offers an estimate of the technical debt measured in terms of the effort required to eliminate the findings in question.</p><p>SonarQube was therefore also used throughout the development of the two Corona Warn apps. SonarQube’s metrics for code quality have indicated very good ratings for both Corona Warn apps with the last versions.</p><p><strong>It is well known, however, that code quality is not everything. The question of architecture quality is at least as relevant!</strong></p><p>Specifically, one wants to know to what extent the architecture of the two apps enables the development of new features or the extension of existing functionality. Current approaches often assess good architecture quality along certain patterns of structural dependency graphs such as call hierarchies and cycles between code modules. The informative value of these assessments is only of limited relevance when it comes to the question of how far the current architecture enables the development of new features <a href="https://capeofgoodcode.com/2020/10/29/architecture-hotspots-despite-good-dependency-structures/">[4]</a>.</p><p>We therefore used the DETANGLE Analysis Suite to analyse the development of the apps based on the history of the GitHub code repositories and the GitHub issues and pull requests with regard to architecture quality and derived prioritised recommendations for action to keep maintenance costs (in form of bug fixing) in check due to technical debt and to restore the feature extensibility of the iOS app in certain (from our point of view) future relevant code areas.</p><h3>About the Approach</h3><p>The capturing of bugs, features and their referencing during the development of the code was handled differently over different time periods in the course of the project using GitHub issues, GitHub pull requests (PRs) and JIRA tickets of the SAP-internal JIRA EXPOSUREAPP project. After the switch to the public GitHub project, pull requests were used among the developers in a not quite appropriate way to capture features and bugs. <strong>Pull requests are a means of organizing joint coding work in the repository and should not be used for requirements engineering</strong>. <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests">[5]</a></p><p>The following table summarizes the facets of the different approaches to iOS app development over the months up to January 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fujF2_kPRvjwcQTD.png" /></figure><p>Our approach to determine features and bugs (and code changes resulting from them) was to derive their type, such as “feature”, “enhancement” and “bug”, from labels and keywords of GitHub PRs and issues. More details can be found in the appendix.</p><p>Determining the GitHub PR/issue types has been even more difficult for the Android version of the app, as there are significantly fewer PRs with labels and identifiable keywords, which is especially true for the months of 2020 through September. This can also be seen in the percentage of development effort for features, enhancements and bugs captured by DETANGLE. For the iOS app, over 70% of the development effort measured by DETANGLE could be attributed to the said types, while for Android development it accounts for just under 50% of the development effort. Therefore, we can only claim valid statements for the Corona iOS app development.</p><p>Regardless of the circumstances of the analysis, we hope that the approach emerging in Q4 will establish itself for the development of further versions. The procedures for the iOS and Android app still show certain differences, which we will not go into here. <strong>For both approaches, however, the use of the non-public SAP JIRA ticketing system makes the further development of the app appear intransparent to a certain extent.</strong></p><h3>Feature-Coupling and Feature-Effort — Be in The Know Without Code Knowledge</h3><p>Fortunately, conclusions about the architecture quality can be drawn by the mere observation of the features of a version, without requiring the reader to have knowledge about the code. With a suitable visualization of feature coupling, it can be determined to what extent related features affect the same code locations or whether they already scatter across the code base and are interwoven via a high intersection with the code locations of other “foreign” features in the code.</p><p>This opens up space for discussions between those responsible for the product and the engineers, architects and developers about the quality of the architecture in connection with the future relevance of features. If certain features (e.g., risk calculation) are expected to have extensions or variations whose feature coupling across the code base is evidently high a quick and informed decision can be made by all stakeholders to take prioritized refactoring actions of the code behind these features first.</p><p>In the following we look at the related features for the respective versions V1.7 to V1.11 as examples. For “didactic” reasons we start with V1.10, come back to V1.11 and then move on to V1.9 to V1.7.</p><h4>Feature-Set in V1.10: Contact Diary</h4><p>The defining feature set of version 1.10 <a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-10/">[8]</a> was the contact diary, in which the user can record his contacts to people and the meeting place and trace them back over two weeks.</p><p>GitHub PRs that we were able to assign to the version as features (or parts of it; keywords: “diary”, “legal” and “journal”):</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1720">#1720</a>: Feature/4199 contact journal UI tests</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1707">#1707</a>: Feature/task 4259 info screen legal texts</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1701">#1701</a>: Feature/4232 diary unit test</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1694">#1694</a>: Feature/3917 contact diary (STORY merge, already reviewed code)</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1687">#1687</a>: Feature/4174 diary edit entries screen</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1676">#1676</a>: Feature/3917 4180 contact diary persistence</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1670">#1670</a>: Feature/4172 diary day screen</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1651">#1651</a>: Feature/4171 diary overview screen</li></ul><p>The following diagram takes a look at these features. Each arc along the circle represents a feature (= GitHub issue/PR). The width of an arc shows the spent feature-effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/538/1*ZfMxC7KB1qZpM2z2qxQkPg.png" /><figcaption>Figure 5: Purely local <em>feature-coupling</em> in V1.10</figcaption></figure><p>The following conclusions can already be drawn visually:</p><ol><li>Two of the numbered features have a high effort, which indicates a medium-large effort of this feature set in total.</li><li>The features of version 1.10 are almost completely coupled only with each other. It is therefore a purely local coupling based on new code. There is only one coupling to an existing feature from another version.</li><li>The strong coupling of the features from version 1.10 among themselves appears unproblematic. Even with good architecture quality, it can be seen as a normal phenomenon: such couplings can certainly occur when implementing a new feature set up to the development of a consolidated code design.</li></ol><h4>Feature-Set in V1.11: Statistics</h4><p>The defining feature set of version 1.11 <a href="https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/">[7]</a> was the provision of various nationwide statistics published by the Robert Koch-Institute and their trends, such as the number of infected persons or the R-value.</p><p>GitHub PRs that we were able to assign to the version as features (or parts of it):</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1829">#1829</a>: Feature/3411 statistics</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1825">#1825</a>: Feature/task 4610 statistics app store screenshot</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1820">#1820</a>: Feature/task 3411 UI tests for statistics</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1807">#1807</a>: enhancement fetch &amp; cache statistical dat</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/1*wbTuM4z5-r4Oz8M5W0biJA.png" /><figcaption>Figure 6: Slight non-local <em>feature-coupling</em> in V1.11</figcaption></figure><p>Compared to version 1.10, this feature set does not show only pure local feature-coupling of the features to each other. There is some, but not excessive, coupling to other unrelated features.</p><p>Let’s continue now with version 1.9, which shows a completely different picture.</p><h4>Feature-Set in V1.9: Risk Assessment and Exposure Submission</h4><p>Version 1.9 <a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/">[9]</a> mainly consisted of the calculation of a more accurate risk assessment in case of multiple “low-risk” encounters. Furthermore, the process of handling a test result was improved. The GitHub issues/PRs for the first feature set are listed under the keyword “risk calculation”, those for the second under the keywords “submission” and “result”.</p><p>Keyword <strong>“risk calculation”</strong>:</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1550">#1550</a>: Feature/3854 risk calculation v2 ui</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1551">#1541</a>: Feature/3780 exposure window risk calculation v2 unit tests</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1518">#1518</a>: Feature/2582 risk calculation cleanup</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1457">#1457</a>: Feature/TASK 3483 risk calculation v2</li></ul><p>Keyword <strong>“submission” </strong>and <strong>“result”</strong>:</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1626">#1626</a>: Feature/task 4045 adjust exposure submission service</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1583">#1583</a>: Feature/3758 test result available cell</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1562">#1562</a>: Feature/3516 user consent switch automatic result sharing</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1561">#1561</a>: Feature/task 3630 testresult available</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1319">#1319</a>: feature Add new qr code information screen #2968</li></ul><p>Figure 7 shows the iris diagram for the first feature set of the more accurate risk assessment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*sT_eHPXHt_QcMU68_CEnMg.png" /><figcaption>Figure 7: Widespread <em>feature-coupling</em> of the risk calculation in V1.9</figcaption></figure><p>There is a sharp contrast to the picture for version 1.10 and 1.11. The following conclusion can already be drawn from a purely visual perspective: all features (numbered arcs) of the feature set are broadly coupled with many other non-related features (unnumbered arcs) over the code base, although their total effort is to be seen in the middle range.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*VwiZdpnp3iGzMXBx9D-4qg.png" /><figcaption>Figure 8: Strongly scattered <em>feature-couplin</em>g of the Corona test procedure feature-set in V1.9</figcaption></figure><p>A similar, even more intensified, picture of the local AND global feature coupling (with a high overall effort) results from the second feature set of the improved process for handling corona test results by the users.</p><p>Finally, let’s take a look at the picture in version 1.7.</p><h4>Feature-Set in V1.7: Multiple Risk Calculation</h4><p>In Version 1.7 <a href="https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/">[10]</a> (we couldn’t identify version 1.8, by the way), the feature-set of multiple risk checks per day and the GitHub issues/PRs behind it, which can be found under the keywords “package”, “download” and “cycle”, are of interest.</p><p>Keywords <strong>“package” </strong>and <strong>“download”:</strong></p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1490">#1490</a>: Feature/task 3611 risk detection only when new packages</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1489">#1489</a>: Feature/task 3667 dm disable hourly packages download</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">#1483</a>: Feature/task 3498 DM for hourly packages wifi mode toggle</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">#1472</a>: Feature/TASK 3582 increase risk calculation cycle</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1468">#1468</a>: Feature/Task 3583 Download Hour Packages on WiFi Only</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1465">#1465</a>: Feature/task 3497 download packages</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1482">#1482</a>: Feature/3298 reminder to share a positive test result</li></ul><p>Figure 9 shows a moderate <em>feature-coupling</em> of the feature-set of the multiple risk calculation to other unrelated features.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*nxhtWwNhl4yajOalJ_faQg.png" /><figcaption>Figure 9: <em>Feature-coupling</em> of risk detection in V1.7</figcaption></figure><p>However, if we add the feature set for more accurate risk assessment from version 1.9, Figure 7 and Figure 9 merge into one picture in Figure 10. It can be concluded that these two feature sets from the two different versions, which both affect the code area of risk calculation, are very strongly coupled with each other.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*ziQfAQJEkcFPkLYzIy2Kmw.png" /><figcaption>Figure 10: <em>Feature-coupling</em> of risk detection and assessment in V1.7 and V1.10</figcaption></figure><p>Let us summarize the following conclusions:</p><ol><li>Features of a feature-set from one version can be strongly coupled with each other, since the implementation of a new feature-set requires a certain consolidation of the design. This case, e.g. in the contact diary from V1.10, is not a problem.</li><li>In the case of a widespread coupling of features of a feature-set to many other unrelated, “foreign” features, these features indicate code locations which in turn point to structural weaknesses in the architecture.</li><li>The more extensive the coupling among unrelated features, the more difficult it becomes to add new features to the code base without unintended side effects.</li><li>Therefore, it’s important to identify those code areas behind the broadly coupled feature-sets, which in turn have high coupling values ​​and a high <em>feature-quality-debt index.</em></li></ol><p>The next step is to examine these source code directories and source code files more closely in order to derive recommendations for action.</p><h3>Affected Code Areas</h3><p>Table 1 below lists the source code directories with critical <em>feature-debt-index (FDI)</em> values. It refers to Figure 4 and presents the same information in the form of quantified values. For easier comparison, we have shown Figure 4 here again before the table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*a3TxEzThf6XsahfgN8a1PQ.png" /><figcaption>Figure 11 (like Figure 4): Source code folders; <em>feature-debt-index</em> on the x-axis; <em>committer-friction-index</em> on the y-axis (not relevant here)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/0*U6aEAdKvizWXlbYN.png" /><figcaption>Table1: <em>Feature-debt-index</em> in Q4 2020</figcaption></figure><p>Values ​​marked in yellow represent a signal level, while red numbers indicate that a critical value has been reached. The source code directories already mentioned in the take-aways are highlighted in the table. These are precisely those directories which are responsible for the broad <em>feature-coupling</em> of the feature-sets for infection risk assessment/calculation and the improved handling of test results from versions 1.7 and 1.9. In addition, it is evident that some of the associated test directories have also reached a signal or critical level.</p><p>It is also noticeable that some <strong>ContactDiary</strong> directories have also reached at least signal level. In the above section on the contact diary feature set of version 1.10 it was explained that this is due to the local coupling of these features with each other. This is reflected here again in the associated directories. This local coupling can be filtered when calculating the <em>feature-debt-index</em>. However, we have omitted to do so here for the sake of completeness and consistency of the statements.</p><h4>Maintenance (Bug-Fixing) as Consequence</h4><p>So what are the effects and symptoms of these high <em>feature-debt</em> values? One easily identifiable impact can be seen in the extent of maintenance effort in these source code directories. Table 2 lists the bug-fixing effort from Q4 of 2020 (sorted by extent in units of cLOC, i.e. changed lines of code, as described in <a href="https://youtu.be/aD4OQScGILo?t=790">[2]</a>). Again, some of the mentioned <strong>Exposure Submission</strong> and <strong>Risk</strong> directories are most affected by maintenance effort.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/0*qdG9se1EGk3XJUJb.png" /><figcaption>Table 2: <em>Defect-effort</em> in Q4 2020</figcaption></figure><p>Plotting the <em>feature-debt-index</em> on the x-axis and the <em>defect-effort</em> as bubble size also helps to visualize the whole thing better in Figure.12. It’s evident that there is a correlation between the <em>feature-debt-index</em> and the <em>defect-effor</em>t: the greater the <em>feature-debt</em>, the greater the bug-fixing effort (as bubble size).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*b2kBzJNcV9pMOEGp5MFcKw.png" /><figcaption>Figure 12: Defect-effort as bubble size versus <em>feature-debt-index </em>und CFI</figcaption></figure><h4>Implementation of New Features Becomes More Expensive (Complex)</h4><p>Ideally, you want to be able to measure whether adding new features becomes more difficult. Simply measuring the number of features per unit of time (e.g. quarter) results in misleading values, since the effort per feature varies greatly. In our experience, development effort per feature tends to follow the Pareto rule: about 80% of the effort is spent on about 20% of the features. In <a href="https://capeofgoodcode.com/de/2020/10/29/architektur-hotspots-trotz-guter-abhaengigkeitsstruktur/">[4]</a> and <a href="https://youtu.be/aD4OQScGILo?t=871">[11]</a> we explain an approach to prorate refactoring effort when implementing new features. The ratio of effort to the proportion of new code created for the feature plays a role. The more the ratio moves from 1 towards 2 or higher, the higher the refactoring part. This is true for individual features but also for source code directories and files.</p><p>Table 3 lists these values for source code directories. We call the said ratio of effort to newly created code for features the<em> feature-effort-effectiveness-index (FEE)</em>. Once again, it’s evident that with regard to this indicator, the same source code directories as for <em>defect-effort</em> have an FEE value greater than 1.5.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/0*x9CEaIwbc2kvzCXL.png" /><figcaption>Table 3: <em>Feature-effort-effectiveness</em> in Q4 2020</figcaption></figure><p>In this context, a visualization with the <em>feature-debt-index</em> plotted on the x-axis and the<em> feature-effort-effectiveness</em> as the color of the bubbles in Figure 12 is helpful, too. A red color means that the <em>feature-effort-effectiveness</em> of the respective directory has exceeded the critical value of 2.0, while an orange color indicates signal-level values between 1.5 and 2.0.</p><p>The identified problematic source code directories have the as we measure them with the <strong>highest maintenance efforts AND show symptoms of already occurring poor extensibility</strong> with new features. <strong>The reasons are structural weaknesses of the architecture in these areas of the code</strong><em>feature-debt-index</em>.</p><h4>Can this now be said with certainty?</h4><p>On the one hand, we can rule out poor code quality. As mentioned earlier, the SonarQube tool is used for this purpose during the development and good code quality is ensured. A further look from a new angle in Table 4 brings additional clarity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/0*46VKbmXC0H7y3M2z.png" /><figcaption>Tabelle 4: Defect-Impact im 4. Quartal 2020</figcaption></figure><p>With the <em>defect-impact</em>, we capture the extent of so-called “cognitive bugs” that arise as a consequence of a bad <em>feature-debt index</em>. The special thing about it is that, on the one hand, fixing these bugs extends across several source code files. On the other hand, follow-up bugs often occur in code areas with high FDI, and are therefore highly coupled to the previous bugs. One attempt to fix such a bug is usually not sufficient, since one loses the understanding about the interrelated code locations due to the interwoven nature of the features in the code and often does not clean up all affected code locations at once as required. More details can be found under <a href="https://youtu.be/aD4OQScGILo?t=1658">[12]</a>.</p><h4>Decrease in Code Documentation at Critical Points</h4><p>So far only the <em>defect-impact</em> for the <strong>Risk/Provider</strong> directory has reached the yellow signal level. It can therefore be concluded that there are other factors besides the FDI values that are responsible for the high <em>defect-effort</em> in the <strong>Exposure Submission</strong> directories. As already discussed, it cannot be due to the code quality. Therefore, we analyzed the status of source code documentation and its trends in the <strong>Exposure Submission</strong> and <strong>Risk</strong> directories. We consider a ratio of comments to program code without blank lines (our term for it is <em>source-code-documentation (SCD) ratio</em>) below 10% to be a critical level and within 10% to 20% to be a signal level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/0*6vru1WiKi_9iy2D9.png" /><figcaption>Table 5: <em>SCD-ratio</em> and <em>defect-effort</em> for <strong>Exposure Submission</strong> in Q4 and Jan 2021</figcaption></figure><p>When observing the trends, it is also evident that the <em>SCD-ratio</em> values in the source code files of the <strong>Exposure Submission</strong> directories have <strong>dropped sharply</strong> in the last few months up to January 2021.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/947/1*ZESuFPtKWn2PUcsVWn0UMw.png" /><figcaption>Figure 13: Trends of the <em>SCD-ratio</em> values for <strong>Exposure Submission</strong></figcaption></figure><p>In the <strong>Risk</strong> directories, there are similar, albeit less pronounced, trends and drops from Dec 2020 to Jan 2021. The SCD ratio in the relevant <strong>Risk/Provider</strong> directory (unlike the <strong>Risk/Calculation</strong> directory) is still 17% — quite close to the non-critical 20%.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/0*zXnrYNWapnvYdaOw.png" /><figcaption>Table 6: <em>SCD-ratio</em> and <em>defect-effort</em> for <strong>Risk </strong>in Q4 2020 and Jan 2021</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*6Q725ZWdLz5CqbuUeuonsQ.png" /><figcaption>Figure 14: Trends of the <em>SCD-ratio</em> values for <strong>Risk</strong></figcaption></figure><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OpVOVyB2EMdSRu3X.png" /></figure><p>Using DETANGLE, we also estimate the improvement effort to refactor these critical code areas. We consider this effort as the amount of <strong>technical debt</strong> to be repaid in the future. The details of the calculation are less interesting here. It is worth mentioning that according to DETANGLE, the estimate of this effort measured against the total effort of the last quarter Q4/2020 would correspond to a <strong>feasible effort of about one man-week.</strong></p><blockquote>We are happy to be measured on whether this statement would correspond to the real effort spent for the refactoring.</blockquote><p>We strongly recommend to express refactoring work as a separate issue type and associating refactoring commits with these tickets as described in <a href="https://capeofgoodcode.com/2020/05/02/reasonable-issue-types/">[13]</a>.</p><h3>Feature-Network-Diagrams</h3><p>Finally, we would like to draw attention to another visualization which expresses the effect of <em>feature-coupling</em> very vividly. By a feature-network-diagram we mean a network of nodes and edges that links issues to source code files.</p><p>On the one hand, the round nodes in Figure 17 represent feature, enhancement, and bug issues/PRs in GitHub. On the other hand, the rectangular nodes are source code files. There is an edge between a feature, enhancement or bug and a file just when the source code file has been modified to implement the issue/PR.</p><p>Figure 17 and Figure 18 represent two different perspectives with regard to <em>feature-coupling</em>. Figure 17 shows source code files with high <em>feature-coupling</em> values above a certain (quite low) threshold, while Figure 18 lists source code files that have very low or no <em>feature-coupling</em>.</p><p>The red circles represent bug Issues/PRs. Source code files from the <strong>Risk</strong> and <strong>Submission</strong> directories are outlined in black.</p><blockquote>You can quickly see with the naked eye that these files with high feature coupling are very often increasingly affected by bugs.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jfZZDinfG5zN3PebKAKE5g.png" /><figcaption>Figure 17: Feature-network with source code files having a high <em>feature-coupling</em>; period July 2020 until January 2021</figcaption></figure><p>Figure 18 offers a contrasting picture: Source code files with no or low-threshold feature-coupling are by and large only affected by bugs very rarely, let alone many bugs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8kJ623p1Ur-zUSWoa5UgxQ.png" /><figcaption>Figure 18: Feature-network with source files having low <em>feature-coupling</em>; period July 2020 until January 2021</figcaption></figure><blockquote>These two figures vividly illustrate the consequences of high feature-coupling. If there is no refactoring to eliminate the architectural weaknesses of the feature-coupling, these source code files represent a kind of attractors for maintenance expenses and are potentially responsible for their uncontrolled growth.</blockquote><p><strong>This article first appeared on the Cape of Good Code blog at </strong><a href="https://capeofgoodcode.com/2021/02/23/corona-warn-app-on-the-way-to-critical-technical-debt/">https://capeofgoodcode.com/2021/02/23/corona-warn-app-on-the-way-to-critical-technical-debt/</a></p><h3>Links</h3><p>[1] JCON 2020 Talk “Feature and Time-Based Software Analysis”,<br>How it works: <a href="https://youtu.be/aD4OQScGILo?t=510">https://youtu.be/aD4OQScGILo?t=510</a><br>2 minutes : 8:30–10:32</p><p>[2] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Measuring Development Effort: <a href="https://youtu.be/aD4OQScGILo?t=790">https://youtu.be/aD4OQScGILo?t=790</a><br>5 minutes : 13:10–18:27</p><p>[3] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Calculating Feature Debt: <a href="https://youtu.be/aD4OQScGILo?t=1073">https://youtu.be/aD4OQScGILo?t=1073</a><br>10.5 minutes: 17:53–28:30</p><p>[4] Blog Cape of Good Code, “Architecture Hotspots — Despite Good Dependency Structures”<br><a href="https://capeofgoodcode.com/2020/10/29/architecture-hotspots-despite-good-dependency-structures/">https://capeofgoodcode.com/2020/10/29/architecture-hotspots-despite-good-dependency-structures/</a></p><p>[5] Github Pull Requests:<br><a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests">https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests</a></p><p>[6] Release description 1.12 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2021-02-04-cwa-1-12-announcement/">https://www.coronawarn.app/de/blog/2021-02-04-cwa-1-12-announcement/</a></p><p>[7] Release description 1.11 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/">https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/</a></p><p>[8] Release description 1.10 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-12-28-corona-warn-app-version-1-10/">https://www.coronawarn.app/de/blog/2020-12-28-corona-warn-app-version-1-10/</a></p><p>[9] Release description 1.9 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/">https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/</a></p><p>[10] Release description 1.7 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/">https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/</a></p><p>[11] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Measure refactoring proportions in feature implementations:<br><a href="https://youtu.be/aD4OQScGILo?t=871">https://youtu.be/aD4OQScGILo?t=871</a><br>3 minutes : 14:34–17:50</p><p>[12] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Cognitive Bugs: <a href="https://youtu.be/aD4OQScGILo?t=1658">https://youtu.be/aD4OQScGILo?t=1658</a><br>2 minutes: 27:38–28:22</p><p>[13] Blog Cape of Good Code, “Improving Software Quality by Choosing Reasonable Issue Types”,<br><a href="https://capeofgoodcode.com/2020/05/02/reasonable-issue-types/">https://capeofgoodcode.com/2020/05/02/reasonable-issue-types/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ee545f076d5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/corona-warn-app-on-the-way-to-critical-technical-debt-4ee545f076d5">Corona-Warn-App — On the Way To Critical Technical Debt?</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Corona-Warn-App — Auf dem Weg zu kritischen Technischen Schulden?]]></title>
            <link>https://medium.com/cape-of-good-code/corona-warn-app-auf-dem-weg-zu-kritischen-technischen-schulden-3344b62db2f0?source=rss----e330fa033f65---4</link>
            <guid isPermaLink="false">https://medium.com/p/3344b62db2f0</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[softwarequalität]]></category>
            <category><![CDATA[corona-warn-app]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Konstantin Sokolov]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 08:30:31 GMT</pubDate>
            <atom:updated>2021-02-24T14:36:28.535Z</atom:updated>
            <content:encoded><![CDATA[<h3>Corona-Warn-App — Auf dem Weg zu kritischen Technischen Schulden?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Z8uPMwQgeYsN-v3U.png" /><figcaption><em>10. Februar 2021, von Egon Wuchner und Konstantin Sokolov</em></figcaption></figure><p>Wir haben unsere <a href="https://capeofgoodcode.com/de/">DETANGLE Analyse Suite</a> zur Bewertung der Qualität und weiterer Risiken bzgl. Wartbarkeit und Erweiterbarkeit auf die Corona-Warn-App für <a href="https://github.com/corona-warn-app/cwa-app-ios">iOS</a> und <a href="https://github.com/corona-warn-app/cwa-app-android">Android</a> angewendet. Bis Version 1.11 haben wir ermittelt, wie sich Features und Bugs im Code wiederfinden, haben die <em>Architektur-Qualität</em> gemessen, die <em>Technischen Schulden</em> geschätzt und die <em>Risiken der Wissensverteilung</em> analysiert.</p><p>Vorab möchten wir in aller Deutlichkeit unsere Anerkennung aussprechen, welche Leistung mit der Erstellung der Corona-Warn-App erbracht wurde. Das Gesamtsystem wurde unter hoher Medienaufmerksamkeit, engem Zeitrahmen, politischem Druck und sehr hohen Datenschutzanforderungen entwickelt. Wir möchten mit diesem Blog nun auf Qualitätsaspekte und Risiken hinweisen, die nach einem anfänglichen Entwicklungsstadium aus unserer Sicht Beachtung finden sollten.</p><p>Obwohl die aktuellen Code-Qualitätsmetriken aus SonarQube, dem verwendeten Tool zur Code-Analyse bei der Entwicklung der Corona-Warn-App, immer wieder bis Version 1.11 ein sehr gutes Rating für beide Apps aufzeigen, gibt es dennoch auffallende Findings, welche diesem guten Bild in Teilen widersprechen. In diesem Post gehen wir auf die Ergebnisse zur <a href="https://github.com/corona-warn-app/cwa-app-ios">iOS-Version</a> der App ein.</p><h3>Take-Aways</h3><h4>1. Weniger Entwicklungsaufwand für Features, mehr fürs Bug-Fixing</h4><p>Bei der Betrachtung der Aufwandsverteilung für Features, Bugs und sonstige Arbeiten fällt auf, dass in Q4/2020 und in Jan/2021 der aufgebrachte Entwicklungsaufwand für Features in 3 von 4 Monaten (inkl. Januar 2021) unter den Wert von 60% des Gesamtaufwandes gefallen ist. Umgekehrt ist der Wartungsaufwand in Form von Bug-Fixing in 2 von 4 Monaten (inkl. Januar 2021) auf 20% des Gesamtaufwandes gestiegen.</p><figure><img alt="Corona-Warn-App Aufwand Trends: Bug-Fixing und Feature-Aufwand" src="https://cdn-images-1.medium.com/max/392/0*fD1vaaG3dFnHHFJ0.png" /><figcaption>Abb. 1: Monate Juli 2020 — Jan 2021; links: Anteil Bug-Fixing-Aufwand am Gesamtaufwand; rechts: Anteil Feature-Entwicklungsaufwand am Gesamtaufwand</figcaption></figure><p>Das sind noch keine äußerst besorgniserregenden Aufwandsverteilungen, aber sie könnten <strong>Frühindikatoren </strong>für eine Verstärkung <strong>des Trends eines sinkenden Feature-Durchsatzes darstellen</strong>.</p><p>Erläuterung der Messung des Entwicklungsaufwandes siehe <a href="https://youtu.be/aD4OQScGILo?t=790">[2]</a>.</p><h4>2. Signal-Wert für den Feature-Debt in Q4/2020 überschritten</h4><p>Anhand der DETANGLE Architektur-Qualitätsmetriken ist aber am Ausmaß der vorgefundenen <em>Feature-Kopplung</em> und <em>Feature-Kohäsion</em> im Code erkennbar, unter welchem Zeitdruck die ersten Versionen der Apps entwickelt werden mussten. In den Releases über die Sommermonate im dritten Quartal des Jahres 2020 war zwar ein Abnehmen der Technischen Schulden, wie wir sie messen, erkennbar. Aber ab Version 1.7 und bis Version 1.11 wurde unserer Meinung nach im vierten Quartal des Jahres 2020 wieder ein Signal-Wert des gemessenen <em>Feature-Debt-Index</em> erreicht.</p><figure><img alt="Corona-Warn-App Feature-Erweiterbarkeit" src="https://cdn-images-1.medium.com/max/392/0*k0NYQFkHJy909I-L.png" /><figcaption>Abb. 2: Quartal 2, 2020 — Quartal 4,2020 Links: <em>Feature-Debt-Index (FDI)</em> über die 3 Quartale des Jahres 2020</figcaption></figure><p>Erläuterungen zur <em>Feature-Kopplung</em>, <em>Feature-Kohäsion</em> und des <em>Feature-Debt-Index</em> finden sich unter <a href="https://youtu.be/aD4OQScGILo?t=510">[1]</a> und <a href="https://youtu.be/aD4OQScGILo?t=1073">[3].</a></p><h4>3. Architektur-Qualität dreier Feature-Blöcke zeigt Auffälligkeiten</h4><p>Es besteht z.B. ein steigender Handlungsbedarf bezogen auf die Architektur-Qualität der Code-Module, wo folgende Features umgesetzt wurden:</p><ol><li>Die <strong>mehrmalige Risikoberechnung pro Tag mit Version 1.7 vom Okt/2020 </strong>mit Berücksichtigung von 30min-Zeitfenstern zur Exposure Detektion der Übereinstimmungen von Begegnungen mit den heruntergeladenen anonymen Diagnose Keys von Covid-Betroffenen.<br>Die entsprechenden GitHub Issues/PRs sind hauptsächlich unter dem Stichwort “risk calculation” und “download packages” zu finden).</li><li>Die <strong>genauere Risikobewertung mit Version 1.9 vom Dez/2020, </strong>so dass mehrere einzelne Begegnungen mit niedrigem Risiko (grün) zu einem erhöhten Risiko (rot) führen können.<br>Diese GitHub Issues/PRs sind im wesentlichen unter dem Stichwort “risk calculation” auffindbar.</li><li>Die <strong>verbesserten Abläufe zum Abrufen und Melden eines Test-Ergebnisses.<br></strong>Viele dieser GitHub Issues/PRs tragen das Stichwort “exposure submission” wiederum im Titel.</li></ol><figure><img alt="Corona-Warn-App — Kopplung der Risk Calculation Features" src="https://cdn-images-1.medium.com/max/603/0*CcyhKol6xZm4-vP0.png" /><figcaption>Abb. 3: Kopplung der Risk Calculation Features (<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">1472</a>,<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1457"> 1457</a>, <a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1518">1518</a>,<a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1541"> 1541</a>, <a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1550">1550</a>) zu anderen Features (nicht-nummerierte Kreisbögen) aus 4. Quartal, 2020.</figcaption></figure><p>Abb. 3 zeigt auf einem Kreis alle GitHub Issues/PRs aus dem 4. Quartal des Jahres 2020 als einzelne Kreisbögen. Eine Verbindung zwischen zwei Bögen stellt die Kopplung zwischen zwei Features dar. Die nummerierten Kreisbögen auf der rechten Seite repräsentieren die Features zur genaueren Risikoberechnung aus V1.9. Die Verbindungen legen eindeutig nahe, dass diese Features nicht nur untereinander, sondern zu vielen anderen umgesetzten Features aus dem 4. Quartal verwoben sind. Je umfangreicher die Kopplung unter nicht-verwandten Features, desto schwieriger wird es, neue Features ohne unbeabsichtigte Seiteneffekte zur Codebasis hinzuzufügen.</p><p>Aus unserer Sicht ist damit zu rechnen, dass weitere Arten der Risikoberechnungen wie potentiell bei Besuchen von Restaurants, die einen QR-Code zum Einscannen bereitstellen, in die App Eingang finden werden. Was aber wiederum durch die nachlassende Erweiterbarkeit dieser Features aus V1.9 oder Ergänzbarkeit dieses Codes um neue Features ohne ein Refactoring zu stark ansteigendem Wartungsaufwand in Form von Bugs führen dürfte.</p><h4>4. Quellcode-Verzeichnisse mit erhöhtem Feature-Debt</h4><p>Die oben genannten Feature-Cluster konnten wir den jeweiligen Code-Bereichen mit einem erhöhten <em>Feature-Debt-Index</em> in Abb. 4 zuordnen.</p><figure><img alt="Corona-Warn-App -Feature-Debt-Index Bubble Chart" src="https://cdn-images-1.medium.com/max/592/0*hkf8K5kUhz91RP2K.png" /><figcaption>Abb 4. Quellcode-Verzeichnisse. <em>Feature-Debt-Index</em> auf der x-Achse; <em>Committer-Friction-Index</em> auf der y-Achse (hier nicht relevant)</figcaption></figure><p>Dabei handelt es sich im Wesentlichen um folgende Quellcode-Verzeichnisse:</p><pre>src/xcode/ENA/ENA/Source/Services/Exposure Submission<br>src/xcode/ENA/ENA/Source/Scenes/Exposure Submission<br>src/xcode/ENA/ENA/Source/Scenes/Exposure Submission/View<br>src/xcode/ENA/ENA/Source/Services/Exposure Transaction<br>src/xcode/ENA/ENA/Source/Models/Exposure<br>src/xcode/ENA/ENA/Source/Services/Risk/Provider<br>src/xcode/ENA/ENA/Source/Services/Risk/Calculation</pre><p>In Abbildung 4 werden die Werte des <em>Feature-Debt-Index</em> für Verzeichnisse auf der x-Achse dargestellt (die y-Werte repräsentieren den <em>Committer-Friction-Index (CFI)</em>, der erst im zweiten Blog zur Sprache kommen wird). Die Lines of Code der Verzeichnisse kommen durch die Größe der Blasen zum Ausdruck. Die oben genannten <strong>Exposure Submission </strong>Verzeichnisse fallen unter die größten roten Verzeichnisse, während wiederum die <strong>Risk</strong> Verzeichnisse die größten beiden gelben Blasen darstellen. Diese genannten Verzeichnisse machen ca. 20% der Codebasis aus und sind in Q4/2020 um 50% bis 150% jeweils angewachsen.</p><h4>5. Abnehmende Quellcode-Dokumentation</h4><p>Die Quellcode-Dokumentation des gesamten Code-Basis ist in den letzten drei Monaten bis Ende Jan 2021 auf einen niedrigen Wert von 9% (an Kommentaren in Quelldateien im Vergleich zu deren nicht-leeren Zeilen Quellcode) gefallen. Insbesondere manche der oben als kritisch erachteten Quellcode-Verzeichnisse zeigen kritische Werte von 9% auf. Es liegt also eine Kombination von architekturellen Schwächen und mangelnder Verständlichkeit des Codes aufgrund geringer Code-Dokumentation in diesen Verzeichnissen vor.</p><h4>6. Kritische Quellcode-Verzeichnisse haben Konsequenzen</h4><p>Konsequenzen in den o.g. Verzeichnissen werden bereits ersichtlich in:</p><p>1. Einem nötigen, aber machbaren Abbau der Technische Schulden:</p><p>Der aktuelle Wartungsaufwand ist bereits um einiges höher als die Technischen Schulden, worunter wir den geschätzten Aufwand zur Verbesserung der Architektur-Qualität verstehen. Es lohnt sich daher, hier mit einem Refactoring anzusetzen, zumal der Verbesserungsaufwand gemessen an dem pro Monat umgerechneten Gesamtaufwand des letzten Quartals Q4/2020 ca. einer Mannwoche entsprechen würde.</p><p>2. Einem aktuell hohen <em>Feature-Effort-Effectiveness-Index</em>:</p><p>Der Aufwand zur Entwicklung neuer Features geht bereits mit einem erhöhten Refactoring-Aufwand zu deren Umsetzung einher.</p><h4>7. Erhöhter Feature-Debt auch in test-Verzeichnissen</h4><p>Einige der entsprechenden <strong>test</strong>-Verzeichnisse zu den obigen Quellcode-Verzeichnissen weisen auch kritische <em>Feature-Debt-Index</em> Werte auf. D.h. sie sind bezüglich der umgesetzten Features genauso verwoben wie der zu testende Code, so dass das Hinzufügen von Tests für neue Features auch mit Mehraufwand im Sinne von Umarbeiten verbunden sein dürfte.</p><h4>8. Zugang zu Projekt-Issues eingeschränkt</h4><p><strong>Aufgrund des alleinigen Zugangs zu den GitHub-Projekten und ohne Zugriff auf die Tickets des nicht-öffentlichen SAP JIRA Issue Trackers können wir valide Ergebnisse nur für die iOS App anführen.</strong></p><p>Die Gründe dafür werden unten genauer beleuchtet. Erschwerend kommt hinzu, dass die Erfassung von Bugs, Features und deren Referenzierung bei der Entwicklung selbst innerhalb der iOS- und Android-App im Laufe des Projektes über die Monate sehr unterschiedlich gehandhabt wurde.</p><p>Um unsere Findings zur Corona-Warn-App-Entwicklung optimal für beide Apps nutzbar zu machen, müssten wir allerdings über die öffentlichen GitHub-Projekte hinaus ein Lesezugang zu den Tickets des nicht-öffentlichen SAP JIRA EXPOSUREAPP Projektes erhalten.</p><h4>9. Benutzer-Feedback zu Features einholen?</h4><p>Wir möchten als letztes “Take-Away” einen Vorschlag machen. Es gibt 25 Millionen Nutzer der Apps. Das ist eine nicht zu unterschätzende Möglichkeit anonymisiert Rückmeldungen einzuholen; sei es zur Meldung von Fehlern oder für freiwillige Umfragen im Rahmen der App-Nutzung mit Feedback zu potentiell neuen (oder laufenden) Features. Selbst die Meinung zu Feature-Optionen könnte man damit erfragen, um darauf aufbauend Entscheidungen für die Weiterentwicklung zu treffen.</p><h3>Ausblick — Risiken der Wissensverteilung</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/0*D-63ZOQiYN9InH5j.png" /></figure><p>Aufgrund des Umfangs der Analysedaten war es uns in diesem Teil nicht möglich auf folgende Fragen eingehen:</p><ul><li>Wie sieht die Organisation bzw. Selbst-Organisation der Entwicklung aus?</li><li>Gibt es Stabilitätsanker an Entwicklern, die konstant an der App oder dem System arbeiten? Ist das Software-Wissen zu den Apps gut verteilt?</li><li>Arbeiten die Entwickler gut zusammen, so dass das Team effektiv entwickelt?</li><li>Oder birgt die Zusammenarbeit ein gewisses Risiko und führt zu Qualitätsproblemen wie einer erhöhten Fehlerdichte?</li></ul><p>Der zweite Teil der Blogserie wird Antworten darauf suchen und auf die Risiken in der Wissensverteilung bei der Entwicklung der Corona iOS App eingehen.</p><h4>Im Weiteren werden in diesem ersten Teil der Blogserie folgende Aspekte behandelt:</h4><ul><li>wie wir bei der Analyse anhand des Zugangs zu den Github Daten aber ohne Zugang zu den JIRA Tickets vorgangen sind</li><li>wie wir zu den oberen Ergebnissen gekommen sind</li><li>welche Empfehlungen wir im Detail zum Abbau der Technischen Schulden und gegen die Erosion der Feature-Erweiterbarkeit geben würden</li></ul><h3>Eine weitere Analyse — warum?</h3><p>In der Software Entwicklung ist es gang und gäbe, Softwarequalität mittels Metriken der Code-Qualität zu messen. <a href="https://www.sonarqube.org/">SonarQube</a> hat sich unter Entwicklern fast schon als “Industriestandard” etabliert, um beispielsweise potentielle Bugs oder Code Smells, also schlechte Codestellen, im Code ausfindig zu machen. Das Tool bietet auch eine Schätzung der Technischen Schulden gemessen am Aufwand zur Beseitigung der besagten Codestellen an.</p><p>SonarQube wurde daher auch bei der Entwicklung der beiden Corona-Warn-Apps durchgehend bei der gesamten Entwicklung eingesetzt. Die Metriken von SonarQube zur Code-Qualität deuten für die beiden Corona-Warn-Apps durchgehend sehr gute Ratings an.</p><h4>Bekanntermaßen ist Code-Qualität aber nicht alles. Die Frage nach der Architektur-Qualität ist mindestens genauso relevant!</h4><p>Ganz konkret möchte man wissen, inwieweit die Architektur der beiden Apps die Entwicklung neuer Features oder die Erweiterung der bestehenden Funktionalität ermöglicht. Aktuelle Ansätze bewerten eine gute Architekturqualität oftmals entlang gewisser Muster zu strukturellen Abhängigkeitsgraphen wie Aufruf-Hierarchien und -Zyklen zwischen Code-Modulen. Der Aussagewert dieser Bewertungen ist nur bedingt relevant, wenn es um die Fragestellung geht, wie weit die aktuelle Architektur die Entwicklung neuer Features begünstigt <a href="https://capeofgoodcode.com/de/2020/10/29/architektur-hotspots-trotz-guter-abhaengigkeitsstruktur/">[4]</a>.</p><p>Wir haben daher mittels der DETANGLE Analyse Suite die Entwicklung der Apps anhand der Historie der GitHub Code-Repositories und der GitHub Issues und Pull Requests bezüglich der Architektur-Qualität analysiert und daraus priorisierte Handlungsempfehlungen abgeleitet, um die Wartungskosten in Form von Bug-Fixing aufgrund Technischer Schulden in Schach zu halten und die Feature-Erweiterbarkeit der iOS-App in bestimmten (aus unserer Sicht) künftig relevanten Code-Bereichen wiederherzustellen.</p><h3>Zum Vorgehen</h3><p>Die Erfassung von Bugs, Features und deren Referenzierung bei der Entwicklung des Codes wurde im Laufe des Projektes mittels GitHub Issues, GitHub Pull Requests (PRs) und JIRA Tickets des SAP-internen JIRA EXPOSUREAPP Projektes über verschiedene Zeitperioden unterschiedlich gehandhabt. Dabei wurde, unseres Erachtens, nach dem Umstieg als öffentliches Github Projekt das technische Koordinationsmittel der Pull Requests unter den Entwicklern im falschen Sinne zur Erfassung von Features und Bugs verwendet. <strong>Pull Requests sind hingegen ein Mittel zur Organisation gemeinsamer Codier-Arbeiten im Repository und sollten nicht fürs Requirements-Engineering verwendet werden.</strong> <a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests">[5]</a></p><p>Die folgende Tabelle fasst die Facetten des unterschiedlichen Vorgehens bei der Entwicklung der iOS App über die Monate bis Jan 2021 zusammen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*15n3bPl_w3zBXUPS.png" /></figure><p>Unser Vorgehen zum Bestimmen von Features und Bugs (und der auf sie zurückgehenden Änderungen im Code) bestand nun darin, aus Labels und Keywords von Github PRs und Issues deren Typ wie “feature”, “enhancement” und “bug” abzuleiten. Die Details dazu finden sich wiederum im <a href="https://capeofgoodcode.com/de/2021/02/11/corona-warn-app-auf-dem-weg-zu-kritischen-technischen-schulden/#Appendix_-_Details_zum_Vorgehen">Appendix</a>.</p><p>Die Bestimmung der Github PR/Issue Typen hat sich bei der Corona Android App nochmals schwieriger gestaltet, da wesentlich weniger PRs mit Labels und identifizierbaren Keywords vorhanden sind, was vor allem auf die Monate des Jahres 2020 bis September zutrifft. Das ist auch am prozentualen Anteil des durch DETANGLE erfassten Entwicklungsaufwandes für features, enhancements und bugs zu erkennen. Für die iOS App konnten über 70% des durch DETANGLE gemessenen Entwicklungsaufwandes den besagten Typen zugeordnet werden, während es bei der Android Entwicklung knapp 50% des Entwicklungsaufwandes ausmachen. Daher können wir nur valide Aussagen für die Corona iOS App Entwicklung beanspruchen.</p><p>Unabhängig von den Umständen der Analyse ist zu hoffen, dass sich das im 4. Quartal abzeichnende Vorgehen für die weitere Versionsentwicklung etabliert. Dabei weisen die Vorgehensweisen bei der iOS und der Android App noch immer gewisse Unterschiede aus, auf die wir hier nicht eingehen. <strong>Für beide Vorgehensweisen gilt aber, dass die Verwendung des nicht-öffentlichen SAP JIRA Ticketingsystems die weitere Entwicklung der App in gewissem Grade doch intransparent erscheinen lässt.</strong></p><h3>Feature-Kopplung und Feature-Aufwand — Durchblick ohne Code-Kenntnisse</h3><p>Erfreulicherweise lassen sich Schlüsse zur Architektur-Qualität bereits durch die reine Betrachtung der Features einer Version ziehen, ohne als Leser über Kenntnisse des Codes verfügen zu müssen. Durche eine geeignete Visualisierung der <em>Feature-Kopplung</em> lässt sich feststellen, inwieweit verwandte Features die gleichen Code-Stellen betreffen oder ob sie bereits über die Codebasis streuen und über eine hohe Schnittmenge zu den Code-Stellen anderer “fremder” Features im Code verwoben sind.</p><p>Damit eröffnet sich der Raum für Diskussionen zwischen den Produkt- bzw. Projektverantwortlichen und den Technikern, den Architekten bzw. den Entwicklern über die Qualität der Architektur in Verbindung mit der künftigen Relevanz von Features. Falls für bestimmte Features (z.B. die Risikoberechnung) mit Erweiterungen oder Variationen zu rechnen ist, deren <em>Feature-Kopplung</em> über die Code-Basis hinweg ohne Durchsicht des Codes ersichtlich hoch ist, kann man schnell und fundiert die Entscheidung zur Ergreifung von priorisierten Refactoring-Maßnahmen des Codes hinter diesen Features gemeinsam mit allen Stakeholdern treffen.</p><p>Im Folgenden gehen wir exemplarisch den verwandten Features für die jeweiligen Versionen V1.7 bis V1.11 nach. Dabei fangen wir aus “didaktischen” Gründen mit V1.10 an, kommen auf V1.11 zurück und gehen dann zu V1.9 bis V1.7 über.</p><h4>Feature-Set in V1.10: Kontakttagebuch</h4><p>Das bestimmende Feature-Set der Version 1.10 <a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-10/">[8]</a> war das Kontakttagebuch, worin der Benutzer seine Kontakte zu Personen und den Treffpunkt festhalten und über zwei Wochen zurückverfolgen kann.</p><p>GitHub PRs, die wir als Features (oder Teilarbeiten davon) der Version zuordnen konnten (Stichwort: “diary”, “legal” und “journal“):</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1720">#1720</a>: Feature/4199 contact journal UI tests</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1707">#1707</a>: Feature/task 4259 info screen legal texts</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1701">#1701</a>: Feature/4232 diary unit test</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1694">#1694</a>: Feature/3917 contact diary (STORY merge, already reviewed code)</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1687">#1687</a>: Feature/4174 diary edit entries screen</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1676">#1676</a>: Feature/3917 4180 contact diary persistence</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1670">#1670</a>: Feature/4172 diary day screen</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1651">#1651</a>: Feature/4171 diary overview screen</li></ul><p>Das folgende Diagramm wirft einen Blick auf diese Features. Jeder Bogen entlang des Kreises stellt ein Feature (=GitHub Issue/PR) dar. Die Breite eines Bogens bildet den erbrachten Feature-Aufwand ab.</p><figure><img alt="Corona-Warn-App Feature-Kopplung in V1.10" src="https://cdn-images-1.medium.com/max/538/0*ItAk6y_QIwUkh0ib.png" /><figcaption>Abb. 5: Rein lokale <em>Feature-Kopplung</em> in V1.10</figcaption></figure><p>Es lassen sich visuell bereits folgende Schlüsse ziehen:</p><ol><li>Zwei der nummerierten Features weisen einen hohen Aufwand auf, was insgesamt auf einen mittel-großen Aufwand dieses Feature-Sets hinweist.</li><li>Die Features der Version 1.10 sind fast zu 100% nur untereinander gekoppelt. Es handelt sich also um eine rein lokale Kopplung basierend auf neuem Code. Es besteht nur eine Kopplung zu einem bestehenden Feature aus einer anderen Version.</li><li>Die starke Kopplung der Features aus Version 1.10 untereinander erscheint unproblematisch und selbst bei einer guten Architektur-Qualität eher als eine normale Erscheinung bei der Umsetzung eines neuen Feature-Sets bis zur Herausbildung eines konsolidierten Code-Designs für die neuen Features.</li></ol><h4>Feature-Set in V1.11: Statistik</h4><p>Das bestimmende Feature-Set der Version 1.11 <a href="https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/">[7]</a> bestand in der Bereitstellung verschiedener vom Robert-Koch-Institut veröffentlichter bundesweiter Statistiken und deren Trends wie z.B. der Anzahl der Infizierten oder des R-Wertes.</p><p>GitHub PRs, die wir als Features (oder Teilarbeiten davon) der Version zuordnen konnten:</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1829">#1829</a>: Feature/3411 statistics</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1825">#1825</a>: Feature/task 4610 statistics app store screenshot</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1820">#1820</a>: Feature/task 3411 UI tests for statistics</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1807">#1807</a>: enhancement fetch &amp; cache statistical dat</li></ul><figure><img alt="Corona-Warn-App — Feature-Kopplung der Statistik Features" src="https://cdn-images-1.medium.com/max/433/0*C5sniSwe5DXTSCwZ.png" /><figcaption>Abb. 6: Leichte nicht-lokale <em>Feature-Kopplung</em> in V1.11</figcaption></figure><p>Im Vergleich zu Version 1.10 handelt es sich bei diesem Feature-Set nicht um ein rein lokale <em>Feature-Kopplung</em> untereinander. Es ist eine gewisse, aber nicht übermäßige, Kopplung zu anderen nicht-verwandten Features erkennbar.</p><p>Fahren wir nun mit Version 1.9 fort, für die sich ein völlig neues Bild ergibt.</p><h4>Feature-Set in V1.9: Risikobewertung und Testablauf</h4><p>Version 1.9 <a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/">[9]</a> war bestimmt von der Berechnung einer genaueren Risikobewertung im Falle mehrerer “low-risk” Begegnungen. Des Weiteren wurde der Ablauf bei der Handhabung eines Testergebnisses verbessert. Die Github Issues/PRs zum ersten Feature-Set sind unter dem Stichwort “risk calculation”, die zum zweiten unter dem Stichwort “submission” und “result” aufgelistet.</p><p>Stichwort <strong>“risk calculation”</strong>:</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1550">#1550</a>: Feature/3854 risk calculation v2 ui</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1551">#1541</a>: Feature/3780 exposure window risk calculation v2 unit tests</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1518">#1518</a>: Feature/2582 risk calculation cleanup</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1457">#1457</a>: Feature/TASK 3483 risk calculation v2</li></ul><p>Stichwort <strong>“submission” </strong>und <strong>“result”</strong>:</p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1626">#1626</a>: Feature/task 4045 adjust exposure submission service</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1583">#1583</a>: Feature/3758 test result available cell</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1562">#1562</a>: Feature/3516 user consent switch automatic result sharing</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1561">#1561</a>: Feature/task 3630 testresult available</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1319">#1319</a>: feature Add new qr code information screen #2968</li></ul><p>Abbildung 7 erfasst nun das Iris-Diagramm zum ersten Feature-Set der genaueren Risikobewertung:</p><figure><img alt="Corona-Warn-App — Feature-Kopplung der Risikoberechnung in V1.9" src="https://cdn-images-1.medium.com/max/567/0*TsdQCUQVTHEssFaU.png" /><figcaption>Abb. 7: Breitgestreute <em>Feature-Kopplung</em> der Risikoberechnung in V1.9</figcaption></figure><p>Es ergibt sich ein scharfer Kontrast zum Bild zur Version 1.10 und 1.11. Rein visuell lässt sich bereits folgender Schluss ziehen: alle Features (nummerierte Bögen) des Feature-Sets sind breit mit vielen anderen nicht-verwandten Features (nicht-nummerierte Bögen) global über die Codebasis gekoppelt, obwohl ihr Gesamt-Aufwand im mittleren Bereich anzusiedeln wäre.</p><figure><img alt="Corona-Warn-App — Feature-Kopplung Corona-Testablauf in V1.9" src="https://cdn-images-1.medium.com/max/387/0*yC3lvY5cGxMaNf64.png" /><figcaption>Abb. 8: Stark-gestreute <em>Feature-Kopplung</em> bzgl. Corona-Testablauf in V1.9</figcaption></figure><p>Ein ähnliches, noch verschärftes, Bild der lokalen UND globalen <em>Feature-Kopplung</em> (bei einem hohen Gesamtaufwand) ergibt sich beim zweiten Feature-Set des verbesserten Ablaufs zur Handhabung durch den User im Falle eines Corona-Testergebnisses.</p><p>Als letztes schauen wir uns noch an, welches Bild sich in Version 1.7 ergibt.</p><h4>Feature-Set in V1.7: Mehrmalige Risikokalkulation</h4><p>In Version 1.7 <a href="https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/">[10]</a> (Version 1.8 konnten wir übrigens nicht identifizieren) sind das Feature-Set der mehrmaligen Risikoüberprüfung pro Tag und die dahinterliegenden Github Issues/PRs, die unter den Stichworten “package”, “download” und „cycle“ zu finden sind, interessant.</p><p>Stichwort <strong>“package“ </strong>und <strong>“download”:</strong></p><ul><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1490">#1490</a>: Feature/task 3611 risk detection only when new packages</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1489">#1489</a>: Feature/task 3667 dm disable hourly packages download</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">#1483</a>: Feature/task 3498 DM for hourly packages wifi mode toggle</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1472">#1472</a>: Feature/TASK 3582 increase risk calculation cycle</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1468">#1468</a>: Feature/Task 3583 Download Hour Packages on WiFi Only</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1465">#1465</a>: Feature/task 3497 download packages</li><li><a href="https://github.com/corona-warn-app/cwa-app-ios/pull/1482">#1482</a>: Feature/3298 reminder to share a positive test result</li></ul><p>Abbildung 9 zeigt eine mittel-ausgeprägte <em>Feature-Kopplung</em> des Feature-Sets der mehrmaligen Risikoüberprüfung zu anderen nicht-verwandten Features.</p><figure><img alt="Corona-Warn-App iOS Feature-Kopplung Risikoüberprüfung v1.7" src="https://cdn-images-1.medium.com/max/690/0*lH_094K3SrZDtIYJ.png" /><figcaption>Abb. 9: <em>Feature-Kopplung</em> bzgl. Risikoüberprüfung in V1.7</figcaption></figure><p>Nimmt man jedoch das Feature-Set zur genaueren Risikobewertung aus Version 1.9 hinzu, so verschmelzen Abbildung 7 und Abbildung 9 zu einem Bild in Abbildung 10. Daraus lässt sich folgern, dass diese beiden Feature-Sets aus den beiden unterschiedlichen Versionen, die beide den Code-Bereich der Risikoberechnung betreffen, sehr stark untereinander gekoppelt sind.</p><figure><img alt="Corona-Warn-App iOS Feature-Kopplung bzgl. Risiko/-Überprüfung bzw. -Bewertung in V1.7 u. V1.10" src="https://cdn-images-1.medium.com/max/730/0*Qs9Bd-ac69GI92MW.png" /><figcaption>Abb. 10: <em>Feature-Kopplung</em> bzgl. Risiko-Überprüfung bzw. -Bewertung in V1.7 u. V1.10</figcaption></figure><p>Folgende Zusammenhänge noch einmal zur Erinnerung:</p><ol><li>Features eines Feature-Sets aus einer Version können stark untereinander gekoppelt sein, da es bei der Implementierung eines neuen Feature-Sets einer gewissen Konsolidierung des Designs bedarf. Dieser Fall, wie z.B. im Kontakttagebuch aus V1.10, ist nicht weiter problematisch.</li><li>Im Falle einer breitgestreuten Kopplung von Features eines Feature-Sets zu vielen anderen nicht-verwandten, “fremden”, Features deuten diese Features auf Code-Stellen hin, die wiederum auf strukturelle Schwachstellen der Architektur verweisen.</li><li>Denn je umfangreicher die Kopplung unter nicht-verwandten Features, desto schwieriger wird es, neue Features ohne unbeabsichtigte Seiteneffekte zur Codebasis hinzuzufügen.</li><li>Daher gilt es, diejenigen Code-Bereiche hinter den breit-gekoppelten Feature-Sets zu identifizieren, die selber wiederum hohe Kopplungswerte und einen hohen <em>Feature-Quality-Debt-Index</em> aufweisen.</li></ol><p>Der nächste Schritt besteht nun darin, diese Quellcode-Verzeichnisse und Quellcode-Dateien genauer zu untersuchen, um daraus Handlungsempfehlungen abzuleiten.</p><h3>Betroffene Code-Bereiche</h3><p>Die untere Tabelle 1 führt die Quellcode-Verzeichnisse mit kritischen <em>Feature-Debt-Index (FDI)</em> Werten auf. Sie nimmt Bezug auf Abbildung 4 und stellt die gleiche Information in Form quantifizierter Werte dar. Zur leichteren Vergleichbarkeit haben wir Abb. 4 hier nochmals vor der Tabelle aufgeführt.</p><figure><img alt="Corona-Warn-App -Feature-Debt-Index Bubble Chart" src="https://cdn-images-1.medium.com/max/592/0*k1dW8_vGXnQmjNg-.png" /><figcaption>Abb. 11 (wie Abb. 4): Quellcode-Verzeichnisse. <em>Feature-Debt-Index</em> auf der x-Achse; <em>Committer-Friction-Index</em> auf der y-Achse (hier nicht relevant)</figcaption></figure><figure><img alt="Tabelle 1: Corona-Warn-App — Feature-Debt-Index im 4. Quartal 2020" src="https://cdn-images-1.medium.com/max/618/1*I9eIP0M2vVFlEiRHYfGl6Q.png" /><figcaption>Tabelle 1: <em>Feature-Debt-Index</em> im 4. Quartal 2020</figcaption></figure><p>Gelb markierte Werte stellen einen Signal-Level dar, während rote Zahlen erkennbar machen, dass ein kritischer Wert erreicht wurde. Die in den Take-Aways bereits erwähnten Quellcode-Verzeichnisse sind in der Tabelle hervorgehoben. Das sind genau diejenigen Verzeichnisse, welche für die breite <em>Feature-Kopplung</em> der Feature-Sets zur Ansteckungs-Risikobewertung/-Kalkulation und der verbesserten Handhabung von Testergebnissen aus den Versionen 1.7 und 1.9 verantwortlich sind. Zudem ist erkennbar, dass einige der dazugehörigen Test-Verzeichnisse auch einen Signal- oder kritischen Level erreicht haben.</p><p>Außerdem fällt auf, dass auch einige <strong>ContactDiary</strong> Verzeichnisse mindestens Signal-Level erreicht haben. Im oberen Abschnitt zum Feature-Set Kontaktbuch der Version 1.10 wurde dargelegt, dass es sich dabei um eine lokale Kopplung dieser Features untereinander handelt. Das spiegelt sich hier wieder in den dazugehörigen Verzeichnissen. Diese lokale Kopplung kann bei der Berechnung des <em>Feature-Debt-Index</em> herausgerechnet werden. Wir haben es hier aber aus Gründen der Vollständigkeit und der Konsistenz der Aussagen unterlassen.</p><h4>Wartung (Bug-Fixing) als Auswirkung</h4><p>Was sind nun die Auswirkungen und Symptome dieser hohen <em>Feature-Debt</em> Werte? Eine leicht erkennbare Auswirkung kann man im Umfang des Wartungsaufwands in diesen Quellcode-Verzeichnissen ausmachen. Tabelle 2 listet den Bug-fixing Aufwand aus dem 4. Quartal des Jahres 2020 auf (sortiert nach Ausmaß in der Einheit cLOC, also changed Lines of Code, wie unter <a href="https://youtu.be/aD4OQScGILo?t=790">[2]</a> beschrieben). Wiederum sind einige der erwähnten <strong>Exposure Submission </strong>Verzeichnisse und <strong>Risk</strong> Verzeichnisse am meisten vom Wartungsaufwand betroffen.</p><figure><img alt="Tabelle 2: Corona-Warn-App Defect-Effort im 4. Quartal 2020" src="https://cdn-images-1.medium.com/max/630/1*vpJ0ouT0FdfIok21B26QjA.png" /><figcaption>Tabelle 2: <em>Defect-Effort</em> im 4. Quartal 2020</figcaption></figure><p>Das Auftragen des <em>Feature-Debt-Index</em> auf der x-Achse und des <em>Defect-Efforts</em> als Bubble Size hilft in Abb. 12 das Ganze auch besser zu visualisieren. Man sieht, dass ein Zusammenhang zwischen <em>Feature-Debt-Index</em> und <em>Defect-Effort</em> besteht: je größer der <em>Feature-Debt</em>, desto größer der Bug-Fixing-Aufwand (als Bubble Size).</p><figure><img alt="Corona-Warn-App iOS Defect-Effort" src="https://cdn-images-1.medium.com/max/689/0*7u9bvov7irG6w6Rv.png" /><figcaption>Abb. 12: Defect-Effort als Bubble Size versus <em>Feature-Debt-Index </em>und CFI</figcaption></figure><h4>Implementierung neuer Features wird aufwändiger</h4><p>Idealerweise möchte man messen können, ob das Hinzufügen neuer Features schwerer fällt. Dafür einfach die Anzahl an Features pro Zeiteinheit (z.B. Quartal) zu messen, ergibt irreführende Werte, da der Aufwand pro Feature sehr variiert. Unserer Erfahrung nach gilt für Entwicklungsaufwände pro Feature eher die Pareto-Regel, dass ungefähr 80% des Aufwands für ca. 20% der Features aufgebraucht wird. Unter <a href="https://capeofgoodcode.com/de/2020/10/29/architektur-hotspots-trotz-guter-abhaengigkeitsstruktur/">[4]</a> und <a href="https://youtu.be/aD4OQScGILo?t=871">[11]</a> haben wir einen Ansatz erläutert, wie man den Refactoring-Aufwand bei der Implementierung neuer Feature anteilig berechnen kann. Dabei spielt das Verhältnis von Aufwand zu dem Anteil des neu erstellten Codes für das Feature eine Rolle. Je mehr sich das Verhältnis vom Wert 1 in Richtung 2 oder höher bewegt, desto höher sind die Refactoringanteile. Das gilt für einzelne Features aber auch für Quellcode-Verzeichnisse und -Dateien.</p><p>Tabelle 3 führt diese Zahlen für Quellcode-Verzeichnisse auf. Wir nennen das besagte Verhältnis von Aufwand zu neu erstelltem Code für Features den <em>Feature-Effort-Effectiveness-Index</em> (FEE). Dabei wird erneut ersichtlich, dass hinsichtlich dieser Kennzahl die gleichen Quellcode-Verzeichnisse wie bzgl. <em>Defect-Effort</em> einen FEE Wert größer als 1.5 aufweisen.</p><figure><img alt="Tabelle 3: Corona-Warn-App — Feature-Effort-Effectiveness im 4. Quartal 2020" src="https://cdn-images-1.medium.com/max/619/1*5M8Gby8-SomPapXLy9YAOw.png" /><figcaption>Tabelle 3: <em>Feature-Effort-Effectiveness</em> im 4. Quartal 2020</figcaption></figure><p>Auch in dem Kontext ist eine Visualisierung mit dem Auftragen des <em>Feature-Debt-Index</em> auf der x-Achse und des <em>Feature-Effort-Effectiveness</em> als Farbe der Bubbles in Abb. 12 hilfreich. Eine rote Farbe bedeutet, dass die <em>Feature-Effort-Effectiveness</em> des jeweiligen Verzeichnisses den kritischen Wert von 2.0 überschritten hat, während eine orange Färbung Signal-Level Werte zwischen 1.5 und 2.0 abbildet.</p><p>Die identifizierten problematischen Quellcode-Verzeichnisse haben die <strong>höchsten Wartungsaufwände UND weisen Symptome einer bereits eintretenden schlechten Erweiterbarkeit</strong> um neue Features auf. <strong>Die Gründe sind strukturelle Schwächen der Architektur in diesen Bereichen des Codes</strong> wie wir sie mit dem <em>Feature-Debt-Index</em> messen.</p><h4>Kann man dies nun mit Bestimmtheit sagen?</h4><p>Zum einen kann man schlechte Code-Qualität ausschließen. Wie bereits erwähnt, wird in der Entwicklung das SonarQube Tool dafür eingesetzt und für eine gute Code-Qualität Sorge getragen. Eine weitere Betrachtung aus einem neuen Blickwinkel in Tabelle 4 bringt zusätzliche Klarheit.</p><figure><img alt="Tabelle 4: Corona-Warn-App — Defect-Impact im 4. Quartal 2020" src="https://cdn-images-1.medium.com/max/583/1*j6yqTIj36V7y0b8OswBUNA.png" /><figcaption>Tabelle 4: <em>Defect-Impact</em> im 4. Quartal 2020</figcaption></figure><p>Mit dem <em>Defect-Impac</em>t erfassen wir das Ausmaß an sogenannten “Cognitive Bugs”, die sich als Konsequenz eines schlechten <em>Feature-Debt-Index</em> ergeben. Das Besondere daran ist, dass sich zum einen das Beheben dieser Bugs über mehrere Quellcode-Dateien hinweg erstreckt. Zum anderen kommt es in Code-Bereichen mit hohen <em>FDI</em> oftmals zu Folgebugs, die daher hoch zu den vorherigen Bugs gekoppelt sind. Ein Versuch zur Behebung eines solchen Bugs ist meistens nicht ausreichend, da man aufgrund der Verwobenheit der Features im Code das Verständnis über die zusammenhängenden Code-Stellen verliert, und oftmals nicht alle betroffenen Code-Stellen wie erforderlich auf einmal bereinigt. Mehr Details sind wiederum unter <a href="https://youtu.be/aD4OQScGILo?t=1658">[12]</a> zu finden.</p><h4>Rückgang an Code Dokumentation an kritischen Stellen</h4><p>Es wird aber sichtbar, dass bisher bloß der <em>Defect-Impact</em> für das <strong>Risk/Provider</strong> Verzeichnis die gelbe Signal-Stufe erreicht hat. Also lässt sich daraus durchaus schließen, dass es neben den <em>FDI</em> Werten auch andere Faktoren für den hohen <em>Defect-Effort</em> bei den <strong>Exposure Submission </strong>Verzeichnissen gibt. Wie bereits besprochen kann es nicht an der Code-Qualität liegen. Daher haben wir den Stand der Source Code Dokumentation und deren Trends in den <strong>Exposure Submission </strong>Verzeichnissen und <strong>Risk</strong> Verzeichnissen analysiert. Dabei erachten wir ein Verhältnis von Kommentaren zu Programmcode ohne Leerzeilen (unserer Bezeichnung nach die <em>Source-Code-Documentation (SCD) Ratio</em>) unter 10% als einen kritischen Level und innerhalb von 10% bis 20% als Signal-Level.</p><figure><img alt="Tabelle 5: Corona-Warn-App — Source-Code-Documentation-Ratio (SCD) und Defect-Effort für Exposure Submission im 4. Quartal 2020 und Jan 2021" src="https://cdn-images-1.medium.com/max/624/1*ZyUwfh5DqFT1fpkGpCF9Aw.png" /><figcaption>Tabelle 5: <em>Source-Code-Documentation (SCD)-Ratio </em>und <em>Defect-Effort</em> für Exposure Submission im 4. Quartal 2020 und Jan 2021</figcaption></figure><p>Bei der Beobachtung der Trends wird zudem sichtbar, dass die <em>SCD-Ratio</em> Werte in den Quellcode-Dateien der <strong>Exposure Submission </strong>Verzeichnisse in den letzten Monaten bis Januar 2021 <strong>kräftig gefallen</strong> sind.</p><figure><img alt="Corona-Warn-App iOS Source Code Documentation Ratios" src="https://cdn-images-1.medium.com/max/947/0*40Uz3SVI15CS7_QJ.png" /><figcaption>Abb. 14: Trends der SCD-Ratio Zahlen für Exposure Submission</figcaption></figure><p>In den <strong>Risk</strong> Verzeichnissen gibt es ähnliche, wenn auch weniger ausgeprägte Trends und Abfälle vom Dez 2020 auf Jan 2021. Die <em>SCD-Ratio</em> im relevanten <strong>Risk/Provider </strong>Verzeichnis liegt (im Gegensatz zum <strong>Risk/Calculation </strong>Verzeichnis) noch immer bei 17%, also recht nahe bei den unkritischen 20%.</p><figure><img alt="Tabelle 6: Corona-Warn-App Source-Code-Documentation (SCD)-Ratio und Defect-Effort für Risk im 4. Quartal 2020 und Jan 2021" src="https://cdn-images-1.medium.com/max/628/1*TMcEyG2jE8HTv7U0X5Ak4A.png" /><figcaption>Tabelle 6: Source-Code-Documentation (<em>SCD)-</em>Ratio und <em>Defect-Effort</em> für Risk im 4. Quartal 2020 und Jan 2021</figcaption></figure><figure><img alt="Corona-Warn-App iOS Soruce Code Documentation Ratio für Risk" src="https://cdn-images-1.medium.com/max/891/0*DWVvkEyCxx5xYbZB.png" /><figcaption>Abb. 15: Trends der <em>SCD-Ratio</em> Zahlen für Risk</figcaption></figure><h4>Zusammenfassung</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vzOfgXAHiL9Z--Pw.png" /></figure><p>Mittels DETANGLE schätzen wir auch den Verbesserungsaufwand, um diese kritischen Code-Bereiche zu refactorn. Wir sehen diesen Aufwand als das Ausmaß der <strong>Technischen Schulden</strong> an, die man in Zukunft zurückzahlen muss. Die Details der Berechnung sind hier weniger interessant. Es sei erwähnt, dass die Schätzung dieses Aufwandes gemessen an dem pro Monat umgerechneten Gesamtaufwand des letzten Quartals Q4/2020 laut DETANGLE <strong>einem machbaren Aufwand von ca. einer Mannwoche entsprechen würde</strong>.</p><blockquote><strong>Wir lassen uns gerne daran messen, ob diese Aussage der Durchführung auch entsprechen würde</strong>.</blockquote><p>Wir empfehlen Refactoring-Arbeiten unbedingt als einen eigene nIssue-Typen aufzunehmen und Refactoring-Commits mit diesen Tickets zu assoziieren.</p><h3>Feature-Netzwerk-Diagramme</h3><p>Zum Schluss möchten wir noch auf eine weitere Visualisierung aufmerksam machen, welche die Auswirkung der <em>Feature-Kopplung</em> sehr plastisch zum Ausdruck bringt. Unter einem Feature-Netzwerk-Diagramm verstehen wir ein Netzwerk an Knoten und Kanten, welches Issues mit Quellcode-Dateien in Verbindung bringt.</p><p>Zum einen stellen die runden Knoten in Abb. 17 feature, enhancement und bug Issues/PRs in GitHub dar. Zum anderen sind die rechteckigen Knoten Quellcode-Dateien. Es besteht eine Kante zwischen einem feature, enhancement oder bug und einer Datei genau dann, wenn zur Umsetzung des Issues/PRs die Quellcode-Datei verändert wurde.</p><p>Nun stellen Abb. 17 und Abb. 18 zwei unterschiedliche Perspektiven bzgl. der <em>Feature-Kopplung</em> dar. Abb. 17 enthält die Quellcode-Dateien mit hohen Feature-Kopplungswerten ab einem gewissen (recht niedrigen) Schwellenwert, während Abb. 18 Quellcode-Dateien aufführt, die sehr geringe oder gar keine <em>Feature-Kopplung</em> aufweisen.</p><p>Die roten Kreise stellen bug Issue/PRs dar. Quellcode-Dateien aus den <strong>Risk</strong> und <strong>Submission</strong> Verzeichnissen sind schwarz umrandet.</p><blockquote>Man kann mit bloßem Auge schnell feststellen, dass diese Dateien mit hoher Feature-Kopplung sehr oft verstärkt von Bugs (mit Rot gekennzeichnet) betroffen sind.</blockquote><figure><img alt="Corona-Warn-App iOS Feature-Netzwerk" src="https://cdn-images-1.medium.com/max/1024/0*ymWkJ2AOYquWT138.png" /><figcaption>Abb. 17: Feature-Netzwerk mit Quellcode-Dateien von hoher <em>Feature-Kopplung</em> Zeitraum Juli 2020 bis Januar 2021</figcaption></figure><p>Abbildung 18 bietet ein Kontrastbild an. Quellcode-Dateien mit keiner oder niederschwelliger <em>Feature-Kopplung</em> sind im Großen und Ganzen nur sehr vereinzelt von Bugs geschweige denn vielen Bugs betroffen.</p><figure><img alt="Corona-Warn-App iOS Feature-Netzwerk" src="https://cdn-images-1.medium.com/max/1024/0*LWrcGxJBSmhvI4JD.png" /><figcaption>Abb. 18: Feature-Netzwerk mit Quellcode-Dateien von niedriger <em>Feature-Kopplung</em>, Zeitraum Juli 2020 bis Januar 2021</figcaption></figure><blockquote><strong>Diese beiden Bilder führen die Konsequenzen einer hohen <em>Feature-Kopplung</em> plastisch vor Augen. Falls ein Refactoring zur Beseitigung der architekturellen Schwächen der <em>Feature-Kopplung</em> ausbleibt, stellen diese Quellcode-Dateien eine Art Attraktoren für Wartungsaufwände dar und sind potentiell für deren unkontrolliertes Wachstum verantwortlich.</strong></blockquote><p><strong>Dieser Artikel erschien zuerst im Blog von Cape of Good Code unter</strong> <a href="https://capeofgoodcode.com/de/2021/02/11/corona-warn-app-auf-dem-weg-zu-kritischen-technischen-schulden">https://capeofgoodcode.com/de/2021/02/11/corona-warn-app-auf-dem-weg-zu-kritischen-technischen-schulden</a></p><h3>Links</h3><p>[1] JCON 2020 Talk “Feature and Time-Based Software Analysis”,<br>How it works: <a href="https://youtu.be/aD4OQScGILo?t=510">https://youtu.be/aD4OQScGILo?t=510</a><br>2 Minuten: 8:30–10:32</p><p>[2] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Measuring Development Effort: <a href="https://youtu.be/aD4OQScGILo?t=790">https://youtu.be/aD4OQScGILo?t=790</a><br>5 Minuten: 13:10–18:27</p><p>[3] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Calculating Feature Debt: <a href="https://youtu.be/aD4OQScGILo?t=1073">https://youtu.be/aD4OQScGILo?t=1073</a><br>10.5 Minuten: 17:53–28:30</p><p>[4] Blog Cape of Good Code, “Architektur-Hotspots trotz guter Abhängigkeitsstruktur”<br><a href="https://capeofgoodcode.com/de/2020/10/29/architektur-hotspots-trotz-guter-abhaengigkeitsstruktur/">https://capeofgoodcode.com/de/2020/10/29/architektur-hotspots-trotz-guter-abhaengigkeitsstruktur/</a></p><p>[5] Github Pull Requests:<br><a href="https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests">https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/about-pull-requests</a></p><p>[6] Releasebeschreibung 1.12 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2021-02-04-cwa-1-12-announcement/">https://www.coronawarn.app/de/blog/2021-02-04-cwa-1-12-announcement/</a></p><p>[7] Releasebeschreibung 1.11 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/">https://www.coronawarn.app/de/blog/2021-01-28-corona-warn-app-version-1-11/</a></p><p>[8] Releasebeschreibung 1.10 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-12-28-corona-warn-app-version-1-10/">https://www.coronawarn.app/de/blog/2020-12-28-corona-warn-app-version-1-10/</a></p><p>[9] Releasebeschreibung 1.9 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/">https://www.coronawarn.app/de/blog/2020-12-16-corona-warn-app-version-1-9/</a></p><p>[10] Releasebeschreibung 1.7 Corona Warn App:<br><a href="https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/">https://www.coronawarn.app/de/blog/2020-11-25-corona-warn-app-version-1-7/</a></p><p>[11] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Refactoring-Anteile bei Feature-Implementierung messen:<br><a href="https://youtu.be/aD4OQScGILo?t=871">https://youtu.be/aD4OQScGILo?t=871</a><br>3 Minuten: 14:34–17:50</p><p>[12] JCON 2020, “Feature and Time-Based Software Analysis”,<br>Cognitive Bugs: <a href="https://youtu.be/aD4OQScGILo?t=1658">https://youtu.be/aD4OQScGILo?t=1658</a><br>2 Minuten: 27:38–28:22</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3344b62db2f0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cape-of-good-code/corona-warn-app-auf-dem-weg-zu-kritischen-technischen-schulden-3344b62db2f0">Corona-Warn-App — Auf dem Weg zu kritischen Technischen Schulden?</a> was originally published in <a href="https://medium.com/cape-of-good-code">Cape of Good Code</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>