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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Coffeescript: Joyful and Unreadable

10 点作者 allenc超过 13 年前

1 comment

brikis98超过 13 年前
Looking at things in a vacuum is not very productive. The equivalent code with just raw JavaScript - that is, with no templates, no CoffeeScript, no backbone - would be MUCH more verbose, complicated, and hard to read/maintain.<p>For example, the =&#62; actually makes the code shorter and <i>more</i> readable than the equivalent versions (var that = this all over the place). The el and @template have nothing to do with CoffeeScript: they are from backbone and underscore, respectively. And once again, they are better than the raw JS alternatives (document.getElementById()? and inlining HTML into your JS).
评论 #3221553 未加载