<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Magic Numbers</title>
	<atom:link href="http://thediscoblog.com/2006/02/24/magic-numbers/feed/" rel="self" type="application/rss+xml" />
	<link>http://thediscoblog.com/2006/02/24/magic-numbers/</link>
	<description>Can you dig it man?</description>
	<lastBuildDate>Thu, 09 Sep 2010 10:42:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: The Disco Blog &#187; Blog Archive &#187; Code coverage coterie confab</title>
		<link>http://thediscoblog.com/2006/02/24/magic-numbers/comment-page-1/#comment-100905</link>
		<dc:creator>The Disco Blog &#187; Blog Archive &#187; Code coverage coterie confab</dc:creator>
		<pubDate>Mon, 01 Dec 2008 16:49:50 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/?p=15#comment-100905</guid>
		<description>[...] therein lies the most telling metric that a code coverage report can covey &#8212; that which isn&#8217;t [...]</description>
		<content:encoded><![CDATA[<p>[...] therein lies the most telling metric that a code coverage report can covey &#8212; that which isn&#8217;t [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Disco Blog &#187; Improving code complexity</title>
		<link>http://thediscoblog.com/2006/02/24/magic-numbers/comment-page-1/#comment-27</link>
		<dc:creator>The Disco Blog &#187; Improving code complexity</dc:creator>
		<pubDate>Sat, 11 Mar 2006 16:57:56 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/?p=15#comment-27</guid>
		<description>[...] In fact, a number of studies in the early days of computing (before the Golden Age of Disco) did show a correlation between the number of paths through code and defects. One such metric that arose from these studies was Cyclomatic Complexity. This integer based metric precisely measures complexity by counting the distinct paths through a method; moreover, various studies over the years have determined that methods having a cyclomatic complexity (CC or sometimes referred to as CCN) value greater than 10 have a higher risk of defects. [...]</description>
		<content:encoded><![CDATA[<p>[...] In fact, a number of studies in the early days of computing (before the Golden Age of Disco) did show a correlation between the number of paths through code and defects. One such metric that arose from these studies was Cyclomatic Complexity. This integer based metric precisely measures complexity by counting the distinct paths through a method; moreover, various studies over the years have determined that methods having a cyclomatic complexity (CC or sometimes referred to as CCN) value greater than 10 have a higher risk of defects. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Disco Blog &#187; Donâ€™t focus on the elephant</title>
		<link>http://thediscoblog.com/2006/02/24/magic-numbers/comment-page-1/#comment-26</link>
		<dc:creator>The Disco Blog &#187; Donâ€™t focus on the elephant</dc:creator>
		<pubDate>Thu, 09 Mar 2006 21:14:20 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/?p=15#comment-26</guid>
		<description>[...] Automating code inspections with analysis tools handles 80% of big picture and allows humans to intervene in the 20% that matters. For instance, Javaâ€™s PMD will run 180+ rules against a file every time it changes. If a particularly concerning rule is violated, such as a high cyclomatic complexity value, someone can take a look. Can you imagine trying to accomplish this process manually? Why would someone want to? That&#8217;s so establishment! [...]</description>
		<content:encoded><![CDATA[<p>[...] Automating code inspections with analysis tools handles 80% of big picture and allows humans to intervene in the 20% that matters. For instance, Javaâ€™s PMD will run 180+ rules against a file every time it changes. If a particularly concerning rule is violated, such as a high cyclomatic complexity value, someone can take a look. Can you imagine trying to accomplish this process manually? Why would someone want to? That&#8217;s so establishment! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john miller</title>
		<link>http://thediscoblog.com/2006/02/24/magic-numbers/comment-page-1/#comment-23</link>
		<dc:creator>john miller</dc:creator>
		<pubDate>Fri, 24 Feb 2006 13:29:23 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/?p=15#comment-23</guid>
		<description>I dig it!  Some people use branch coverage over line coverage, but cyclomatic path coverage is even better than that because it tests the different decisions in the method independently of one another, which is what branch coverage misses.  Imagine a method composed of two separate IF methods.  You can achieve 100% branch coverage by running two tests: one that makes both decisions evaluate TRUE and one that makes them both evaluate FALSE.  But you could be skipping over a bug that exists on the TRUE-FALSE path.</description>
		<content:encoded><![CDATA[<p>I dig it!  Some people use branch coverage over line coverage, but cyclomatic path coverage is even better than that because it tests the different decisions in the method independently of one another, which is what branch coverage misses.  Imagine a method composed of two separate IF methods.  You can achieve 100% branch coverage by running two tests: one that makes both decisions evaluate TRUE and one that makes them both evaluate FALSE.  But you could be skipping over a bug that exists on the TRUE-FALSE path.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Ponczak</title>
		<link>http://thediscoblog.com/2006/02/24/magic-numbers/comment-page-1/#comment-22</link>
		<dc:creator>Joe Ponczak</dc:creator>
		<pubDate>Fri, 24 Feb 2006 13:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://thediscoblog.com/?p=15#comment-22</guid>
		<description>The interesting issue to me is that Cobetura reported 100% branch coverage based on 1 JUnit test, even though the &#039;if&#039; statement clearly has two branches.

Also, as the number of decisions increase (more than 3), the value of branch coverage decreases. 100% branch coverage, in many cases, provides a false sense of security. Basis-path coverage, derived by the number of executed cyclomatic paths, is a much better measurement because it looks at the relationships between decisions.</description>
		<content:encoded><![CDATA[<p>The interesting issue to me is that Cobetura reported 100% branch coverage based on 1 JUnit test, even though the &#8216;if&#8217; statement clearly has two branches.</p>
<p>Also, as the number of decisions increase (more than 3), the value of branch coverage decreases. 100% branch coverage, in many cases, provides a false sense of security. Basis-path coverage, derived by the number of executed cyclomatic paths, is a much better measurement because it looks at the relationships between decisions.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
