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.

My Perception of CoffeeScript

6 pointsby pkananenover 13 years ago

1 comment

allertonmover 13 years ago
ISTM the author's "pure javascript" version of the horse/snake example is not solving the same problem as the CoffeeScript one.<p>In the CS code, the association between the object and it's type of motion (galloping/slithering) is made at construction time (via the implementation of "move" associated with the object), and in the "pure javascript" code it is made at the call site for "move".<p>This seems like such a fundamental difference that it becomes a little difficult to take the rest of the argument seriously.