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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

From backend to frontend. From Ruby to CoffeeScript

3 点作者 snatcher将近 13 年前

2 条评论

rizla将近 13 年前
Good to see people trying something ew, but isn't this just a bit of 'it doesnt do what I'm used too, so it's broken'<p>"Funny thing. Adding arrays returns a string. Subtracting them returns NaN. Again, JavaScript devs will explain why. Maybe even try to convince you that it’s perfectly fine behaviour. It’s not"<p>Things like this in all languages, are what separates pros from tinkerers, in my opinion. It can be confusing, sometimes there are no good reason for this, other times there are.<p>I like JavaScript for all its quirks. It's the quirks hat have allowed it to be used in ways that were never envisaged.<p>To the OP, if you find something that doesn't work like everything else would, have a look at exploiting that difference before trying to make it conform<p>Otherwise nice post<p>Disclaimer: JS Dev to the core
andrzejkrzywda将近 13 年前
I'm really happy to see more and more backend developers discover the joy of frontend programming!<p>As for the main point, I agree that JS stdlib is almost non-existing and can't be relied on. Libraries like underscore.js or sugarj.js fill the gap and compete for the community-stdlib.<p>Good post!