TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Coffeescript: Joyful and Unreadable

10 pointsby allencover 13 years ago

1 comment

brikis98over 13 years ago
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 未加载