13 comments

[ 1.1 ms ] story [ 35.7 ms ] thread
OK - I saw this link to a .js file on Drudge and was intrigued.

Not to criticize but is this the worst code you've ever seen or what? (OK, that was a criticism...)

This article ( http://www.digitaltrends.com/opinion/obamacare-healthcare-go... ) and the headline was:

"Obamacare website cost more than FACEBOOK, TWITTER, LINKEDIN, INSTAGRAM..."

Is this a comedy?

What is so bad about this (obviously autogenerated) code?
So that seems to be the output from http://www.andromda.org/ designs targeting a backbone.js frontend...

Looks like most of the code was "designed" and then autogenerated. Given the huge amount of validation a task like developing obamacare requires it sounds like a (somewhat) reasonable approach. (Not, that it couldn't have been done differently.)

Seventeen instances of the phrase "lorem ipsum":

resources['ffe.ee.myAccount.security.info'] = 'We take security seriously. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam pharetra dictum nisl vitae tincidunt.';

resources['ffe.ee.myAccount.readyToUpload.warningText'] = 'Lorem ipsum...This makes you ineligible for the Small Business Health Options Program (SHOP).';

resources['ffe.ee.shared.todo.description'] = 'Fill In this with actual content. Lorem Ipsum';

resources['ffe.ee.myAccount.security.questions.use'] = 'Security questions are used for lorem ipsum dolor sit amet.';

resources['ffe.ee.myAccount.home.specialEnrollment.description2'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';

resources['ffe.ee.myAccount.notifications.notices.description'] = 'Notices are official messages that lorem ipsum.';

resources['ffe.ee.myAccount.employerSponsoredBenefits.employerSponsoredBenefits.descriptionText'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam pharetra dictum nisl vitae tincidunt. Suspendisse suscipit tellus at massa eleifend dictum. Mauris imperdiet sem vitae erat egestas volutpat. In hac habitasse platea dictumst.';

resources['ffe.ee.myAccount.employerCoverage.description3'] = 'for lorem ipsum dolor sit amet, consectetur adipiscing elit.';

resources['ffe.ee.myAccount.employerCoverage.description2'] = 'eligibility results';

resources['ffe.ee.myAccount.employerCoverage.description1'] = 'This is your most recent application which was used to determine your';

resources['ffe.ee.myAccount.notifications.info'] = 'You can update your settings here. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam pharetra dictum nisl vitae tincidunt.';

resources['ffe.ee.myAccount.home.notifications.inconsistencyNotification.description2'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.';

resources['ffe.ee.myAccount.notifications.marketingEmail.info'] = 'Updates are occasional messages sent lorem ipsum...';

resources['ffe.ee.myAccount.profile.profileLevel2US.description1'] = 'Your profile includes the basic information associated with you in our system. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam pharetra dictum nisl vitae tincidunt.';

resources['ffe.ee.myAccount.notifications.general.info'] = 'Notifications are messages sent lorem ipsum...';

resources['ffe.ee.myAccount.coverage.discountUsage.description'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rhoncus vehicula lorem, non posuere felis mattis non. Aenean nisl metus, pellentesque a tristique nec, accumsan at turpis.';

resources['ffe.ee.myAccount.applicationDetails.inconsistency.description2'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rhoncus vehicula lorem, non posuere felis mattis non. Aenean nisl metus, pellentesque a tristique nec, accumsan at turpis.';

resources['ffe.ee.myAccount.coverage.eligibility.description'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Cras rhoncus vehicula lorem, non posuere felis mattis non. Aenean nisl metus, pellentesque a tristique nec, accumsan at turpis.';

resources['ffe.ee.myAccount.reportLifeChanges.description2'] = 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla nec varius arcu. Nam vehicula imperdiet tristique. Ut eu egestas leo. Aliquam in felis ligula. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nulla eget malesuada nulla. Suspendiss...

resources['ffe.ee.myAccount.testthing'] = '<span style="color: red">Reduce The Number of keys<a href="#" onclick="alert(&#39;hey&#39;);">This is a Links</a></span>';
resources['ffe.ee.myAccount.forgotPassword.notReset.alert.description4'] = 'If you feel you got this message in error, please contact us at 1-800-XXX-XXXX (CMS Help Desk).';

resources['ffe.ee.myAccount.profile.updateName'] = 'To change your name you must call 1-800-XXX-XXXX';

FYI, 1-800-999-9999 is a crisis hotline (the currently disabled NINELINE).

So what? What's the problem about that?
Incomplete code (or error messages) should not be found in production.
Huh! This phone number does not shop in Google search results at all right now except one hit:

resources['ffe.ee.myAccount.eidm.error.e106'] = 'An error occurred when contacting Experian to verify your information. Call the Experian help desk at 1-855-339-7880 for help.';

That must be the dedicated Experian helpline for healthcare.gov. Neato!

... are you really wasting your time reading auto-generated code? Why is this on the front page of HN?
Because, apparently, this is representative of what $600+ million looks like.
I've yet to work on a non open source project where the i18n messages aren't a mess. Am I the only one not really surprised at this code?