<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-7030997386028100204.post4165891792803107828..comments</id><updated>2009-12-13T18:29:17.612-08:00</updated><title type='text'>Comments on Harpoon Technologies: A New Code Metric : Destroyed Lines Of Code (DLOC)...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.harpoontech.com/feeds/4165891792803107828/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html'/><author><name>Rajesh Patel</name><uri>http://www.blogger.com/profile/11070763300226168187</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-2708899481283113681</id><published>2008-10-21T05:30:00.000-07:00</published><updated>2008-10-21T05:30:00.000-07:00</updated><title type='text'>I agree with evan's conclusion - this could be a g...</title><content type='html'>I agree with evan's conclusion - this could be a great methodology that could improve the quality of code but it could also make it unreadable. There are plenty of high quality code principles that requires additional 2 or 3 rows but increase the readability a lot. Therefore lines of code are subjective factor of evaluation after all.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/2708899481283113681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/2708899481283113681'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224592200000#c2708899481283113681' title=''/><author><name>Mario</name><uri>http://peshev.net/blog</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-711918182081144745</id><published>2008-10-20T19:13:00.000-07:00</published><updated>2008-10-20T19:13:00.000-07:00</updated><title type='text'>Good post.While it may be difficult to come up wit...</title><content type='html'>Good post.&lt;BR/&gt;&lt;BR/&gt;While it may be difficult to come up with accurate stats, it's still a great mindset to get developers and their managers to embrace. &lt;BR/&gt;&lt;BR/&gt;The inability to codify this is probably a good thing, since hard stats might even have a negative effect, in terms of developers going overboard with perl-like expressions (&lt;A HREF="http://app.fonality.com/golf/index.htm" REL="nofollow"&gt;perl golf&lt;/A&gt;). &lt;BR/&gt;&lt;BR/&gt;Another way we kill code and get additional benefit is when we apply the DRY principle.&lt;BR/&gt;&lt;BR/&gt;I think you need a better name though. It's hard to pronounce dloc. How about "kloc"? As in how many lines of code have you kloc'd today?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/711918182081144745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/711918182081144745'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224555180000#c711918182081144745' title=''/><author><name>Carl</name><uri>http://www.blogger.com/profile/10095935975865795803</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-4027114718150670277</id><published>2008-10-20T18:34:00.000-07:00</published><updated>2008-10-20T18:34:00.000-07:00</updated><title type='text'>Evan,Well said. As I pointed out in the posting, t...</title><content type='html'>Evan,&lt;BR/&gt;Well said. As I pointed out in the posting, this metric is not a good measure of productivity either - but its certainly more fun to measure for your own amusement and sense of accomplishment.&lt;BR/&gt;&lt;BR/&gt;Perhaps in the future when an unenlightened manager berates you about the importance of metrics, you can ask them to measure DLOC as well. Then maybe they can see how too much focus on metrics detracts from the goal - good software.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/4027114718150670277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/4027114718150670277'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224552840000#c4027114718150670277' title=''/><author><name>Jay Meyer</name><uri>http://www.blogger.com/profile/02158043537042803017</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='17484855975249359585'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-9005748753114966174</id><published>2008-10-20T18:08:00.000-07:00</published><updated>2008-10-20T18:08:00.000-07:00</updated><title type='text'>http://msr.uwaterloo.ca/The mining software commun...</title><content type='html'>http://msr.uwaterloo.ca/&lt;BR/&gt;&lt;BR/&gt;The mining software community has found that removing code is actually much more rare than adding. So looking at code removed is like looking at rare events. So it is often worthwhile.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/9005748753114966174'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/9005748753114966174'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224551280000#c9005748753114966174' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-2441308592849663875</id><published>2008-10-20T14:10:00.000-07:00</published><updated>2008-10-20T14:10:00.000-07:00</updated><title type='text'>A good post and a novel idea.  We all like to remo...</title><content type='html'>A good post and a novel idea.  We all like to remove bad code.  Unfortunately, when we do have to add functionality we do have to add code.&lt;BR/&gt;&lt;BR/&gt;I think we should ignore the fact that all metrics can be hacked. If people care more about hacking metrics than about using them properly, they are of no use to anyone.&lt;BR/&gt;&lt;BR/&gt;So my problem is, how do you measure destroyed lines of code when we are adding more code?  I think a metric is useful only if I can calculate it easily and if I can understand what it is saying.&lt;BR/&gt;&lt;BR/&gt;If the version control system could give a measure of this (like repository churn - # of lines added, modified and deleted) we might be able to make sense of all this.  Currently, I my SCM (Perforce) does not give me this information (although I have never really made an effort to ask).&lt;BR/&gt;&lt;BR/&gt;It is true that everyone is happy when we can say we deleted a bunch of complex code, so it would be nice to have a measurement for this.  So other than calculating SLOC and hoping that it decreases, how do we measure DLOC?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/2441308592849663875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/2441308592849663875'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224537000000#c2441308592849663875' title=''/><author><name>Dennis Sellinger</name><uri>http://www.blogger.com/profile/17039039318920378800</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-7946087336901257411</id><published>2008-10-20T12:13:00.000-07:00</published><updated>2008-10-20T12:13:00.000-07:00</updated><title type='text'>I agree with your basic premise that removing line...</title><content type='html'>I agree with your basic premise that removing lines of code can help a system.  Unfortunently all metrics can gamed and this is no exception.  &lt;BR/&gt;&lt;BR/&gt;What happens when they remove all the whitespace in their code?  What happens when the remove all the comments?  It requires sophisticated parsing to determine if each line contains only one "programming action".  And it is currently impossible for a computer to determine if comments were valuable or not.  &lt;BR/&gt;&lt;BR/&gt;In the end I believe it comes down to human managers reading the code their team produces and making a judgement calls.  This metric could inform that decision but it doesn't hold on its own.&lt;BR/&gt;&lt;BR/&gt;Good post!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/7946087336901257411'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/7946087336901257411'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224529980000#c7946087336901257411' title=''/><author><name>Evan</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-1953740411207091547</id><published>2008-10-20T09:20:00.000-07:00</published><updated>2008-10-20T09:20:00.000-07:00</updated><title type='text'>Hi,Nice article.I even enjoy deleting code some ti...</title><content type='html'>Hi,&lt;BR/&gt;&lt;BR/&gt;Nice article.I even enjoy deleting code some times.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/1953740411207091547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/1953740411207091547'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224519600000#c1953740411207091547' title=''/><author><name>Prashant Jalasutram</name><uri>http://www.blogger.com/profile/02049809664724727115</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-7030997386028100204.post-6107997374157189379</id><published>2008-10-20T05:54:00.000-07:00</published><updated>2008-10-20T05:54:00.000-07:00</updated><title type='text'>This is a great article.  I was just telling a co-...</title><content type='html'>This is a great article.  I was just telling a co-worker last week that I enjoyed deleting code almost as much as writing it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/6107997374157189379'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7030997386028100204/4165891792803107828/comments/default/6107997374157189379'/><link rel='alternate' type='text/html' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html?showComment=1224507240000#c6107997374157189379' title=''/><author><name>Rajesh Patel</name><uri>http://www.blogger.com/profile/11070763300226168187</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='14239247987355372313'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.harpoontech.com/2008/10/new-code-metric-destroyed-lines-of-code.html' ref='tag:blogger.com,1999:blog-7030997386028100204.post-4165891792803107828' source='http://www.blogger.com/feeds/7030997386028100204/posts/default/4165891792803107828' type='text/html'/></entry></feed>