Forgot your password?

Lines of code I've written in the last 24 hours:

Displaying poll results.
None
  16903 votes / 43%
Less than 100
  10634 votes / 27%
Something between 100 and 500
  7243 votes / 18%
At least 500, less than 1000
  1544 votes / 4%
More than 1000
  739 votes / 1%
More than your puny mind can comprehend!
  1517 votes / 3%
38580 total votes.
[ Voting Booth | Other Polls | Back Home ]
  • Don't complain about lack of options. You've got to pick a few when you do multiple choice. Those are the breaks.
  • Feel free to suggest poll ideas if you're feeling creative. I'd strongly suggest reading the past polls first.
  • This whole thing is wildly inaccurate. Rounding errors, ballot stuffers, dynamic IPs, firewalls. If you're using these numbers to do anything important, you're insane.
This discussion has been archived. No new comments can be posted.

Lines of code I've written in the last 24 hours:

Comments Filter:
  • I know all about RAM and making great use of a hard drive, not things that are Micro and Soft.

    • by pookemon (909195)
      So you don't write batch files?
      • Never mind batch files, what about VHDL/etc? It's code. With compilers, debuggers, optimization passes, and all the usual tools of the trade.

        In fact, didn't someone (Xilnx?) have a compiler that took C code as input, and told you if it was better to implement it as logic gates, or as executable code for their embedded processor? So you wrote the exact same lines, and it told you whether you were a hardware engineer or a software engineer that day.
      • by pecosdave (536896) *

        Not anymore (usually, did a project with .iso files and virtual CDROM drives not too long ago), I do still write the occasional shell script. I used to be the master of writing scripts for Netware 4, both menu's and logon scripts, but that's been a while.

    • by Z00L00K (682162)

      And I'm stuck in a project where specifications are to be written and maintained, not code written.

    • I manage databases and used to do a lot of coding; NOMAD on the mainframe and FoxPro on the PC (very similar languages) when the tables were small enough to fit. PCs got bigger and it's been over ten years since I wrote in NOMAD. Now they have me using MS Access, GOD but I hate Access! It isn't really programming, and takes forever to figure out how to do anything the least bit complex. With real languages I could make the machine do damned near anything in an hour or less with a few lines of code.

      But this

  • One of these days, the Slashdot poll guy will learn what a half-open interval is, and the world will change!

    • by dltaylor (7510)

      More than likely, the universe will simply die of shock.

      Not just 1000, but 100, too.

    • One of these days, the Slashdot poll guy will learn what a half-open interval is, and the world will change!

      I think the appropriate answer then is: "More than your puny mind can comprehend!"

    • It is never exact.
      I remember in College when I needed to print out my code to be graded, and more often then not it will print the last page with the following text.

      } //End of int main(char argv, char** argc)

      • Yes I screwed up on my comment it should be (char argc, char** argv)

        • by sjames (1099)

          Shouldn't that be (int argc, char **argv)?

          :-)

  • by coolmadsi (823103) on Tuesday August 09, 2011 @03:58AM (#37030448) Homepage Journal
    The software I am working on is already developed. Bug fixing and new features don't usually require a huge amount of coding.

    I removed a few lines yesterday because they are no longer needed, does that affect my total? Also, does generated code count? What about comments? I added a few of them yesterday.
    • Comments are for wimps!

      Just kidding. I spent half the day commenting some of my own old code. I don't really count it as code lines as I tend to be a bit generous with the blank lines.

      Actual lines of code - about 12. And these were old procedures that didn't validate their inputs. I like tidying up these kinds of things.
      • by geekoid (135745)

        Proper documentation is critical, but it's not code.
        No one should count it, or blank lines.

        If I was to count my code that wrote code, I would have over a million lines yesterday.

    • by praxis (19962)

      It's a pretty simple question. How many lines of code did you write. Clearly, removing lines is not writing lines, generated code is not code you wrote, and comments are not executable. It did not ask your net change in the number of lines in the source files or anything like that.

    • by gman003 (1693318)

      Same. I've finished up the coding for my project; now it's just working on the configuration and data files.

    • There's this 'cloc.pl' tool that does a great job at measuring your code. It understands languages so it treats things like 'for' loops as a single line, regardless of how they're split. You should check it out! Also, I don't count added lines, but total code throughput. Otherwise I'd be fired for cleaning up 100k lines in the past 6 months...

    • by swillden (191260)

      What about comments? I added a few of them yesterday.

      Of late I've come to the conclusion that comments count, but they should be subtracted from the total. Over time most comments go from marginally useful, to a waste of time, to misleading evils. Comments that are used to generate useful documentation (e.g. Javadoc -- but useful Javadoc) are an exception, but other than that whenever I find myself wanting to write an explanatory comments I take it as a sign that the code needs to be refactored. Code that needs comments is bad code.

      OTOH, I also find myse

      • to misleading evils

        No kidding. Nothing like reading comments, well written full sentence comments, that state the opposite of the code's actions, for wasting a day of troubleshooting. It happens; someone changes the code, design-on-the-fly, and never changes the comments.

  • The time factor of this poll should have been set to the halflife of californium253, so we could at least count some of our recent coding horrors.
  • This is perfect timing. For the first time in years I have been busy programming again, for I have started messing around in Python. Installed the interpreter last week!
  • Does copying, pasting and then slightly modifying count?

    • You could count the modified lines.
    • by geekoid (135745)

      I'n curious as to why you are copy and pasting? if it's that common, shouldn't you write a class that handles the light variation each implementation uses?

      • by jklovanc (1603149)

        Find the pieces you need on the web, copy and paste.

      • by cra (172225)

        Mostly it's setting up function calls and modifying which parameters are sent to them. Also, as jklovanc suggests, som ecode is often found on the interweb. ;-)

        I don't get to do too much real coding these days. :-|

  • .... since I last sat down an coded. My education was that of computer science, and programming was the main focus originally, but as I learned I am a far better analyst than I am a coder. I learned that I should leave the coding up to people who are better at it than I. But I can analyze the shit of something and write requirements that allow a developer to understand the scope of the full task that is put before them.

    • So does this mean that all projects you provide requirements for come in on time, on budget, and bug free (no structural issues there are always coding issues). I have yet to see the are requirement spec that is complete enough and covers everything so that major changes don't have to be made as programming goes along. If you can prevent this then you are a true master.
  • but it *was* a great piece of code and did the job nicely
  • I made changes to about 40 lines of code. I do scripting of course as a unix admin but I also have three php based apps I've written. One had a bug in the picture display code (stupid one; I didn't fully qualify a search so was getting too much data back from mysql), and the other needed some changes due to it being August (I haven't taken the time to make the code correct after creating it).

    Today I'll be making cron changes to implement a new wrapper script I wrote for work and likely working on the third

    • I work in a network operations center. If I'm good, they let me write a shell script once in a while.

      Most of the coding I do is for the exercises in textbooks I work through when there's nothing going on.

  • Damn.. i voted 'none' but that actually isn't accurate.. i hacked some fix in a WoW addon making less-than-100 the correct answer..

  • So not much code being written.

  • Need to write more.
  • by dkleinsc (563838) on Tuesday August 09, 2011 @10:02AM (#37032270) Homepage

    I love deleting code. It's sort of the same feeling as finishing a job cleaning your bathroom - the work itself stinks, but once you do it things stink a lot less. And it doesn't leave behind any maintenance burden either, so when you can get away with it, it's by far the best use of your time.

    Besides, I even have the backing of one of the most famousest of hackers:

    One of my most productive days was throwing away 1000 lines of code. -Ken Thompson

    • by Viceice (462967)

      Speaking of quotes, I love this one too:

      A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away.
      — Antoine de Saint Exupéry

    • by wrook (134116)

      Here are my top 5 ways to make programmers on your team more productive.

      1. Don't write code that you don't need
      2. Delete code that you don't need
      3. Avoid libraries that enforce a particular architectural design
      4. Refactor code whose purpose and correctness isn't blatantly obvious at first glance
      5. Write simple code

  • Got plenty of programming done but I have my SF novel open in another window. The problem with this approach is that characters, locations and robots end up with variables instead of names. Wait, maybe that explains C3PO and R2D2.
  • Most of my work in the last year has been debugging other people's code.

    I used to think that the most miserable part of programming was debugging my code, but now I really miss those days.
  • I've spent the better part of my day running tests to see how reliable a piece of software is so I've only written maybe two or three dozen lines of SQL to grab data for comparison.

    Most days I write a lot more code though...

  • I count everything that isn't a block comment. stuff that isn't in /* */ type comments. I count blank lines, in line comments(everything after a //), and brackets. they all promote readability just as much as the code itself and are important. Since i keep to a coding standard it doesn't matter much anyhow, since if im keeping to it its hard to artificial increase LOC.
    • by maglor_83 (856254)

      I just count everything in the file. It's not as if LOC is a useful metric for anything anyway.

  • I work in pictures that turn into circuits. No lines of code, but similar results.
    • by treeves (963993)

      You mean you don't write Excellon drill files by hand?
      jk.

    • by _0xd0ad (1974778)

      I work in pictures that turn into circuits. No lines of code, but similar results.

      Similar to a Fortran program?

    • Sometimes that is more fun... I wish I could more of that, but my current job has me writing PLC code and maintaining ancient C++ apps.

      There is something. Does 1 rung on a PLC equal one line of code? How about Assembly language? Your lines add up faster. In your case, maybe add up the routes you did manually(never met autorouting that didn't suck..) and the components you placed. Then thats your "lines" of code....

  • ...the further away from code you get. The nice part about being where I am in my career is that when I do get to code, it's almost entirely prototyping new stuff, which is always a thrill. However, given the very specific time boundary of the poll, I had to answer "None"... no new stuff this month :-(
  • Bad Poll for a Monday. Yesterday was the weekend... and the beginning of the week/morning is when you plan your code not write it. Unless this code is ferreting out the weekend warriors.. if so carry on.
    • by xclr8r (658786)
      never mind I was sick yesterday..
    • by fatp (1171151)
      It depends whether you code for your job or code for leisure (or homework). For the latter, you write most code during weekend. And you can always wait 24 hour before you vote. Most slashdot polls survive longer than that. You can even select any option without telling lies by a little preparation.
  • copy and paste!

  • I'm on vacation you insensitive clod! Seriously, I had to fight to get my vacation this year - and there's no way I'm going to write or debug any code for the next two weeks.

    Well, ALMOST no way, anyway - given the economy, if push came to shove I'd do what it takes to keep my job...

  • It's a tree so extra-special it holds not only data, but... Time Itself!. Also a class to handle leap seconds, using that tree. Now that I can figure out what time it is... really, I can convert into 4 or 5 other time formats I need and bundle the whole thing up as a C++ web service with Staff. [google.com] Then I can use those times to compute the ephemera of orbiting bodies. I know cspice does all that stuff, but where's the fun in that?
  • in the past 24 hours? I just walked out of a mountain wilderness. So no code for me...
  • I

    get

    paid

    by

    the

    line,

    just

    like

    Dickens.

  • I'm just trying to get this project's pom-files to behave. After that, I'll do some real coding. That is, if you accept that coding in Java is 'real coding'.

    Maven is such a waste of time ...

    Yeah, yeah, I know, "The good old days of Turbo Pascal 3 with only one source file", but still ...

  • by JazzHarper (745403) on Wednesday August 10, 2011 @01:39PM (#37046434) Journal

    I don't want to see 1000+ lines of anything that someone wrote in a 24-hour period.

  • by Space (13455) on Wednesday August 10, 2011 @06:06PM (#37049872)

    You forgot the most correct answer...
    As few as possible
    Any more than that and you're doing it wrong.

Ma Bell is a mean mother!

 



Forgot your password?
Working...