TE
科技回声
首页
24小时热榜
最新
最佳
问答
展示
工作
中文
GitHub
Twitter
首页
Why does healthcare.gov use “if ('en' === 'en')“?
7 点
作者
kvprashant
超过 11 年前
8 条评论
spoiler
超过 11 年前
I reckon one of the strings is server generated. I used to do similar things when I just stared coding.
ponyous
超过 11 年前
On of the 'en's its generated by backend, so this is not always true as users may be from different country.
ozh
超过 11 年前
Related: hilarious geeky musings on healthcare.gov "features" <a href="http://sfy.co/tGfF" rel="nofollow">http://sfy.co/tGfF</a>
josh_fyi
超过 11 年前
And worse, that particular mess is commented out, yet downloaded to everyone's browser.<p>But below, in live code, they have the same thing.
manuw
超过 11 年前
Collapse
Go to healthcare.gov/es and the condition is if('es' == 'en'){} That's all ...
评论 #6590596 未加载
rajehssegu
超过 11 年前
The best of the terrible js code's I have ever encountered.
daemonk
超过 11 年前
Maybe its a place holder for future implementations
asadlionpk
超过 11 年前
Collapse
that is just their way of telling the client-side javascript about 'en' or 'es' etc . Bad design I guess.
评论 #6590580 未加载