This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
All,I have a requirment to find the number of lines( we have to exclude blnak lines and comments) written in a project (written in Java ). We can write a program to do this i just wanted to check if any tool (off shelf) available to do this ? Thanx in advance
Richard Tookey wrote:
In other words to use the number of lines of code as a metric is probably meaningless !
Not if you are getting paid by lines of code
Many many years ago as an exercise I wrote the whole of a radix 2 FFT, including the resort, in APL in just 1 line of indecipherable code. It took about a day but the next day even I could not work out how it worked! At that time it was reckoned that the average programmer produced between 3 and 5 lines of fully documented code per day so my 1 line FFT was well bellow average since I had produced no documentation. Now I could have broken that 1 line into about 50 lines and then half an hour of documentation would have meant I wrote 50 odd lines of fully documented code in that particular day.