TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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 &quot;features&quot; <a href="http://sfy.co/tGfF" rel="nofollow">http:&#x2F;&#x2F;sfy.co&#x2F;tGfF</a>
josh_fyi超过 11 年前
And worse, that particular mess is commented out, yet downloaded to everyone&#x27;s browser.<p>But below, in live code, they have the same thing.
manuw超过 11 年前
Go to healthcare.gov&#x2F;es and the condition is if(&#x27;es&#x27; == &#x27;en&#x27;){} That&#x27;s all ...
评论 #6590596 未加载
rajehssegu超过 11 年前
The best of the terrible js code&#x27;s I have ever encountered.
daemonk超过 11 年前
Maybe its a place holder for future implementations
asadlionpk超过 11 年前
that is just their way of telling the client-side javascript about &#x27;en&#x27; or &#x27;es&#x27; etc . Bad design I guess.
评论 #6590580 未加载