Skip to main content

View Diary: Healthcare.gov: 500 Million Lines of Code! That's Insane! Update (78 comments)

Comment Preferences

  •  I find that number a bit high as well. (3+ / 0-)
    Recommended by:
    Brainwrap, Wee Mama, polecat

    Unless they're coding like this:

    (
       IF
           A = TEST-FIELD
       THEN
           DO SOMETHING
       ELSE
            SO SOMETHING ELSE
            AND THIS AS WELL
    )

    That's 9 lines all by itself.

    I've been seeing 'newer' programmers put very little to each line.  I would have written that in 5 lines instead of what was.

    (IF A = TEST-FIELD
         DO SOMETHING
     ELSE
         DO SOMETHING ELSE
         AND THIS AS WELL)

    •  It Only Takes 4 Lines to Throw the Ohio Elections (0+ / 0-)

      by 5%, but sue me the last time I coded there was polyester and it was dBase II.

      We are called to speak for the weak, for the voiceless, for victims of our nation and for those it calls enemy.... --ML King "Beyond Vietnam"

      by Gooserock on Tue Oct 22, 2013 at 06:52:04 AM PDT

      [ Parent ]

      •  I learned to code in the era of shag carpet and (0+ / 0-)

        paper tape chaff.  ASR33's.  Current loop.

        This is truly insane.

        Happy little moron, Lucky little man.
        I wish I was a moron, MY GOD, Perhaps I am!
        —Spike Milligan

        by polecat on Tue Oct 22, 2013 at 08:25:57 AM PDT

        [ Parent ]

    •  wanna bet that (3+ / 0-)
      Recommended by:
      nchristine, Cofcos, micwazoo

      the developer was being paid based on the # lines coded...

    •  THIS! Hell, take a look at Google.com's main page (1+ / 0-)
      Recommended by:
      Wee Mama

      ...which is just the search box and whatever animation-of-the-day they have at the moment; that's 230 lines of code all by itself (and it would be over 800 if they did a CR every time there was a closed bracket, as is commonly done).

    •  The coding standards are not like (0+ / 0-)

      that anymore. You break out the parends in order to make it easier for other developers to find the bit of code they are looking for when you work in teams. If you're a singular dev, sure fine, but if another dev comes along and looks at that, they will strongly admonish you. On the other hand, yes to conditions being one line fully, then the next logical step. So really, you'd be at 7 lines of code if written per current coding structure standards.

      It is every person's obligation to put back into the world at least the equivalent of what they takes out of it. - Albert Einstein (edited for modern times to include everyone by me!)

      by LeftieIndie on Tue Oct 22, 2013 at 07:03:03 AM PDT

      [ Parent ]

    •  [sigh] (0+ / 0-)

      That's only one line in APL, or its latest incarnation, J, and in other functional programming languages, but everybody claims that APL is too hard to learn, even though it makes everything much simpler to do. More precisely, APL is as hard as basic math. If you can't hack basic math, you cannot program correctly. An astonishing fraction of programmers fails that basic test.

      Roughly,

      Execute test from something; somethingelse, this

      but even shorter. From, for example, is { in J.

      There is a quite useful technique for software design called Function Point Analysis, which divides programming into manageable tasks of comparable complexity. It turns out that APL can manage a Function Point in a fifth the number of lines required by the more discursive and more widely used languages. Fred Brooks, in The Mythical Man-Month, recommended using APL to get the algorithms right, and then translating to compiled languages for performance. IBM Federal Systems (before it got sold) used to do all of its Ada programming for the government in APL, with largely automatic translation.

      Just be grateful that Ada is no longer mandatory in government procurement.

      Ceterem censeo, gerrymandra delenda est

      by Mokurai on Wed Oct 23, 2013 at 01:29:06 AM PDT

      [ Parent ]

      •  Rockwell Collins is heavy in Ada - they do (0+ / 0-)

        aviation navigation and satellite stuff.  Their ads always ask for ada and they're having a hard time getting and keeping programmers in that language.  I program in cobol and pl/1 (and yes there is still a significant demand for us).

Subscribe or Donate to support Daily Kos.

Click here for the mobile view of the site