13 ms·
Why does healthcare.gov use “if ('en' === 'en')“?
- spoiler 13y agoI reckon one of the strings is server generated. I used to do similar things when I just stared coding.
- manuw 13y agoGo to healthcare.gov/es and the condition is if('es' == 'en'){} That's all ...
- bladurga 13y agoIf I go there it takes me to cuidadodesalud.gov/es. If I go to cuidadodesalud.gov/en it takes me to cuidadodesalud.gov/es/en which gives an error 404 saying it cannot find the page 'https://cuidadodesalud.gov/es/en' https://cuidadodesalud.gov/es/en' in HealthCare.gov. It doesn't make much sense to redirect to a different domain name and append the '/es'
- josh_fyi 13y agoAnd worse, that particular mess is commented out, yet downloaded to everyone's browser. But below, in live code, they have the same thing.
- ponyous 13y agoOn of the 'en's its generated by backend, so this is not always true as users may be from different country.
- asadlionpk 13y agothat is just their way of telling the client-side javascript about 'en' or 'es' etc . Bad design I guess.
- bladurga 13y agoNo etc. If 'en' is not 'en' then it's assumed to be 'es_MX'
- rajehssegu 13y agoThe best of the terrible js code's I have ever encountered.
- ozh 13y agoRelated: hilarious geeky musings on healthcare.gov "features" http://sfy.co/tGfF http://sfy.co/tGfF
- daemonk 13y agoMaybe its a place holder for future implementations