from Hacker News

Why does healthcare.gov use “if ('en' === 'en')“?

by kvprashant on 10/22/13, 7:56 AM with 10 comments

  • by spoiler on 10/22/13, 7:58 AM

    I reckon one of the strings is server generated. I used to do similar things when I just stared coding.
  • by ponyous on 10/22/13, 8:23 AM

    On of the 'en's its generated by backend, so this is not always true as users may be from different country.
  • by ozh on 10/22/13, 9:59 AM

    Related: hilarious geeky musings on healthcare.gov "features" http://sfy.co/tGfF
  • by josh_fyi on 10/22/13, 8:13 AM

    And worse, that particular mess is commented out, yet downloaded to everyone's browser.

    But below, in live code, they have the same thing.

  • by manuw on 10/22/13, 8:07 AM

    Go to healthcare.gov/es and the condition is if('es' == 'en'){} That's all ...
  • by rajehssegu on 10/22/13, 9:21 AM

    The best of the terrible js code's I have ever encountered.
  • by daemonk on 10/22/13, 11:43 AM

    Maybe its a place holder for future implementations
  • by asadlionpk on 10/22/13, 8:34 AM

    that is just their way of telling the client-side javascript about 'en' or 'es' etc . Bad design I guess.