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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

I Am Switching to JavaScript

43 点作者 mrtbld大约 5 年前

11 条评论

_bxg1大约 5 年前
This is satire but it&#x27;s pretty lame and unconvincing satire, so much so that I didn&#x27;t realize it until about 1&#x2F;3 of the way in. The funniest thing here is a Go developer complaining about <i>JavaScript&#x27;s</i> unpredictable behavior.<p>I&#x27;m not going to take the bait and start a flame-war. I will just say that odd quirks don&#x27;t make either of them a bad language because they each have many other benefits. And that the author shouldn&#x27;t quit his day job to become a comedian.
评论 #22752020 未加载
cs702大约 5 年前
This had me laughing the whole way through.<p>One of the most sarcastic put-downs of a language I&#x27;ve ever seen.<p>It won&#x27;t change anyone&#x27;s mind; that&#x27;s not its purpose.<p>It&#x27;s meant to be funny. Don&#x27;t take it too seriously. Read it for fun.<p>--<p>EDIT: We all know there are <i>lots</i> of reasons to use JS for a ton of use cases -- indeed, JS is currently the most widely used language on Stack Overflow: <a href="https:&#x2F;&#x2F;insights.stackoverflow.com&#x2F;survey&#x2F;2019#technology-_-programming-scripting-and-markup-languages" rel="nofollow">https:&#x2F;&#x2F;insights.stackoverflow.com&#x2F;survey&#x2F;2019#technology-_-...</a> -- but that doesn&#x27;t mean we can&#x27;t recognize and laugh at the idiosyncrasies of the language :-)
评论 #22750047 未加载
edflsafoiewq大约 5 年前
<p><pre><code> 3.14 % 5 &#x2F;&#x2F; 3.14 13.14 % 5 &#x2F;&#x2F; 3.1400000000000006 </code></pre> There&#x27;s nothing strange about this, it is, as you would expect, exactly 13.14 - 10.
评论 #22749882 未加载
samcheng大约 5 年前
If you enjoyed this, you&#x27;ll also enjoy this &quot;Wat&quot; video:<p><a href="https:&#x2F;&#x2F;www.destroyallsoftware.com&#x2F;talks&#x2F;wat" rel="nofollow">https:&#x2F;&#x2F;www.destroyallsoftware.com&#x2F;talks&#x2F;wat</a>
dahart大约 5 年前
Ah, it got me, I have to admit it. I thought the author was just mildly confused about JavaScript after skimming most of the article, and then I looked again at the date. I’m the April fool. I don’t mind using doubles for integer arithmetic though, they have 53 bits of mantissa, so you have a larger range of exact integer arithmetic than with an Int32Array...
yoav大约 5 年前
I don’t think they’re switching to JavaScript
LandR大约 5 年前
This is an Aprtil fools right?<p>&gt;&gt; This is something I have been waiting for: exact arithmetics. It is incredible to think about a language having such a feature.<p>Haha!
speg大约 5 年前
Haha. Took me longer than it should have ;)
JeanMarcS大约 5 年前
Started to read. Asked myself « but...why ? » Gone back to the top to check the date Oh... right !
hazelnut大约 5 年前
Great article!<p>What date is it again?
droobles大约 5 年前
lol