Exactly what the title says. Post here! The maximum I've done (in a day) is probably 470 lines of code.
Exactly what the title says. Post here! The maximum I've done (in a day) is probably 470 lines of code.
I don't think I ever counted.
But I once had 6 bugs in just 1 line.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
I think a teacher once made me write 350 lines of something as punishment. No other teacher had such old fashioned ideas though
Anyway, I too never counted, and it depends on whether you count edits to existing lines of code.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I've never counted. I've written about 3 or 4 DLLs in one day and each had about 500 to 1000 lines in them. However, that isn't saying much after you factor in skipped lines, comments, etc.
"Measuring programming progress by lines of code is like measuring aircraft building progress by weight." - Bill Gates
When I get paid by the line (and not the hour/day) I will start to take notice of the amount of lines I write.
I have spent nearly 2 months looking for a bug, which required just moving two lines to fix.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
How can you compare the copy/paste of say GUI boilerplate code with say the implementation of quicksort?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
If you program regularly, you will always be cutting and pasting from bits that are almost the same as you want new.
On that basis, 470 lines seems very small, so perhaps you should add a constraint on cutting and pasting.
Also style.
Being a dinosaur I use lots of lines, big tabs
main()
{
/*
Bit of text
*/
You can use up lots of lines this way. How about defining by actual code - excluding brackets, comments?Code:if( test ) { // Indent again } else { // More code } }
In a normal session where I'm not interrupted (i.e. I'm working from home ) I usually do about 1500. At the max, maybe 3000.
EDIT: I need to add that that's only when I get the wonderful opportunity to write new code. As anybody can tell you, your day-to-day kind of coding is mostly maintenance and not like that.
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}
I regularly write 1000 a day in assembler for recreates,
Mainframe assembler programmer by trade. C coder when I can.
"Measuring truthfulness of a fact by a quote of Bill Gates is like measuring an aircraft's weight with a ruler." - Me
That said, I never measured it either. I think about 2k max, though I am one of the lucky few who rarely had to do such brain-numbing work that it took no thought at all. Because if you actually have to think about what you code, the number goes down quite a lot (in fact, I've spent several days without writing a single line of code, thinking of algorithms).
1/100000000th of a line because everything I've ever written is on a single line
I'm not immature, I'm refined in the opposite direction.