<?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[magic numbers]]></title><description><![CDATA[<p>was haltet ihr von solchem code:</p>
<pre><code class="language-cpp">private void attachSupplementalDocuments()
{
  if (stateCode == &quot;AZ&quot; || stateCode == &quot;TX&quot;) {
    //SR008-04X/I are always required in these states
    attachDocument(&quot;SR008-04X&quot;);
    attachDocument(&quot;SR008-04XI&quot;);
  }

  if (ledgerAmnt &gt;= 500000) {
    //Ledger of 500K or more requires AUTHLDG-1A
    attachDocument(&quot;AUTHLDG-1A&quot;);
  }

  if (coInsuredCount &gt;= 5  &amp;&amp; orgStatusCode != &quot;CORP&quot;) {
    //Non-CORP orgs with 5 or more co-ins require AUTHCNS-1A
    attachDocument(&quot;AUTHCNS-1A&quot;);
  }
}
</code></pre>
<p>ttwtf sagt, das ist gar nicht so schlecht: <a href="http://worsethanfailure.com/Articles/Soft_Coding.aspx" rel="nofollow">http://worsethanfailure.com/Articles/Soft_Coding.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178725/magic-numbers</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Jul 2026 14:23:22 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178725.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 Apr 2007 20:47:35 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to magic numbers on Fri, 13 Apr 2007 20:47:35 GMT]]></title><description><![CDATA[<p>was haltet ihr von solchem code:</p>
<pre><code class="language-cpp">private void attachSupplementalDocuments()
{
  if (stateCode == &quot;AZ&quot; || stateCode == &quot;TX&quot;) {
    //SR008-04X/I are always required in these states
    attachDocument(&quot;SR008-04X&quot;);
    attachDocument(&quot;SR008-04XI&quot;);
  }

  if (ledgerAmnt &gt;= 500000) {
    //Ledger of 500K or more requires AUTHLDG-1A
    attachDocument(&quot;AUTHLDG-1A&quot;);
  }

  if (coInsuredCount &gt;= 5  &amp;&amp; orgStatusCode != &quot;CORP&quot;) {
    //Non-CORP orgs with 5 or more co-ins require AUTHCNS-1A
    attachDocument(&quot;AUTHCNS-1A&quot;);
  }
}
</code></pre>
<p>ttwtf sagt, das ist gar nicht so schlecht: <a href="http://worsethanfailure.com/Articles/Soft_Coding.aspx" rel="nofollow">http://worsethanfailure.com/Articles/Soft_Coding.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1265665</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1265665</guid><dc:creator><![CDATA[petzl]]></dc:creator><pubDate>Fri, 13 Apr 2007 20:47:35 GMT</pubDate></item><item><title><![CDATA[Reply to magic numbers on Fri, 13 Apr 2007 22:09:30 GMT]]></title><description><![CDATA[<p>Mieser Code, mieser Artikel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1265738</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1265738</guid><dc:creator><![CDATA[finix]]></dc:creator><pubDate>Fri, 13 Apr 2007 22:09:30 GMT</pubDate></item><item><title><![CDATA[Reply to magic numbers on Sat, 14 Apr 2007 00:59:56 GMT]]></title><description><![CDATA[<p>finix, was gefällt dir denn an dem Artikel nicht?</p>
<p>Ich behaupte: der Artikel ist sehr gut, das beschriebene Problem sehr real und eben auch sehr treffend zusammengefasst. Wenn dir was nicht passt würde ich gerne wissen WAS und WARUM.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1265768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1265768</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Sat, 14 Apr 2007 00:59:56 GMT</pubDate></item><item><title><![CDATA[Reply to magic numbers on Sat, 14 Apr 2007 03:34:19 GMT]]></title><description><![CDATA[<p>Passend dazu: Vorhin wollte ich mal eben die Blinkgeschwindigkeit des Cursors von der KDE-Konsole ändern. Die 1000ms waren an 3 verschiedenen Stellen im Code verstreut. Und jetzt steht da drin: blink-&gt;start(500); // 1000ms <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
<p>Die Beispielfunktion da ist nun sehr speziell... prinzipiell sehe ich Stringkonstanten lieber als VAR statt &quot;VaR&quot;. Spätestens wenn dieselbe öfter vorkommt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1265770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1265770</guid><dc:creator><![CDATA[DrGreenthumb]]></dc:creator><pubDate>Sat, 14 Apr 2007 03:34:19 GMT</pubDate></item></channel></rss>