<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Object Mentor Blog: Zero</title>
    <link>http://blog.objectmentor.com/articles/2007/03/22/zero</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>Zero</title>
      <description>&lt;p&gt;Clarity of code is a signal-to-noise ratio.  We need our code to be as concisely meaningful as possible (not as cramped and crowded as possible, and not unnecessarily spread out over many pages).  Whatever size provides the most accurate and quickest reading for trouble-shooting and enhancement is the best size.&lt;/p&gt;


	&lt;p&gt;On one of my past projects, we found ourselves able to remove a lot of dead code and as we added new features we were also able to simplify a lot of existing code.  This is a very good thing, since code is a liability and functionality is an asset (I&amp;#8217;ll elaborate more on that at a later date).&lt;/p&gt;


	&lt;p&gt;However, my manager was secretly reporting our progress in terms of lines of code/week.  I was called on the carpet after some very productive weeks of producing unusually clean code.  My manager&amp;#8217;s problem was that we had been averaging over 200 lines &lt;strong&gt;less&lt;/strong&gt; per week. By making the system cleaner and smaller, we were being reported as making negative progress, and were ordered to stop!&lt;/p&gt;


	&lt;p&gt;It&amp;#8217;s just another &amp;#8220;bad metrics&amp;#8221; story, but it underscores an unspoken assumption that code should always grow bigger over time.&lt;/p&gt;


	&lt;p&gt;One non-zero-respecting practice is that of commenting-out code and leaving it.  people have to scroll around the code, reading bits above and below, and so it is really just a speed bump for those who are trying to learn.  It&amp;#8217;s worse if the code is inside some nested level of a function than if  an entire function is commented out.   This is unnecessary, because a version control system holds the old code and can restore it if you really need it again (if not, consider a new &lt;span class="caps"&gt;VCS&lt;/span&gt;).  Commented code is redundant with the &lt;span class="caps"&gt;VCS&lt;/span&gt;, in addition to being a nuisance.&lt;/p&gt;


	&lt;p&gt;Zero isn&amp;#8217;t all really about comments, but about noise in general.  Systems often have &amp;#8216;dead code&amp;#8217;, code which is never used but never deleted.  When there are insufficient tests, one is unsure of coverage and cannot tell if a piece of code is being used or not.  That means that code with zero use may have non-zero occurrences.  In such systems, it can be very dangerous to remove code at all.  Since the rule of zero is not respected, code accumulates.&lt;/p&gt;


	&lt;p&gt;Zero also will have us remove abstractions and interfaces when we no longer need them.&lt;/p&gt;


	&lt;p&gt;Zero tells us to remove tests when they&amp;#8217;re no longer valuable.&lt;/p&gt;


	&lt;p&gt;Zero is a good idea.&lt;/p&gt;


	&lt;p&gt;I just located an old &lt;a href="http://www.extragroup.de/weblog/hmk/archives/003824.html"&gt; Jeff Atwood quote&lt;/a&gt; that lights up a few of the same synapses.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Mar 2007 12:23:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:27952b15-e337-46f3-8d9d-95d02be51d61</guid>
      <author>tottinger</author>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero</link>
      <category>Tim's Tepid Torrent</category>
      <trackback:ping>http://blog.objectmentor.com/articles/trackback/5717</trackback:ping>
    </item>
    <item>
      <title>"Zero" by ysbearing</title>
      <description>&lt;p&gt;Slewing ring is also called slewing bearing, some people called: rotary support, swing support. English Name: slewing bearing or slewing ring bearing or turn table bearing, slewing ring in the real industrial applications is very wide.&lt;/p&gt;</description>
      <pubDate>Wed, 19 Oct 2011 04:35:00 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:060bbf63-3ce4-4291-9e9c-127653b37c54</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-159678</link>
    </item>
    <item>
      <title>"Zero" by hi good luck </title>
      <description>&lt;p&gt;All the ?ncident &lt;a href="http://www.carmodelchina.com/" rel="nofollow"&gt;Off-Road RC Car&lt;/a&gt; appeared relating to Come july 1st 10 on the 400 block out about N. Orange colored Lane, all the San Bernardino criminal court account talked about.&lt;/p&gt;


	&lt;p&gt;All the victim&amp;#8217;s &lt;a href="http://www.carmodelchina.com/" rel="nofollow"&gt;1:5 Scale RC Car&lt;/a&gt; list is now being withheld around the corner notice about members of your family.&lt;/p&gt;


	&lt;p&gt;Basically no other &lt;a href="http://www.carmodelchina.com/Off-Road+RC+Monster+Truck-china-15/" rel="nofollow"&gt;RC Monster Truck&lt;/a&gt; sorts of knowledge was first attainable to the lawsuit.&lt;/p&gt;</description>
      <pubDate>Mon, 29 Aug 2011 04:05:10 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:44f084e2-8cdc-4371-9a28-a6783f15a847</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-133820</link>
    </item>
    <item>
      <title>"Zero" by hair extensions uk</title>
      <description>&lt;p&gt;I like this page. I have read it carefully and wow really awesome.&lt;/p&gt;</description>
      <pubDate>Sun, 12 Jun 2011 22:37:33 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:4e099d74-cbc1-4028-9cf8-b9ca21d917aa</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-110410</link>
    </item>
    <item>
      <title>"Zero" by okey oyunu oyna </title>
      <description>&lt;p&gt;nice passage. I like it&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Okey oynamak hi&#231; bu kadar zevkli olmadi. Online ve 3 boyutlu &lt;a href="http://www.okeyoyunu-oyna.com" rel="nofollow"&gt;okey oyunu oyna&lt;/a&gt; ve turnuvalara sende katil.&lt;/p&gt;</description>
      <pubDate>Mon, 25 Apr 2011 10:43:31 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:a5890743-e35f-4851-bcee-e7ef30a8f20f</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-90537</link>
    </item>
    <item>
      <title>"Zero" by New Air Jordans</title>
      <description>&lt;p&gt;Once I knew only darkness and stillness&amp;#8230; my life was without past or future&amp;#8230; but a little word from the fingers of another fell into my hand that clutched at emptiness, and my heart leaped to the rapture of living. One can never consent to creep when one feels an impulse to soar. Optimism is the faith that leads to achievement. Nothing can be done without hope and confidence.People do not like to think. If one thinks, one must reach conclusions. Conclusions are not always pleasant. Science may have found a cure for most evils; but it has found no remedy for the worst of them all &amp;#8211; the apathy of human beings.&lt;/p&gt;</description>
      <pubDate>Thu, 14 Apr 2011 22:28:18 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:e6c51c3a-a85f-4516-9dbc-be506362d3bf</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-85257</link>
    </item>
    <item>
      <title>"Zero" by sexshop</title>
      <description>&lt;p&gt;we were being reported as making negative progress&lt;/p&gt;</description>
      <pubDate>Thu, 14 Apr 2011 05:02:07 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:450764d8-df24-446c-b0a9-30c2a318deef</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-84802</link>
    </item>
    <item>
      <title>"Zero" by Tenant Screening</title>
      <description>&lt;p&gt;By making the system cleaner and smaller, we were being reported as making negative progress, and were ordered to stop!&lt;/p&gt;</description>
      <pubDate>Tue, 22 Feb 2011 11:23:51 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:492d7d12-2a35-4375-9817-f16b20d1e1c1</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-65700</link>
    </item>
    <item>
      <title>"Zero" by Criminal Records</title>
      <description>&lt;p&gt;When there are insufficient tests, one is unsure of coverage and cannot tell if a piece of code is being used or not. That means that code with zero use may have non-zero occurrences. In such systems, it can be very dangerous to remove code at all. Since the rule of zero is not respected, code accumulates.&lt;/p&gt;</description>
      <pubDate>Mon, 21 Feb 2011 14:13:57 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:b4e60713-2837-46a8-be04-fac319e40ef9</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-65258</link>
    </item>
    <item>
      <title>"Zero" by shaded pold motor</title>
      <description>&lt;p&gt;Classic exposition, I have also mentioned it in my blog article. But it is a pity that almost no friend discussed it with me. I am very happy to see your article.&lt;/p&gt;</description>
      <pubDate>Mon, 24 Jan 2011 01:38:42 -0600</pubDate>
      <guid isPermaLink="false">urn:uuid:46cb04e4-647e-468c-bfce-02410bbb3148</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-58896</link>
    </item>
    <item>
      <title>"Zero" by p90x</title>
      <description>The DVD entertainment become an indispensable entertainment in the home entertainment equipment. The &lt;a &gt;P90X Workout DVDs&lt;/a rel="nofollow"&gt; its many advantages as people rush to buy. &lt;a &gt;P90X Workout&lt;/a rel="nofollow"&gt; DVDs can preserve the original quality of every detail. It shows subtle shades and smoother color transitions, resulting in more vibrant and natural picture. Add style to the room layout.Immersive audio and video effects.With 
&lt;a &gt;P90x reviews&lt;/a rel="nofollow"&gt; top-quality analog and digital audio output.HD JPEG playback for images in true resolution.Supports a variety of movies and music. With &lt;a &gt;P90X&lt;/a rel="nofollow"&gt; computers and other digital devices together into an entertainment network, network sharing, enjoy the video, pictures, music and other multimedia data.
I believe P90X Workout DVDs will give you player impressed. HD Video lets you completely forgetting oneself, to bring you a brand new home entertainment world</description>
      <pubDate>Sat, 06 Nov 2010 02:36:44 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:e7c3a061-6fb5-4142-9a22-02890cf8d81d</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-38056</link>
    </item>
    <item>
      <title>"Zero" by M2TS File Converter</title>
      <description>&lt;p&gt;some folks could think that putting allot of statements in one line would improve the code! I think that metrics based on lines of code are useless altogether. Their only benefit is that they&#8217;re easy to measure. I&#8217;d rather measure such things as features implemented (with weight factors reflecting their&lt;/p&gt;</description>
      <pubDate>Wed, 28 Apr 2010 22:59:15 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:d6a47cbb-eb1a-453b-adec-88b39a6f1fa2</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-10714</link>
    </item>
    <item>
      <title>"Zero" by Sebastian K&#195;&#188;beck</title>
      <description>&lt;p&gt;&amp;gt; &#226;&#8364;&#157;&amp;#8230; if we wish to count lines of code, we should not regard them as &#226;&#8364;&#339;lines produced&#226;&#8364;&#157; but as &#226;&#8364;&#339;lines spent&#226;&#8364;&#157;&amp;#8230;&lt;/p&gt;


	&lt;p&gt;Be careful with that! Although you&amp;#8217;re right, some folks could think that putting allot of statements in one line would improve the code! I think that metrics based on lines of code are useless altogether. Their only benefit is that they&amp;#8217;re easy to measure. I&amp;#8217;d rather measure such things as features implemented (with weight factors reflecting their complexity), test coverage and code clarity (get someone unrelated to the project to the code and measure the time she/he needs to understand what it does).&lt;/p&gt;</description>
      <pubDate>Fri, 23 Mar 2007 10:40:50 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:fe4f65be-1d73-429f-bfcd-5ced844dadd8</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-152</link>
    </item>
    <item>
      <title>"Zero" by pINGVA</title>
      <description>&lt;p&gt;&amp;#8221;... if we wish to count lines of code, we should not regard them as &amp;#8220;lines produced&amp;#8221; but as &amp;#8220;lines spent&amp;#8221;: the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger.&amp;#8221;&lt;/p&gt;


	&lt;p&gt;&amp;#8212; &lt;a href="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD10xx/EWD1036.html" rel="nofollow"&gt;E.W. Dijkstra, &amp;#8216;On the cruelty of really teaching computing science&amp;#8217;&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Thu, 22 Mar 2007 19:20:19 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:86936eb0-6938-4ae5-8f7c-cd6187649808</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-151</link>
    </item>
    <item>
      <title>"Zero" by David Chelimsky</title>
      <description>&lt;p&gt;Zero == Code Nirvana&lt;/p&gt;


	&lt;p&gt;re: &amp;#8220;code is a liability and functionality is an asset&amp;#8221;, hear, hear!. Looking forward to reading your thoughts about it.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Mar 2007 14:22:05 -0500</pubDate>
      <guid isPermaLink="false">urn:uuid:881afed4-ebc1-4cc1-928d-0e2db6f420ef</guid>
      <link>http://blog.objectmentor.com/articles/2007/03/22/zero#comment-150</link>
    </item>
  </channel>
</rss>

