<?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"><channel><title><![CDATA[Complexity]]></title><description><![CDATA[<p>folgende Aussage:</p>
<blockquote>
<p>The McCabe Cyclomatic Complexity is a count of the number of decision branches within a function. Complex routines are hard to maintain and test effectively. Recommended maximum in this standard is 10.<br />
This rule will highlight complex code which should be reviewed.</p>
</blockquote>
<p>diesen Wert wird immer überschreitet. Wenn ich ein Enum habe mit 40 Einträgen, dann mache ich etwa</p>
<pre><code class="language-cpp">switch(decision):
{
  case X:
  case Y:
  ...
}
</code></pre>
<p>ich kann doch nicht den Auswahl zerlegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/137316/complexity</link><generator>RSS for Node</generator><lastBuildDate>Sat, 29 Aug 2026 18:39:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/137316.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Feb 2006 15:50:10 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Complexity on Thu, 16 Feb 2006 15:50:10 GMT]]></title><description><![CDATA[<p>folgende Aussage:</p>
<blockquote>
<p>The McCabe Cyclomatic Complexity is a count of the number of decision branches within a function. Complex routines are hard to maintain and test effectively. Recommended maximum in this standard is 10.<br />
This rule will highlight complex code which should be reviewed.</p>
</blockquote>
<p>diesen Wert wird immer überschreitet. Wenn ich ein Enum habe mit 40 Einträgen, dann mache ich etwa</p>
<pre><code class="language-cpp">switch(decision):
{
  case X:
  case Y:
  ...
}
</code></pre>
<p>ich kann doch nicht den Auswahl zerlegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/995945</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/995945</guid><dc:creator><![CDATA[netrobot]]></dc:creator><pubDate>Thu, 16 Feb 2006 15:50:10 GMT</pubDate></item><item><title><![CDATA[Reply to Complexity on Thu, 16 Feb 2006 16:17:47 GMT]]></title><description><![CDATA[<p>Solche Regeln braucht kein Mensch, ab in die Tonne damit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/995967</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/995967</guid><dc:creator><![CDATA[Bashar]]></dc:creator><pubDate>Thu, 16 Feb 2006 16:17:47 GMT</pubDate></item><item><title><![CDATA[Reply to Complexity on Thu, 16 Feb 2006 19:04:57 GMT]]></title><description><![CDATA[<p>Zumal die Anzahl der Cases auch nicht unbedingt ein Indiz für Komplexität sein muss. 40 Cases, die vom Wert her keine Lücken aufweisen, kann ein optimierender Compiler locker mit einem Sprung realisieren. Das kann nicht nur weniger Code sein, sondern bedeutet auch mehr Geschwindigkeit. Da können 10 Cases, die nicht so &quot;passend&quot; sind, durchaus komplexer werden. Naja, zumindest von der Übersichtlichkeit sollte man darauf achten, dass die switches nicht zu komplex werden. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/996137</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/996137</guid><dc:creator><![CDATA[groovemaster]]></dc:creator><pubDate>Thu, 16 Feb 2006 19:04:57 GMT</pubDate></item><item><title><![CDATA[Reply to Complexity on Thu, 16 Feb 2006 19:08:49 GMT]]></title><description><![CDATA[<p>Kanns sein, dass damit eher soetwas gemeint ist:</p>
<pre><code class="language-cpp">if(A)
{
    if(B)
    {
        if(C)
        {
             if(D)
             {
                 ...
             }
        }
    }
}
</code></pre>
<p>Wenn mal kein &amp;&amp; bzw. || reicht.</p>
<p>MfG SideWinder</p>
]]></description><link>https://www.c-plusplus.net/forum/post/996140</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/996140</guid><dc:creator><![CDATA[SideWinder]]></dc:creator><pubDate>Thu, 16 Feb 2006 19:08:49 GMT</pubDate></item></channel></rss>