Slashdot Mirror


Your Java Code Is Mostly Fluff, New Research Finds

itwbennett writes In a new paper (PDF), researchers from the University of California, Davis, Southeast University in China, and University College London theorized that, just as with natural languages, some — and probably, most — written code isn't necessary to convey the point of what it does. The code and data used in the study are available for download from Bitbucket. But here's the bottom line: Only about 5% of written Java code captures the core functionality.

4 of 411 comments (clear)

  1. 95% might be good enough for most... by bigsexyjoe · · Score: 5, Funny

    But I shoot to make 100% of the code I write fluff.

  2. Re:This sounds silly ... by Anonymous Coward · · Score: 3, Funny

    Wow, your co-worker sounds like an idiot. Everyone knows in lisp it would be (justDoIt (getReady)). It's the functional paradigm that makes it magic and that makes it ONE line not two.

  3. Re:Waste in Housing by gstoddart · · Score: 4, Funny

    So your neighbors don't have to see your junk.

    --
    Lost at C:>. Found at C.
  4. Re:Your Article Is All Fluff, Reader Finds by Anonymous Coward · · Score: 5, Funny

    Comments and descriptive variable and method names should also go, we're much better with "void x(int c) { a.b(c); x.b.g.y(c) }", as the real coders do not maintain code, they just write it. And the disk space is so expensive that even linefeeds should be avoided whenever possible.